]> granicus.if.org Git - strace/commitdiff
build: enable gcc -Woverride-init and clang -Winitializer-overrides
authorDmitry V. Levin <ldv@altlinux.org>
Sun, 16 Sep 2018 11:44:01 +0000 (11:44 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Sun, 16 Sep 2018 11:44:01 +0000 (11:44 +0000)
* m4/st_warn_cflags.m4 (gl_WARN_ADD): Add -Winitializer-overrides
and -Woverride-init.

m4/st_warn_cflags.m4

index 35f40b589822cd5328dc4e750c17b7fb210eb4ca..33fac97d63574a734fffe78500c984286e559230 100644 (file)
@@ -5,11 +5,13 @@ gl_WARN_ADD([-Wformat-security])
 gl_WARN_ADD([-Wignored-qualifiers])
 gl_WARN_ADD([-Wimplicit-fallthrough=5])
 gl_WARN_ADD([-Winit-self])
+gl_WARN_ADD([-Winitializer-overrides])
 gl_WARN_ADD([-Wlogical-op])
 gl_WARN_ADD([-Wmissing-parameter-type])
 gl_WARN_ADD([-Wnested-externs])
 gl_WARN_ADD([-Wold-style-declaration])
 gl_WARN_ADD([-Wold-style-definition])
+gl_WARN_ADD([-Woverride-init])
 gl_WARN_ADD([-Wsign-compare])
 gl_WARN_ADD([-Wtype-limits])
 gl_WARN_ADD([-Wwrite-strings])