Re: pragma GCC diagnostic

2008-10-17 Thread Jim Meyering
Jim Meyering <[EMAIL PROTECTED]> wrote: > "Manuel López-Ibáñez" <[EMAIL PROTECTED]> wrote: >> 2008/10/17 Bruno Haible <[EMAIL PROTECTED]>: >>> "#pragma GCC diagnostic" has a few limitations, which make it unusable to >>>

Re: pragma GCC diagnostic

2008-10-17 Thread Jim Meyering
"Manuel López-Ibáñez" <[EMAIL PROTECTED]> wrote: > 2008/10/17 Bruno Haible <[EMAIL PROTECTED]>: >> "#pragma GCC diagnostic" has a few limitations, which make it unusable to >> resolve warnings like this one: >> >> Jim Meyering wrote in

Re: pragma GCC diagnostic

2008-10-17 Thread Manuel López-Ibáñez
2008/10/17 Bruno Haible <[EMAIL PROTECTED]>: > "#pragma GCC diagnostic" has a few limitations, which make it unusable to > resolve warnings like this one: > > Jim Meyering wrote in [1]: >> $ cat in.c >> int f (void) __attribute__ ((__warn_unused_res

pragma GCC diagnostic

2008-10-17 Thread Bruno Haible
"#pragma GCC diagnostic" has a few limitations, which make it unusable to resolve warnings like this one: Jim Meyering wrote in [1]: > $ cat in.c > int f (void) __attribute__ ((__warn_unused_result__)); > void g (void) { (void) f (); } > $ gcc -Werror -c in