[packages/crossavr-gcc] - fix format string warnings
baggins
baggins at pld-linux.org
Fri Dec 7 22:39:34 CET 2012
commit 98e1ed23183b48045fafc8b19ac488f6d92ba8d9
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Fri Dec 7 22:39:22 2012 +0100
- fix format string warnings
crossavr-gcc.spec | 2 ++
format-security.patch | 14 ++++++++++++++
2 files changed, 16 insertions(+)
---
diff --git a/crossavr-gcc.spec b/crossavr-gcc.spec
index eed82f8..9f60a23 100644
--- a/crossavr-gcc.spec
+++ b/crossavr-gcc.spec
@@ -13,6 +13,7 @@ Version: 4.6.2
Release: 2
Epoch: 1
Patch1: gcc-bug51969.patch
+Patch2: format-security.patch
# Patches 1xx are taken form Atmel official AVR8-GNU toolchain version 3.4.0.663.
Patch100: 200-gcc-libiberty-Makefile.in.patch
Patch101: 300-gcc-fixedpoint-3-4-2010.patch
@@ -114,6 +115,7 @@ Ten pakiet dodaje obsługę C++ do kompilatora gcc dla AVR.
%setup -q -n gcc-%{version}
cd gcc/config/%{target} && %undos -f c,h && cd -
%patch1 -p2
+%patch2 -p1
%patch100 -p0
%patch101 -p0
%patch102 -p0
diff --git a/format-security.patch b/format-security.patch
new file mode 100644
index 0000000..b549233
--- /dev/null
+++ b/format-security.patch
@@ -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;
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/crossavr-gcc.git/commitdiff/98e1ed23183b48045fafc8b19ac488f6d92ba8d9
More information about the pld-cvs-commit
mailing list