summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@suse.com>2012-12-26 18:17:49 +0200
committerTor Lillqvist <tlillqvist@suse.com>2012-12-26 18:18:52 +0200
commit96d3a20f387191013bd3fbd485e31e39166b979c (patch)
tree6e6c8369d956d2e49e209f1f8dafbd9969d75fa9
parent6ede7ad5939562eb4be824542957c52012dbbe0b (diff)
WaE: unreferenced formal parameters and old-style declarators
Change-Id: I3bdf909d169696b0ce79ee9830aa99ae880636db
-rw-r--r--external/glibc/glibc-2.1.3.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/external/glibc/glibc-2.1.3.patch b/external/glibc/glibc-2.1.3.patch
index bedaad06fac3..a9feeccc4f67 100644
--- a/external/glibc/glibc-2.1.3.patch
+++ b/external/glibc/glibc-2.1.3.patch
@@ -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
+