Re: how to check callback prototypes?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 <ueka1s6fa.fsf@xxxxxxx>Sam Steingold writes:
<snip>
>so: how do I turn the warning into a failed compilation?
>(the result: above should be "no", not "yes")

Well, you could pass -Werror to the compiler, if its gcc.
Perhaps you could save CFLAGS, append -Werror, run your test, and then
restore the previous CFLAGS. That might work.

Of course, your test would break with any other compiler. Maybe a case
check: 'if gcc, use -Werror, if compilerX use <Whatever>, etc.'

not a great solution... :|
anyone else have better ideas?

-tom


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux