mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-09 04:48:10 +02:00
build/meson: disable "-Wgnu-variable-sized-type-not-at-end warning"
It's not useful for us.
In file included from ../src/systemd/src/libsystemd/sd-event/sd-event.c:14:
../src/systemd/src/libsystemd/sd-event/event-source.h:195:36: error: field 'buffer' with variable sized type 'union inotify_event_buffer' not at the end of a struct or class is a GNU extension [-Werror,-Wgnu-variable-sized-type-not-at-end]
union inotify_event_buffer buffer;
^
This commit is contained in:
parent
dc4f6f6656
commit
7b18bd1fa8
1 changed files with 2 additions and 1 deletions
|
|
@ -158,7 +158,6 @@ endif
|
||||||
|
|
||||||
if nm_debug
|
if nm_debug
|
||||||
common_flags += cc.get_supported_arguments([
|
common_flags += cc.get_supported_arguments([
|
||||||
'-fno-strict-aliasing',
|
|
||||||
'-Wdeclaration-after-statement',
|
'-Wdeclaration-after-statement',
|
||||||
'-Wfloat-equal',
|
'-Wfloat-equal',
|
||||||
'-Wimplicit-fallthrough',
|
'-Wimplicit-fallthrough',
|
||||||
|
|
@ -169,6 +168,7 @@ if nm_debug
|
||||||
'-Wmissing-prototypes',
|
'-Wmissing-prototypes',
|
||||||
'-Wno-duplicate-decl-specifier',
|
'-Wno-duplicate-decl-specifier',
|
||||||
'-Wno-format-truncation',
|
'-Wno-format-truncation',
|
||||||
|
'-Wno-gnu-variable-sized-type-not-at-end',
|
||||||
'-Wno-missing-braces',
|
'-Wno-missing-braces',
|
||||||
'-Wno-missing-field-initializers',
|
'-Wno-missing-field-initializers',
|
||||||
'-Wno-pragmas',
|
'-Wno-pragmas',
|
||||||
|
|
@ -181,6 +181,7 @@ if nm_debug
|
||||||
'-Wtypedef-redefinition',
|
'-Wtypedef-redefinition',
|
||||||
'-Wundef',
|
'-Wundef',
|
||||||
'-Wunknown-attributes',
|
'-Wunknown-attributes',
|
||||||
|
'-fno-strict-aliasing',
|
||||||
])
|
])
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue