aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2003-04-04 22:35:22 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2003-04-04 22:35:22 +0000
commitda247cccbc27c6c1f78c15fe4922c8f806c5369a (patch)
tree5c159e249452b13bea7c189ba59ead9410fd9a13
parent08b0f5f900e6c9bb997e6b098488384feb805874 (diff)
downloadgcc-da247cccbc27c6c1f78c15fe4922c8f806c5369a.zip
gcc-da247cccbc27c6c1f78c15fe4922c8f806c5369a.tar.gz
gcc-da247cccbc27c6c1f78c15fe4922c8f806c5369a.tar.bz2
name-lookup.c (find_binding): Pass appropriate pointer type to POP_TIMEVAR_AND_RETURN.
* name-lookup.c (find_binding): Pass appropriate pointer type to POP_TIMEVAR_AND_RETURN. From-SVN: r65253
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/name-lookup.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index fab44f4..db629cd 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,8 @@
+2003-04-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * name-lookup.c (find_binding): Pass appropriate pointer type to
+ POP_TIMEVAR_AND_RETURN.
+
2003-04-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* Make-lang.in (cp-warn): Add $(STRICT_WARN).
diff --git a/gcc/cp/name-lookup.c b/gcc/cp/name-lookup.c
index b676711..0e39a9a 100644
--- a/gcc/cp/name-lookup.c
+++ b/gcc/cp/name-lookup.c
@@ -69,7 +69,7 @@ find_binding (cxx_scope *scope, cxx_binding *binding)
if (BINDING_SCOPE (binding) == scope)
POP_TIMEVAR_AND_RETURN (TV_NAME_LOOKUP, binding);
- POP_TIMEVAR_AND_RETURN (TV_NAME_LOOKUP, NULL);
+ POP_TIMEVAR_AND_RETURN (TV_NAME_LOOKUP, (cxx_binding *)0);
}
/* Return the binding for NAME in SCOPE, if any. Otherwise, return NULL. */