mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-07-21 18:24:49 +00:00
build: disable -Wgnu-variable-sized-type-not-at-end for systemd code
clang 5.0.1 complains: src/systemd/src/libsystemd-network/dhcp6-option.c:40:28: error: field 'option' with variable sized type 'struct DHCP6Option' not at the end of a struct or class is a GNU extension [-Werror,-Wgnu-variable-sized-type-not-at-end] struct DHCP6Option option; ^ systemd disables this warning too.
This commit is contained in:
parent
0999ebdf6d
commit
9daa9346e2
|
@ -1225,6 +1225,7 @@ src_libsystemd_nm_la_cppflags = \
|
|||
-I$(srcdir)/src/systemd/src/shared \
|
||||
-I$(srcdir)/src/systemd/src/libsystemd-network \
|
||||
-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_SYSTEMD \
|
||||
$(LIBSYSTEMD_NM_CFLAGS) \
|
||||
$(GLIB_CFLAGS) \
|
||||
$(CODE_COVERAGE_CFLAGS)
|
||||
|
||||
|
|
|
@ -1097,6 +1097,9 @@ fi
|
|||
|
||||
NM_COMPILER_WARNINGS(CFLAGS, ${more_warnings_default})
|
||||
|
||||
NM_COMPILER_FLAG(LIBSYSTEMD_NM_CFLAGS, "-Wno-gnu-variable-sized-type-not-at-end")
|
||||
AC_SUBST(LIBSYSTEMD_NM_CFLAGS)
|
||||
|
||||
CC_CHECK_FLAGS_APPEND([with_cflags], [CFLAGS], [\
|
||||
-fno-strict-aliasing \
|
||||
])
|
||||
|
|
Loading…
Reference in a new issue