Kaydet (Commit) 96d3a20f authored tarafından Tor Lillqvist's avatar Tor Lillqvist

WaE: unreferenced formal parameters and old-style declarators

Change-Id: I3bdf909d169696b0ce79ee9830aa99ae880636db
üst 6ede7ad5
......@@ -27,3 +27,37 @@
const char *__shortopts,
const struct option *__longopts, int *__longind,
int __long_only);
--- misc/glibc-2.1.3/posix/getopt1.c
+++ misc/build/glibc-2.1.3/posix/getopt1.c
@@ -62,6 +62,13 @@
#ifndef NULL
#define NULL 0
#endif
+
+#ifdef _MSC_VER
+// C4100: unreferenced formal parameter
+#pragma warning (disable: 4100)
+// C4131: uses old-style declarator
+#pragma warning (disable: 4131)
+#endif
int
getopt_long (argc, argv, options, long_options, opt_index)
--- misc/glibc-2.1.3/posix/getopt.c
+++ misc/build/glibc-2.1.3/posix/getopt.c
@@ -86,6 +86,13 @@
# define _(msgid) (msgid)
# endif
#endif
+
+#ifdef _MSC_VER
+// C4100: unreferenced formal parameter
+#pragma warning (disable: 4100)
+// C4131: uses old-style declarator
+#pragma warning (disable: 4131)
+#endif
/* This version of `getopt' appears to the caller like standard Unix `getopt'
but it behaves differently for the user, since it allows the user
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment