mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
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:
parent
fd7644cba9
commit
7ba4838a18
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user