glib 2.62.0 fails test 'test_writev_no_vectors' wih gcc7
I'm building glib 2.62.0 on Ubuntu 18.04 with gcc7.
The test only fails with release mode.
[810/1149] Compiling C object 'gio/tests/bcb7ac7@@file@exe/file.c.o'.
FAILED: gio/tests/bcb7ac7@@file@exe/file.c.o
/usr/bin/gcc-7 -Igio/tests/bcb7ac7@@file@exe -Igio/tests -Iglib-2.62.0/gio/tests -I. -Iglib-2.62.0/ -Iglib -Iglib-2.62.0/glib -Igmodule -Iglib-2.62.0/gmodule -Igobject -Iglib-2.62.0/gobject -Igio -Iglib-2.62.0/gio -I/builds/aivero/public/conan/conan-glib/.conan/data/zlib/1.2.11/aivero/stable/package/9bfdcfa2bb925892ecf42e2a018a3f3529826676/include -I/builds/aivero/public/conan/conan-glib/.conan/data/libffi/3.3-rc0/aivero/stable/package/9bfdcfa2bb925892ecf42e2a018a3f3529826676/include -I/builds/aivero/public/conan/conan-glib/.conan/data/pkgconf/1.6.3/aivero/stable/package/9bfdcfa2bb925892ecf42e2a018a3f3529826676/include -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=gnu89 -O3 -D_GNU_SOURCE -fno-strict-aliasing -DG_DISABLE_CAST_CHECKS -Wall -Wduplicated-branches -Wimplicit-fallthrough -Wmisleading-indentation -Wstrict-prototypes -Wunused -Wno-unused-parameter -Wno-bad-function-cast -Wno-pedantic -Werror=declaration-after-statement -Werror=format=2 -Werror=implicit-function-declaration -Werror=init-self -Werror=missing-include-dirs -Werror=missing-prototypes -Werror=pointer-arith -m64 -O3 -s -fdebug-prefix-map=/builds/aivero/public/conan/conan-glib/.conan/data/glib/2.62.0/aivero/testing/build/7217ccdd6ac933da6a85068b4b80d126e7f6d4c3=. -DNDEBUG -D_GLIBCXX_USE_CXX11_ABI=1 -pthread '-DG_LOG_DOMAIN="GLib-GIO"' '-DTEST_SERVICES="/builds/aivero/public/conan/conan-glib/.conan/data/glib/2.62.0/aivero/testing/build/7217ccdd6ac933da6a85068b4b80d126e7f6d4c3/gio/tests/services"' '-DGLIB_MKENUMS="gobject/glib-mkenums"' '-DGLIB_COMPILE_SCHEMAS="/builds/aivero/public/conan/conan-glib/.conan/data/glib/2.62.0/aivero/testing/build/7217ccdd6ac933da6a85068b4b80d126e7f6d4c3/gio/glib-compile-schemas"' -UG_DISABLE_ASSERT -MD -MQ 'gio/tests/bcb7ac7@@file@exe/file.c.o' -MF 'gio/tests/bcb7ac7@@file@exe/file.c.o.d' -o 'gio/tests/bcb7ac7@@file@exe/file.c.o' -c glib-2.62.0/gio/tests/file.c
In file included from glib-2.62.0/glib/glib.h:85:0,
from glib-2.62.0/gobject/gbinding.h:28,
from glib-2.62.0/glib/glib-object.h:23,
from glib-2.62.0/gio/gioenums.h:28,
from glib-2.62.0/gio/giotypes.h:28,
from glib-2.62.0/gio/gio.h:26,
from glib-2.62.0/gio/tests/file.c:4:
glib-2.62.0/gio/tests/file.c: In function 'test_writev_no_vectors':
glib-2.62.0/glib/gtestutils.h:86:68: error: argument 2 null where non-null expected [-Werror=nonnull]
else if (__l1 != 0 && memcmp (__m1, __m2, __l1) != 0) \
^~~~~~~~~~~~~~~~~~~~~~~~~
glib-2.62.0/gio/tests/file.c:1220:3: note: in expansion of macro 'g_assert_cmpmem'
g_assert_cmpmem (contents, length, expected_contents, expected_length);
^~~~~~~~~~~~~~~
In file included from glib-2.62.0/gio/tests/file.c:1:0:
/usr/include/string.h:63:12: note: in a call to function 'memcmp' declared here
extern int memcmp (const void *__s1, const void *__s2, size_t __n)
^~~~~~
In file included from glib-2.62.0/glib/glib.h:85:0,
from glib-2.62.0/gobject/gbinding.h:28,
from glib-2.62.0/glib/glib-object.h:23,
from glib-2.62.0/gio/gioenums.h:28,
from glib-2.62.0/gio/giotypes.h:28,
from glib-2.62.0/gio/gio.h:26,
from glib-2.62.0/gio/tests/file.c:4:
glib-2.62.0/gio/tests/file.c: In function 'test_writev_empty_vectors':
glib-2.62.0/glib/gtestutils.h:86:68: error: argument 2 null where non-null expected [-Werror=nonnull]
else if (__l1 != 0 && memcmp (__m1, __m2, __l1) != 0) \
^~~~~~~~~~~~~~~~~~~~~~~~~
glib-2.62.0/gio/tests/file.c:1220:3: note: in expansion of macro 'g_assert_cmpmem'
g_assert_cmpmem (contents, length, expected_contents, expected_length);
^~~~~~~~~~~~~~~
In file included from glib-2.62.0/gio/tests/file.c:1:0:
/usr/include/string.h:63:12: note: in a call to function 'memcmp' declared here
extern int memcmp (const void *__s1, const void *__s2, size_t __n)
^~~~~~
cc1: some warnings being treated as errors