AC_CHECK_FUNC with -Werror

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

 



Hi,

I'm noticing that if I use something like AC_CHECK_FUNC([strdup])
and then run configure like:

	CFLAGS="-Wall -Werror" ./configure

The test for strdup fails with the error:
	error: conflicting types for built-in function 'strdup'

when using gcc 4.3.2.

What is the recommended way to use both of these features (AC_CHECK_FUNC
and -Werror) at once?

Thanks,
- Chris



_______________________________________________
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