This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: warning when a function's address is tested?
- From: Jeff Sturm <jsturm at one-point dot com>
- To: Falk Hueffner <falk dot hueffner at student dot uni-tuebingen dot de>
- Cc: Andrew Morton <akpm at osdl dot org>, <gcc at gcc dot gnu dot org>
- Date: Sun, 12 Oct 2003 12:56:07 -0400 (EDT)
- Subject: Re: warning when a function's address is tested?
On 12 Oct 2003, Falk Hueffner wrote:
> > One legitimate use is to test for undefined weak symbols.
>
> But gcc knows that from __attribute__((weak)) and can suppress the
> warning in this case (like the C++ frontend does).
Thanks, didn't know c++ did that. So, never mind...
Jeff