From 305e47a9ae5289806f6e8c123a40eb25ff900186 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Sun, 16 Sep 2018 11:44:01 +0000 Subject: [PATCH] build: enable gcc -Woverride-init and clang -Winitializer-overrides * m4/st_warn_cflags.m4 (gl_WARN_ADD): Add -Winitializer-overrides and -Woverride-init. --- m4/st_warn_cflags.m4 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/m4/st_warn_cflags.m4 b/m4/st_warn_cflags.m4 index 35f40b58..33fac97d 100644 --- a/m4/st_warn_cflags.m4 +++ b/m4/st_warn_cflags.m4 @@ -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]) -- 2.40.0