summaryrefslogtreecommitdiff
path: root/devel/binutils/patches
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2007-08-14 09:08:07 +0000
committerrillig <rillig@pkgsrc.org>2007-08-14 09:08:07 +0000
commit8a2abcff8973b7fc983563902cf09b7ee9f4e7c4 (patch)
tree3cfabeac025e7d89837ae987e735833bbb8ff4d6 /devel/binutils/patches
parentd2a43c504666636c07e030e65f47095eba177d88 (diff)
downloadpkgsrc-8a2abcff8973b7fc983563902cf09b7ee9f4e7c4.tar.gz
Fixed a gcc warning reported in PR 36777:
read.c:1426: warning: 'stopc' may be used uninitialized in this function
Diffstat (limited to 'devel/binutils/patches')
-rw-r--r--devel/binutils/patches/patch-af13
1 files changed, 13 insertions, 0 deletions
diff --git a/devel/binutils/patches/patch-af b/devel/binutils/patches/patch-af
new file mode 100644
index 00000000000..8d6d41c4414
--- /dev/null
+++ b/devel/binutils/patches/patch-af
@@ -0,0 +1,13 @@
+$NetBSD: patch-af,v 1.1 2007/08/14 09:08:07 rillig Exp $
+
+--- gas/read.c.orig 2005-11-17 08:29:28.000000000 +0100
++++ gas/read.c 2007-08-14 11:03:42.000000000 +0200
+@@ -1423,7 +1423,7 @@ s_comm_internal (int param,
+ offsetT temp, size;
+ symbolS *symbolP = NULL;
+ char *stop = NULL;
+- char stopc;
++ char stopc = '\0'; /* XXX: gcc -Wuninitialized */
+ expressionS exp;
+
+ if (flag_mri)