Commit Graph

3 Commits

Author SHA1 Message Date
Sebastian Pipping
8829f5c3fd conftools: Fix regression with detection of -Wstrict-prototypes
The issue was that the code generated by AC_LANG_PROGRAM
produces warnings, and hence -Werror makes detection fail:

$ gcc -x c -Werror -Wstrict-prototypes - <<<'int main() {}'; echo $?
<stdin>:1:5: error: function declaration isn’t a prototype [-Werror=strict-prototypes]
cc1: all warnings being treated as errors
1
2020-03-20 05:35:57 +01:00
Sebastian Pipping
21381bf35e conftools: Use -Werror when checking compile flags 2020-03-20 05:35:57 +01:00
Marco Maggi
d84a5f6caa added use of AX_CHECK_COMPILE_FLAG Autoconf macro 2018-10-18 12:26:04 +02:00