Pull in the change to only do the null format string check if -pedantic.
This commit is contained in:
parent
3a7735cc54
commit
3378242b78
1 changed files with 14 additions and 0 deletions
14
cross/COMMON/patches-egcs/patch-ai
Normal file
14
cross/COMMON/patches-egcs/patch-ai
Normal file
|
@ -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)
|
Loading…
Reference in a new issue