diff --git a/usr.bin/getopt/Makefile b/usr.bin/getopt/Makefile index 01dfa87e2935..06d4a2a62cd5 100644 --- a/usr.bin/getopt/Makefile +++ b/usr.bin/getopt/Makefile @@ -2,5 +2,6 @@ # PROG = getopt +WARNS?= 2 .include diff --git a/usr.bin/getopt/getopt.c b/usr.bin/getopt/getopt.c index c0d222125f10..830f63a3a34e 100644 --- a/usr.bin/getopt/getopt.c +++ b/usr.bin/getopt/getopt.c @@ -4,6 +4,7 @@ #include #include +int main(argc, argv) int argc; char *argv[];