build: add -Wdeclaration-after-statement

Now that all the users have been converted or silenced,
let's enable this warning.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Ján Tomko 2020-07-27 22:49:55 +02:00
parent fd7644cba9
commit 7ba4838a18

View File

@ -246,6 +246,7 @@ cc_flags += [
'-Wcpp',
'-Wdangling-else',
'-Wdate-time',
'-Wdeclaration-after-statement',
'-Wdeprecated-declarations',
'-Wdesignated-init',
'-Wdiscarded-array-qualifiers',
@ -565,7 +566,6 @@ cc_flags_disabled = [
# We might fundamentally need some of these disabled forever, but
# ideally we'd turn many of them on
'-Wfloat-equal',
'-Wdeclaration-after-statement',
'-Wpacked',
'-Wunused-macros',
'-Woverlength-strings',