]> gcc.gnu.org Git - gcc.git/commitdiff
(check_format_info): Make test for null pointer more general.
authorRichard Kenner <kenner@gcc.gnu.org>
Thu, 19 Oct 1995 23:18:59 +0000 (19:18 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Thu, 19 Oct 1995 23:18:59 +0000 (19:18 -0400)
From-SVN: r10479

gcc/c-common.c

index 41362faf2c49b54493c6853298f37f9eec13f10c..78b4d858acbf41fb236d28dbb214d486e2d98816 100644 (file)
@@ -874,7 +874,7 @@ check_format_info (info, params)
   /* We can only check the format if it's a string constant.  */
   while (TREE_CODE (format_tree) == NOP_EXPR)
     format_tree = TREE_OPERAND (format_tree, 0); /* strip coercion */
-  if (format_tree == null_pointer_node)
+  if (integer_zerop (format_tree))
     {
       warning ("null format string");
       return;
This page took 0.066907 seconds and 5 git commands to generate.