Skip to content
Snippets Groups Projects
Commit acf5501e authored by Simon McVittie's avatar Simon McVittie
Browse files

build: Disable -Wunused-local-typedefs globally


We need this because older versions of G_STATIC_ASSERT worked by
creating a dummy typedef, and didn't entirely suppress the resulting
warnings.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent 74e36a92
No related branches found
No related tags found
No related merge requests found
...@@ -97,6 +97,7 @@ no_warning_cflags = [ ...@@ -97,6 +97,7 @@ no_warning_cflags = [
'missing-field-initializers', 'missing-field-initializers',
'pedantic', 'pedantic',
'sign-compare', 'sign-compare',
'unused-local-typedefs',
'unused-parameter', 'unused-parameter',
'variadic-macros', 'variadic-macros',
] ]
...@@ -227,9 +228,6 @@ executable( ...@@ -227,9 +228,6 @@ executable(
'src/utils.h', 'src/utils.h',
'src/with-lock.c', 'src/with-lock.c',
], ],
c_args : [
'-Wno-unused-local-typedefs',
],
dependencies : [ dependencies : [
dependency('gio-unix-2.0', required : true), dependency('gio-unix-2.0', required : true),
libglnx.get_variable('libglnx_dep'), libglnx.get_variable('libglnx_dep'),
...@@ -266,9 +264,6 @@ executable( ...@@ -266,9 +264,6 @@ executable(
'src/wrap-interactive.c', 'src/wrap-interactive.c',
'src/wrap-interactive.h', 'src/wrap-interactive.h',
] + enums, ] + enums,
c_args : [
'-Wno-unused-local-typedefs',
],
dependencies : [ dependencies : [
steam_runtime_tools, steam_runtime_tools,
dependency('gio-unix-2.0', required : true), dependency('gio-unix-2.0', required : true),
...@@ -303,9 +298,6 @@ executable( ...@@ -303,9 +298,6 @@ executable(
'src/utils.h', 'src/utils.h',
'tests/cheap-copy.c', 'tests/cheap-copy.c',
], ],
c_args : [
'-Wno-unused-local-typedefs',
],
dependencies : [ dependencies : [
dependency('gio-unix-2.0', required : true), dependency('gio-unix-2.0', required : true),
libglnx.get_variable('libglnx_dep'), libglnx.get_variable('libglnx_dep'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment