Skip to content
Snippets Groups Projects
Commit f27bcad8 authored by Gaël Bonithon's avatar Gaël Bonithon
Browse files

Remove -Wdeclaration-after-statement from list of enabled warnings

We use C99 features in various places (especially init-statement in for
loops), and C99 allows declaration after statement. This also avoids
warnings from other projects, like GObject Introspection >= 1.76.1 via
g-ir-scanner.
parent c47d9389
No related branches found
No related tags found
1 merge request!85Remove -Wdeclaration-after-statement from list of enabled warnings
Pipeline #22400 passed
......@@ -104,7 +104,6 @@ AS_HELP_STRING([--disable-debug],[Include no debugging support]),
fi
xdt_cv_additional_CFLAGS="$xdt_cv_additional_COMMON_FLAGS \
-Wdeclaration-after-statement \
-Wnested-externs \
-Wold-style-definition"
xdt_cv_additional_CXXFLAGS="$xdt_cv_additional_COMMON_FLAGS"
......
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