This is the mail archive of the gcc@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]

possible bug


mnm:/home/akpm> cat t.c
void foo(void);

char *bar(void)
{
        return 0;
}

char *zot(void)
{
        return ({foo(); 0; });
}
mnm:/home/akpm> /usr/local/gcc-3.2.1/bin/gcc -O -Wall -c t.c
t.c: In function `zot':
t.c:10: warning: return makes pointer from integer without a cast


I think the warning is bogus?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]