diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2014-05-28 19:11:04 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2014-05-28 19:11:04 +0000 |
commit | 803f7b5a33c74ced027f3a171a6a7966206d4e1d (patch) | |
tree | c568630a3438b0784b98efe5625f68286cf920f8 /configure | |
parent | f919aab408bc5cf22fb2a595437eab6868f3576d (diff) |
Added -Wformat-nonliteral flag.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 35 |
1 files changed, 35 insertions, 0 deletions
@@ -11927,6 +11927,41 @@ else : fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wformat-nonliteral" >&5 +$as_echo_n "checking whether C compiler accepts -Wformat-nonliteral... " >&6; } +if ${ax_cv_check_cflags___Wformat_nonliteral+:} false; then : + $as_echo_n "(cached) " >&6 +else + + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Wformat-nonliteral" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ax_cv_check_cflags___Wformat_nonliteral=yes +else + ax_cv_check_cflags___Wformat_nonliteral=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$ax_check_save_flags +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wformat_nonliteral" >&5 +$as_echo "$ax_cv_check_cflags___Wformat_nonliteral" >&6; } +if test x"$ax_cv_check_cflags___Wformat_nonliteral" = xyes; then : + DEFAULT_CFLAGS="$DEFAULT_CFLAGS -Wformat-nonliteral" +else + : +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstrict-aliasing -Wstrict-aliasing=2" >&5 $as_echo_n "checking whether C compiler accepts -fstrict-aliasing -Wstrict-aliasing=2... " >&6; } if ${ax_cv_check_cflags___fstrict_aliasing__Wstrict_aliasing_2+:} false; then : |