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 <syeon.hwang@samsung.com>
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