mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-10-02 22:38:01 +00: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
|
@ -158,7 +158,6 @@ endif
|
|||
|
||||
if nm_debug
|
||||
common_flags += cc.get_supported_arguments([
|
||||
'-fno-strict-aliasing',
|
||||
'-Wdeclaration-after-statement',
|
||||
'-Wfloat-equal',
|
||||
'-Wimplicit-fallthrough',
|
||||
|
@ -169,6 +168,7 @@ if nm_debug
|
|||
'-Wmissing-prototypes',
|
||||
'-Wno-duplicate-decl-specifier',
|
||||
'-Wno-format-truncation',
|
||||
'-Wno-gnu-variable-sized-type-not-at-end',
|
||||
'-Wno-missing-braces',
|
||||
'-Wno-missing-field-initializers',
|
||||
'-Wno-pragmas',
|
||||
|
@ -181,6 +181,7 @@ if nm_debug
|
|||
'-Wtypedef-redefinition',
|
||||
'-Wundef',
|
||||
'-Wunknown-attributes',
|
||||
'-fno-strict-aliasing',
|
||||
])
|
||||
endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue