Browse Source

Add -Wredundant-decls to compiler flags.

Georgi Chorbadzhiyski 9 years ago
parent
commit
a2e4c2273e
2 changed files with 1 additions and 4 deletions
  1. 1
    1
      Makefile
  2. 0
    3
      tsdumper2.c

+ 1
- 1
Makefile View File

@@ -16,7 +16,7 @@ Q = @
16 16
 endif
17 17
 
18 18
 CFLAGS ?= -O2 -ggdb \
19
- -W -Wall -Wextra \
19
+ -W -Wall -Wextra -Wredundant-decls \
20 20
  -Wshadow -Wformat-security -Wstrict-prototypes
21 21
 
22 22
 DEFS = -DBUILD_ID=\"$(BUILD_ID)\" \

+ 0
- 3
tsdumper2.c View File

@@ -81,9 +81,6 @@ static void show_help(struct ts *ts) {
81 81
 	printf("\n");
82 82
 }
83 83
 
84
-extern char *optarg;
85
-extern int optind, opterr, optopt;
86
-
87 84
 static void parse_options(struct ts *ts, int argc, char **argv) {
88 85
 	int j, input_addr_err = 1;
89 86
 	while ((j = getopt_long(argc, argv, short_options, long_options, NULL)) != -1) {

Loading…
Cancel
Save