Merge pull request #2466 from cgwalters/ci-fanalyzer

ci: Enable -fanalyzer
This commit is contained in:
Luca Bruno authored and GitHub committed 2021-10-18 16:44:56 +00:00
commit 5d045f3ae1
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -30,6 +30,6 @@ esac
# always fail on warnings; https://github.com/ostreedev/ostree/pull/971
# NB: this disables the default set of flags from configure.ac
export CFLAGS="-Wall -Werror ${CFLAGS:-}"
export CFLAGS="-Wall -Werror -fanalyzer ${CFLAGS:-}"
build --enable-gtk-doc ${CONFIGOPTS:-}
+2 -2
View File
@@ -75,8 +75,8 @@ test_rollsum (void)
#define MAX_BUFFER_SIZE 1000000
gsize i;
int len;
g_autofree unsigned char *a = malloc (MAX_BUFFER_SIZE);
g_autofree unsigned char *b = malloc (MAX_BUFFER_SIZE);
g_autofree unsigned char *a = g_malloc (MAX_BUFFER_SIZE);
g_autofree unsigned char *b = g_malloc (MAX_BUFFER_SIZE);
g_autoptr(GRand) rand = g_rand_new ();
/* These two buffers produce the same crc32. */