summaryrefslogtreecommitdiff
path: root/cross/COMMON
diff options
context:
space:
mode:
authormycroft <mycroft@pkgsrc.org>2000-06-11 18:45:54 +0000
committermycroft <mycroft@pkgsrc.org>2000-06-11 18:45:54 +0000
commit3378242b7851cc779765df02863545750f697b1b (patch)
tree5089ebca66dd757b292a02d501424d5ccbc4e7ee /cross/COMMON
parent3a7735cc54090870dab887d46d08e11cbefa66c2 (diff)
downloadpkgsrc-3378242b7851cc779765df02863545750f697b1b.tar.gz
Pull in the change to only do the null format string check if -pedantic.
Diffstat (limited to 'cross/COMMON')
-rw-r--r--cross/COMMON/patches-egcs/patch-ai14
1 files changed, 14 insertions, 0 deletions
diff --git a/cross/COMMON/patches-egcs/patch-ai b/cross/COMMON/patches-egcs/patch-ai
new file mode 100644
index 00000000000..c0ee46c9f46
--- /dev/null
+++ b/cross/COMMON/patches-egcs/patch-ai
@@ -0,0 +1,14 @@
+$NetBSD: patch-ai,v 1.1 2000/06/11 18:45:54 mycroft Exp $
+
+--- gcc/c-common.c.orig Tue Aug 18 18:49:52 1998
++++ gcc/c-common.c Sun Jun 11 14:41:38 2000
+@@ -1314,7 +1314,8 @@
+
+ if (integer_zerop (format_tree))
+ {
+- warning ("null format string");
++ if (pedantic)
++ warning ("null format string");
+ return;
+ }
+ if (TREE_CODE (format_tree) != ADDR_EXPR)