diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2008-05-22 16:59:48 +0200 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2008-05-22 16:59:48 +0200 |
commit | d67561124622885e41d3c7693e6c24486dd1f71b (patch) | |
tree | 49395068e690c479e17a284ca5fadc54f7255729 | |
parent | 5252a9ad51a480a8b070473b5dffeeaf4c64514c (diff) | |
download | xine-lib-d67561124622885e41d3c7693e6c24486dd1f71b.tar.gz xine-lib-d67561124622885e41d3c7693e6c24486dd1f71b.tar.bz2 |
Announce check for -Werror (and equivalent) flags and its result.
--HG--
extra : transplant_source : %F0n%9C%FB%F9%B3%1E%A5P%D6%20%01%EF%83k8%7D%8A%D4%5B
-rw-r--r-- | m4/attributes.m4 | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/m4/attributes.m4 b/m4/attributes.m4 index 2b7175b1c..81e6586ce 100644 --- a/m4/attributes.m4 +++ b/m4/attributes.m4 @@ -71,9 +71,11 @@ dnl Other compilers don't support -Werror per se, but they support dnl an equivalent flag: dnl - Sun Studio compiler supports -errwarn=%all AC_DEFUN([CC_CHECK_WERROR], [ - AC_CACHE_VAL([cc_cv_werror], - [CC_CHECK_CFLAGS([-Werror], [cc_cv_werror=-Werror], - [CC_CHECK_CFLAGS([-errwarn=%all], [cc_cv_werror=-errwarn=%all])]) + AC_CACHE_CHECK( + [for $CC way to treat warnings as errors], + [cc_cv_werror], + [CC_CHECK_CFLAGS_SILENT([-Werror], [cc_cv_werror=-Werror], + [CC_CHECK_CFLAGS_SILENT([-errwarn=%all], [cc_cv_werror=-errwarn=%all])]) ]) ]) |