X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fbinutils-gdb.git;a=blobdiff_plain;f=sim%2Friscv%2Fconfigure;fp=sim%2Friscv%2Fconfigure;h=94bf447bedef639827fead7ecf79f2f55f50ac19;hp=cdbedcceabc3111d02bfa8f618d8723139b3d1ec;hb=982c3a65ca5dbea8d6de3afd934f0a06fef54383;hpb=3f8414df7a533cccd39bf19c0e311975d9ededde diff --git a/sim/riscv/configure b/sim/riscv/configure index cdbedcceabc..94bf447bede 100755 --- a/sim/riscv/configure +++ b/sim/riscv/configure @@ -11243,15 +11243,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 \