Browse Source

Add -Wredundant-decls to compiler flags.

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

+ 1
- 1
Makefile View File

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

+ 0
- 3
tsdecrypt.c View File

301
 	return !(!port_set || !host_set);
301
 	return !(!port_set || !host_set);
302
 }
302
 }
303
 
303
 
304
-extern char *optarg;
305
-extern int optind, opterr, optopt;
306
-
307
 static void parse_options(struct ts *ts, int argc, char **argv) {
304
 static void parse_options(struct ts *ts, int argc, char **argv) {
308
 	int j, i, ca_err = 0, server_err = 1, input_addr_err = 0, output_addr_err = 0, ident_err = 0, port_set = 0;
305
 	int j, i, ca_err = 0, server_err = 1, input_addr_err = 0, output_addr_err = 0, ident_err = 0, port_set = 0;
309
 	while ((j = getopt_long(argc, argv, short_options, long_options, NULL)) != -1) {
306
 	while ((j = getopt_long(argc, argv, short_options, long_options, NULL)) != -1) {

Loading…
Cancel
Save