This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Mark Mitchell <mark@codesourcery.com> writes: > This patch fixes several regressions in the C++ front end: And introduces a new one: /cvs/gcc/gcc/cp/search.c: In function 'current_scope': /cvs/gcc/gcc/cp/search.c:505: warning: old-style function definition make[2]: *** [cp/search.o] Error 1 You changed: ! tree ! current_scope (void) to: ! tree ! current_scope () Why? I'm committing now the reversal of this patch as obvious, Andreas 2004-10-27 Andreas Jaeger <aj@suse.de> * search.c (current_scope): Add lost void to avoid warning. ============================================================ Index: gcc/cp/search.c --- cp/search.c 27 Oct 2004 02:23:14 -0000 1.336 +++ cp/search.c 27 Oct 2004 05:51:15 -0000 @@ -501,7 +501,7 @@ lookup_field_1 (tree type, tree name, bo NAMESPACE_DECL corresponding to the innermost non-block scope. */ tree -current_scope () +current_scope (void) { /* There are a number of cases we need to be aware of here: current_class_type current_function_decl -- Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj SUSE Linux AG, Maxfeldstr. 5, 90409 NÃrnberg, Germany GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
Attachment:
pgp00000.pgp
Description: PGP signature
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |