Browse Source

Ticket #3428: fix -Wredundant-decls compiler warnings...

...and use compiler option for future compile checks.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Andreas Mohr 10 years ago
parent
commit
ca95dec659
4 changed files with 1 additions and 6 deletions
  1. 0 2
      lib/filehighlight/ini-file-read.c
  2. 0 2
      lib/skin/internal.h
  3. 0 2
      lib/tty/tty-slang.c
  4. 1 0
      m4.include/mc-cflags.m4

+ 0 - 2
lib/filehighlight/ini-file-read.c

@@ -38,8 +38,6 @@
 
 /*** global variables ****************************************************************************/
 
-extern mc_skin_t mc_skin__default;
-
 /*** file scope macro definitions ****************************************************************/
 
 /*** file scope type declarations ****************************************************************/

+ 0 - 2
lib/skin/internal.h

@@ -20,8 +20,6 @@ typedef struct mc_skin_color_struct
 
 /*** global variables defined in .c file *********************************************************/
 
-extern mc_skin_t mc_skin__default;
-
 /*** declarations of public functions ************************************************************/
 
 gboolean mc_skin_ini_file_load (mc_skin_t *);

+ 0 - 2
lib/tty/tty-slang.c

@@ -57,8 +57,6 @@
 
 /*** global variables ****************************************************************************/
 
-extern int reset_hp_softkeys;
-
 /*** file scope macro definitions ****************************************************************/
 
 #ifndef SLTT_MAX_SCREEN_COLS

+ 1 - 0
m4.include/mc-cflags.m4

@@ -63,6 +63,7 @@ dnl    MC_CHECK_ONE_CFLAG([-Wbad-function-cast])
     MC_CHECK_ONE_CFLAG([-Wno-unreachable-code])
     MC_CHECK_ONE_CFLAG([-Wparentheses])
     MC_CHECK_ONE_CFLAG([-Wpointer-sign])
+    MC_CHECK_ONE_CFLAG([-Wredundant-decls])
     MC_CHECK_ONE_CFLAG([-Wreturn-type])
     MC_CHECK_ONE_CFLAG([-Wsequence-point])
     MC_CHECK_ONE_CFLAG([-Wshadow])