From 1914a54555d063d2b5e7e40de773bf623fb39073 Mon Sep 17 00:00:00 2001 From: Slava Zanko Date: Thu, 2 Dec 2010 12:12:57 +0200 Subject: [PATCH] Extended list of GCC warning flags. Signed-off-by: Slava Zanko --- m4.include/mc-cflags.m4 | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/m4.include/mc-cflags.m4 b/m4.include/mc-cflags.m4 index 754ef211f..b405a8148 100644 --- a/m4.include/mc-cflags.m4 +++ b/m4.include/mc-cflags.m4 @@ -48,11 +48,14 @@ dnl MC_CHECK_ONE_CFLAG([-fno-stack-protector]) esac dnl Sorted -W options: +dnl MC_CHECK_ONE_CFLAG([-Wbad-function-cast]) MC_CHECK_ONE_CFLAG([-Wcomment]) MC_CHECK_ONE_CFLAG([-Wdeclaration-after-statement]) + MC_CHECK_ONE_CFLAG([-Wfloat-equal]) MC_CHECK_ONE_CFLAG([-Wformat]) - MC_CHECK_ONE_CFLAG([-Wimplicit-function-declaration]) - MC_CHECK_ONE_CFLAG([-Wimplicit-int]) + MC_CHECK_ONE_CFLAG([-Wformat-security]) + MC_CHECK_ONE_CFLAG([-Wimplicit]) + MC_CHECK_ONE_CFLAG([-Wignored-qualifiers]) MC_CHECK_ONE_CFLAG([-Wmissing-braces]) MC_CHECK_ONE_CFLAG([-Wmissing-declarations]) MC_CHECK_ONE_CFLAG([-Wmissing-parameter-type]) @@ -63,12 +66,14 @@ dnl Sorted -W options: MC_CHECK_ONE_CFLAG([-Wparentheses]) MC_CHECK_ONE_CFLAG([-Wpointer-sign]) MC_CHECK_ONE_CFLAG([-Wreturn-type]) -dnl MC_CHECK_ONE_CFLAG([-Wsequence-point]) + MC_CHECK_ONE_CFLAG([-Wsequence-point]) MC_CHECK_ONE_CFLAG([-Wshadow]) MC_CHECK_ONE_CFLAG([-Wsign-compare]) dnl MC_CHECK_ONE_CFLAG([-Wstrict-aliasing]) MC_CHECK_ONE_CFLAG([-Wswitch]) + MC_CHECK_ONE_CFLAG([-Wtype-limits]) MC_CHECK_ONE_CFLAG([-Wuninitialized]) +dnl MC_CHECK_ONE_CFLAG([-Wunused-but-set-variable]) MC_CHECK_ONE_CFLAG([-Wunused-function]) MC_CHECK_ONE_CFLAG([-Wunused-label]) MC_CHECK_ONE_CFLAG([-Wunused-parameter]) -- 2.11.4.GIT