]> git.pld-linux.org Git - packages/crossmingw32-gcc.git/commitdiff
- fix format string warnings
authorJan Rękorajski <baggins@pld-linux.org>
Fri, 7 Dec 2012 21:40:16 +0000 (22:40 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Fri, 7 Dec 2012 21:40:16 +0000 (22:40 +0100)
crossmingw32-gcc.spec
format-security.patch [new file with mode: 0644]

index e26153e0bef9489189d5c916393b46c004015a03..05ebfc10b34cdf062632652242690bf884f9b314 100644 (file)
@@ -30,6 +30,7 @@ Patch100:     gcc-branch.diff
 Patch0:                %{name}-buildsystem1.patch
 Patch1:                %{name}-buildsystem2.patch
 Patch2:                %{name}-lfs.patch
+Patch3:                format-security.patch
 BuildRequires: autoconf
 BuildRequires: automake
 BuildRequires: bison
@@ -318,6 +319,7 @@ Ten pakiet zawiera kompilator Javy generujący kod pod Win32.
 %patch100 -p0
 %patch0 -p1
 %patch2 -p1
+%patch3 -p1
 
 %if %{with bootstrap}
 # note: "winsup" dirs below are special, handled by gcc's configure
diff --git a/format-security.patch b/format-security.patch
new file mode 100644 (file)
index 0000000..b549233
--- /dev/null
@@ -0,0 +1,14 @@
+--- gcc-4.6.2/libcpp/expr.c~   2011-04-29 00:39:59.000000000 +0200
++++ gcc-4.6.2/libcpp/expr.c    2012-12-07 22:38:30.102991906 +0100
+@@ -434,9 +434,9 @@
+                               : N_("use of C99 long long integer constant");
+         if (CPP_OPTION (pfile, c99))
+-            cpp_warning (pfile, CPP_W_LONG_LONG, message);
++            cpp_warning (pfile, CPP_W_LONG_LONG, "%s", message);
+           else
+-            cpp_pedwarning (pfile, CPP_W_LONG_LONG, message);
++            cpp_pedwarning (pfile, CPP_W_LONG_LONG, "%s", message);
+         }
+       result |= CPP_N_INTEGER;
This page took 0.233364 seconds and 4 git commands to generate.