summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>2003-02-13 08:02:39 +0000
committergdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>2003-02-13 08:02:39 +0000
commit56ec8cdee93b0dbba914e7587b2c3653c32f2003 (patch)
treee07c9718b64aaac883cdf929984dfdc6ce66070a
parent8eddabf18b2c8abf1f1a65692b9a1e4c96e8ee70 (diff)
downloadppe42-gcc-56ec8cdee93b0dbba914e7587b2c3653c32f2003.tar.gz
ppe42-gcc-56ec8cdee93b0dbba914e7587b2c3653c32f2003.zip
2003-02-14 Andrew Pinski <pinskia@physics.uc.edu>
* decl.c: (define_label): Fix warning for return 0 instead of NULL. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@62828 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/cp/ChangeLog4
-rw-r--r--gcc/cp/decl.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 45b1497d6ca..a420d2981b6 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,7 @@
+2003-02-14 Andrew Pinski <pinskia@physics.uc.edu>
+
+ * decl.c: (define_label): Fix warning for return 0 instead of NULL.
+
2003-02-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
* decl.c: Include "timevar.h".
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index 9cb47367135..dadb5214b1c 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -5003,7 +5003,7 @@ define_label (const char* filename, int line, tree name)
if (DECL_INITIAL (decl) != NULL_TREE)
{
error ("duplicate label `%D'", decl);
- POP_TIMEVAR_AND_RETURN (TV_NAME_LOOKUP, 0);
+ POP_TIMEVAR_AND_RETURN (TV_NAME_LOOKUP, NULL);
}
else
{
OpenPOWER on IntegriCloud