Files
MINGW-packages/mingw-w64-remake-git/make-getopt.patch
2015-11-26 23:26:51 +00:00

24 lines
629 B
Diff

Fixes the following warnings:
getopt.c: In function '_getopt_initialize':
getopt.c:382: warning: unused parameter 'argc'
getopt.c:382: warning: unused parameter 'argv'
Index: getopt.c
===================================================================
RCS file: /sources/make/make/getopt.c,v
retrieving revision 1.22
diff -u -p -r1.22 getopt.c
--- make-3.82.orig/getopt.c 25 Oct 2009 18:56:45 -0000 1.22
+++ make-3.82/getopt.c 5 Jul 2010 20:05:22 -0000
@@ -436,6 +436,9 @@ _getopt_initialize (int argc, char *cons
}
else
nonoption_flags_len = 0;
+#else
+ (void)argc;
+ (void)argv;
#endif
return optstring;