From 9b9569240d279babe3c073a8f70b637c80e459e8 Mon Sep 17 00:00:00 2001 From: SeokYeon Hwang Date: Wed, 2 Sep 2015 13:07:37 +0900 Subject: [PATCH] configure: fixed logic when "--enable-error" is specified If "--enable-error" is specified, "configure" had not tried to set CONFIG_PRAGMA_DIAGNOSTIC_AVAILABLE. To fixed this problem "configure" should skip setting "werror" only. Change-Id: I6d204ca25d242aa8b2e9c12fd8f1f1f85dcad9f4 Signed-off-by: SeokYeon Hwang --- configure | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/configure b/configure index 8e90b04..e61a4a7 100755 --- a/configure +++ b/configure @@ -4336,10 +4336,10 @@ int main(void) { return 0; } EOF -if test "$force_werror" != "yes"; then - if compile_prog "-Werror" "" ; then - pragma_diagnostic_available=yes - else +if compile_prog "-Werror" "" ; then + pragma_diagnostic_available=yes +else + if test "$force_werror" != "yes"; then werror=no fi fi -- 2.7.4