./configure --enable-debug FLAGS cleanup 26/17626/2
Clément DAVID [Tue, 5 Jan 2016 15:17:10 +0000 (16:17 +0100)]
The '-Wall -Wextra' will set common global warnings.

Change-Id: I48039e7d24be3c797fe748abef5724eab972494b

scilab/configure
scilab/configure.ac

index 2272454..85520a7 100755 (executable)
@@ -9959,7 +9959,7 @@ case "$CXX" in
         fi
 
         if test "$enable_debug_CXX" = yes; then
-            DEBUG_CXXFLAGS="-pipe -Wshadow -Wpointer-arith -Wcast-align -Wreturn-type -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wparentheses -Wsign-compare -Wwrite-strings -Wunused -Wno-strict-aliasing -Wextra -Wall -g3 -Wunsafe-loop-optimizations"
+            DEBUG_CXXFLAGS="-Wall -Wextra -O0 -g3"
             case "$host" in
                 *-linux-gnu )
                     # Only doing that under Linux
@@ -9994,7 +9994,7 @@ case "$CC" in
    fi
 
    if test "$enable_debug_C" = yes; then
-      DEBUG_CFLAGS="-pipe -Wformat -Wshadow -Wfloat-equal -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations  -Wstrict-prototypes  -Wmissing-noreturn -Wendif-labels -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wwrite-strings -Winline -Wredundant-decls -Wall -Wchar-subscripts -Wextra  -Wuninitialized -Wno-format-y2k -Wmissing-format-attribute -Wno-missing-field-initializers -Wno-strict-aliasing  -Wold-style-definition -g3 -Wunsafe-loop-optimizations"
+      DEBUG_CFLAGS="-Wall -Wextra -O0 -g3"
       # used to be -O0
       case "$host" in
       *-linux-gnu )
index 918e4c0..32f0a92 100644 (file)
@@ -533,7 +533,7 @@ case "$CXX" in
         fi
 
         if test "$enable_debug_CXX" = yes; then
-            DEBUG_CXXFLAGS="-pipe -Wshadow -Wpointer-arith -Wcast-align -Wreturn-type -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wparentheses -Wsign-compare -Wwrite-strings -Wunused -Wno-strict-aliasing -Wextra -Wall -g3 -Wunsafe-loop-optimizations"
+            DEBUG_CXXFLAGS="-Wall -Wextra -O0 -g3"
             case "$host" in
                 *-linux-gnu )
                     # Only doing that under Linux
@@ -568,7 +568,7 @@ case "$CC" in
    fi
 
    if test "$enable_debug_C" = yes; then
-      DEBUG_CFLAGS="-pipe -Wformat -Wshadow -Wfloat-equal -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations  -Wstrict-prototypes  -Wmissing-noreturn -Wendif-labels -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wwrite-strings -Winline -Wredundant-decls -Wall -Wchar-subscripts -Wextra  -Wuninitialized -Wno-format-y2k -Wmissing-format-attribute -Wno-missing-field-initializers -Wno-strict-aliasing  -Wold-style-definition -g3 -Wunsafe-loop-optimizations"
+      DEBUG_CFLAGS="-Wall -Wextra -O0 -g3"
       # used to be -O0
       case "$host" in
       *-linux-gnu )