diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1995-10-19 19:18:59 -0400 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1995-10-19 19:18:59 -0400 |
commit | 39b751ce5a6d74289963d38d1cbe6f0e3b65ea11 (patch) | |
tree | b72ba76fd1be81ffcd6633c2bee177cfb3f70fb8 /gcc | |
parent | 7bd7a75601476a02198e84dbc3c270c7af968cdf (diff) | |
download | gcc-39b751ce5a6d74289963d38d1cbe6f0e3b65ea11.zip gcc-39b751ce5a6d74289963d38d1cbe6f0e3b65ea11.tar.gz gcc-39b751ce5a6d74289963d38d1cbe6f0e3b65ea11.tar.bz2 |
(check_format_info): Make test for null pointer more general.
From-SVN: r10479
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/c-common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c index 41362fa..78b4d85 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -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; |