This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Selector warning
- From: Graham Stott <graham dot stott at btinternet dot com>
- To: Devang Patel <dpatel at apple dot com>
- Cc: Neil Booth <neil at daikokuya dot co dot uk>, gcc-patches at gcc dot gnu dot org
- Date: Thu, 01 Aug 2002 22:43:33 +0100
- Subject: Re: PATCH: Selector warning
- References: <DC7CF314-A596-11D6-9C7C-00039310EDEA@apple.com>
A few more style issues.
Devang Patel wrote:
+ {
+ if (TREE_VALUE(method_chain) == TREE_VALUE(chain))
^ space before ( ^ likewise
+ {
+ /* Adjust line number for warning message. */
+ int save_lineno = lineno;
+ if (flag_next_runtime && TREE_PURPOSE(chain))
^ likewise
+ lineno = DECL_SOURCE_LINE(TREE_PURPOSE(chain));
^ likewise ^ likewise
+ warning ("creating selector for non existant method %s",
+ IDENTIFIER_POINTER (TREE_VALUE(chain)));
^ likewise