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
 endif
16
 endif
17
 
17
 
18
 CFLAGS ?= -O2 -ggdb \
18
 CFLAGS ?= -O2 -ggdb \
19
- -W -Wall -Wextra \
19
+ -W -Wall -Wextra -Wredundant-decls \
20
  -Wshadow -Wformat-security -Wstrict-prototypes
20
  -Wshadow -Wformat-security -Wstrict-prototypes
21
 
21
 
22
 DEFS = -DBUILD_ID=\"$(BUILD_ID)\" \
22
 DEFS = -DBUILD_ID=\"$(BUILD_ID)\" \

+ 0
- 3
tsdumper2.c View File

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

Loading…
Cancel
Save