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

+ 0
- 3
tsdecrypt.c View File

@@ -301,9 +301,6 @@ static int parse_io_param(struct io *io, char *opt, int open_flags, mode_t open_
301 301
 	return !(!port_set || !host_set);
302 302
 }
303 303
 
304
-extern char *optarg;
305
-extern int optind, opterr, optopt;
306
-
307 304
 static void parse_options(struct ts *ts, int argc, char **argv) {
308 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 306
 	while ((j = getopt_long(argc, argv, short_options, long_options, NULL)) != -1) {

Loading…
Cancel
Save