[Libreoffice-commits] .: external/glibc
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Wed Dec 26 08:19:22 PST 2012
external/glibc/glibc-2.1.3.patch | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
New commits:
commit 96d3a20f387191013bd3fbd485e31e39166b979c
Author: Tor Lillqvist <tlillqvist at suse.com>
Date: Wed Dec 26 18:17:49 2012 +0200
WaE: unreferenced formal parameters and old-style declarators
Change-Id: I3bdf909d169696b0ce79ee9830aa99ae880636db
diff --git a/external/glibc/glibc-2.1.3.patch b/external/glibc/glibc-2.1.3.patch
index bedaad0..a9feecc 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
+
More information about the Libreoffice-commits
mailing list