X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fbinutils-gdb.git;a=blobdiff_plain;f=sim%2Fcr16%2Fconfigure;fp=sim%2Fcr16%2Fconfigure;h=371c3553ce03e240293dbd0f081cc3c6aa3306e1;hp=2c8a6e0abab41163a65cb93bf185b470996d64a2;hb=982c3a65ca5dbea8d6de3afd934f0a06fef54383;hpb=3f8414df7a533cccd39bf19c0e311975d9ededde diff --git a/sim/cr16/configure b/sim/cr16/configure index 2c8a6e0abab..371c3553ce0 100755 --- a/sim/cr16/configure +++ b/sim/cr16/configure @@ -11149,15 +11149,14 @@ if test "${enable_werror+set}" = set; then : fi -# Enable -Werror by default when using gcc if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then - ERROR_ON_WARNING=yes + ERROR_ON_WARNING=yes fi WERROR_CFLAGS="" - if test "${ERROR_ON_WARNING}" = yes ; then - WERROR_CFLAGS="-Werror" - fi +if test "${ERROR_ON_WARNING}" = yes ; then + WERROR_CFLAGS="-Werror" +fi build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \ -Wpointer-sign \