mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-05 17:00:29 +01:00
build: meson: Remove unnecessary auxiliary variable
The variable containing the list of compiler arguments to be checked can be removed without any harm to readibility. The variable has been removed by appending directly to the list of common compiler arguments, those that are supported.
This commit is contained in:
parent
35171b3c3f
commit
282af18e16
1 changed files with 2 additions and 4 deletions
|
|
@ -148,7 +148,7 @@ if enable_ld_gc
|
|||
endif
|
||||
|
||||
if nm_debug
|
||||
test_cflags = [
|
||||
common_flags += cc.get_supported_arguments([
|
||||
'-fno-strict-aliasing',
|
||||
'-Wdeclaration-after-statement',
|
||||
'-Wfloat-equal',
|
||||
|
|
@ -172,9 +172,7 @@ if nm_debug
|
|||
'-Wtypedef-redefinition',
|
||||
'-Wundef',
|
||||
'-Wunknown-attributes',
|
||||
]
|
||||
|
||||
common_flags += cc.get_supported_arguments(test_cflags)
|
||||
])
|
||||
endif
|
||||
|
||||
add_project_arguments(common_flags, language: 'c')
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue