aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.in8
-rw-r--r--wiretap/configure.in8
2 files changed, 8 insertions, 8 deletions
diff --git a/configure.in b/configure.in
index fcf9df0827..4bd72f9beb 100644
--- a/configure.in
+++ b/configure.in
@@ -214,12 +214,12 @@ AC_ARG_WITH(warnings-as-errors,
AC_HELP_STRING( [--with-warnings-as-errors],
[Treat warnings as errors (only for gcc). [default=yes]]),
[
- if test "x$GCC" != "x" && test "x$withval" != "xno"; then
- with_warnings_as_errors="no"
- AC_MSG_RESULT(no)
- else
+ if test "x$GCC" != "x" && test "x$withval" == "xyes"; then
with_warnings_as_errors="yes"
AC_MSG_RESULT(yes)
+ else
+ with_warnings_as_errors="no"
+ AC_MSG_RESULT(no)
fi
],
if test "x$GCC" != "x" && test "x$wireshark_extra_gcc_flags" = "x"; then
diff --git a/wiretap/configure.in b/wiretap/configure.in
index 20b357cd6d..d5cea44085 100644
--- a/wiretap/configure.in
+++ b/wiretap/configure.in
@@ -88,12 +88,12 @@ AC_ARG_WITH(warnings-as-errors,
AC_HELP_STRING( [--with-warnings-as-errors],
[Treat warnings as errors (only for gcc). [default=yes]]),
[
- if test "x$GCC" != "x" && test "x$withval" != "xno"; then
- with_warnings_as_errors="no"
- AC_MSG_RESULT(no)
- else
+ if test "x$GCC" != "x" && test "x$withval" == "xyes"; then
with_warnings_as_errors="yes"
AC_MSG_RESULT(yes)
+ else
+ with_warnings_as_errors="no"
+ AC_MSG_RESULT(no)
fi
],
if test "x$GCC" != "x" && test "x$wireshark_extra_gcc_flags" = "x"; then