diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2014-06-11 16:50:00 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2014-06-11 16:50:00 +0000 |
commit | c0a31f2656d1746bce1cc242b6f65c1191a1f529 (patch) | |
tree | 770e1151e6292cfb19e3d7ed636f1451229ef83c /configure | |
parent | 2e59d67d7aeb5df801899ead4f9e6e386722cacc (diff) |
Added the following compiler flags:
* -Wunused-but-set-parameter
* -Wignored-qualifiers
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 70 |
1 files changed, 70 insertions, 0 deletions
@@ -11858,6 +11858,41 @@ else : fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wunused-but-set-parameter" >&5 +$as_echo_n "checking whether C compiler accepts -Wunused-but-set-parameter... " >&6; } +if ${ax_cv_check_cflags___Wunused_but_set_parameter+:} false; then : + $as_echo_n "(cached) " >&6 +else + + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Wunused-but-set-parameter" + 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___Wunused_but_set_parameter=yes +else + ax_cv_check_cflags___Wunused_but_set_parameter=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___Wunused_but_set_parameter" >&5 +$as_echo "$ax_cv_check_cflags___Wunused_but_set_parameter" >&6; } +if test x"$ax_cv_check_cflags___Wunused_but_set_parameter" = xyes; then : + DEFAULT_CFLAGS="$DEFAULT_CFLAGS -Wunused-but-set-parameter" +else + : +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Waddress" >&5 $as_echo_n "checking whether C compiler accepts -Waddress... " >&6; } if ${ax_cv_check_cflags___Waddress+:} false; then : @@ -12068,6 +12103,41 @@ else : fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wignored-qualifiers" >&5 +$as_echo_n "checking whether C compiler accepts -Wignored-qualifiers... " >&6; } +if ${ax_cv_check_cflags___Wignored_qualifiers+:} false; then : + $as_echo_n "(cached) " >&6 +else + + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Wignored-qualifiers" + 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___Wignored_qualifiers=yes +else + ax_cv_check_cflags___Wignored_qualifiers=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___Wignored_qualifiers" >&5 +$as_echo "$ax_cv_check_cflags___Wignored_qualifiers" >&6; } +if test x"$ax_cv_check_cflags___Wignored_qualifiers" = xyes; then : + DEFAULT_CFLAGS="$DEFAULT_CFLAGS -Wignored-qualifiers" +else + : +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstrict-aliasing -Wstrict-aliasing" >&5 $as_echo_n "checking whether C compiler accepts -fstrict-aliasing -Wstrict-aliasing... " >&6; } if ${ax_cv_check_cflags___fstrict_aliasing__Wstrict_aliasing+:} false; then : |