This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: revive function address warning
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Ben Elliston <bje at au1 dot ibm dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: 12 Dec 2005 03:55:17 +0100
- Subject: Re: PATCH: revive function address warning
- References: <20051212001118.GA17873@ozlabs.au.ibm.com>
Ben Elliston <bje@au1.ibm.com> writes:
| + {
| + if (TREE_CODE (op1) == ADDR_EXPR
| + && DECL_P (TREE_OPERAND (op1, 0))
| + && !DECL_WEAK (TREE_OPERAND (op1, 0)))
| + warning (0, "the address of %qD will never be NULL",
^^
Could you use a flag value there? We're trying to get rid of
warning(0, xxx)
-- Gaby