]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
Remove optarg, opterr, and optind definitions to quell -Wshadow warnings
authorNgie Cooper <yanegomi@gmail.com>
Thu, 14 Jul 2016 05:32:09 +0000 (22:32 -0700)
committerWillem Toorop <willem@nlnetlabs.nl>
Mon, 17 Oct 2016 19:18:55 +0000 (14:18 -0500)
They are by POSIX definition made available with unistd.h

Reported by: clang 3.8.0, gcc 5.3.0
Signed-off-by: Ngie Cooper <yanegomi@gmail.com>
drill/configure.ac

index b7fe2aee07a8e8ee85bb6047886bfb1cb33c478d..a11d131fffdf59c684327809549e48104c3b7f5e 100644 (file)
@@ -258,9 +258,6 @@ AH_BOTTOM([
 #include <ws2tcpip.h>
 #endif
 
-extern char *optarg;
-extern int optind, opterr;
-
 #ifndef EXIT_FAILURE
 #define EXIT_FAILURE  1
 #endif