]> granicus.if.org Git - libevent/commitdiff
Fix -Werror for autotools
authorAzat Khuzhin <azat@libevent.org>
Sat, 9 Jul 2022 11:43:39 +0000 (14:43 +0300)
committerAzat Khuzhin <azat@libevent.org>
Sat, 9 Jul 2022 14:16:56 +0000 (17:16 +0300)
configure.ac

index 7b98196c3b56e1e9cc2ecbdacd0ffb9f9f37bde4..a93f0304e29af0d794c65fc8d372d4da4af707f8 100644 (file)
@@ -762,7 +762,7 @@ if test "$enable_gcc_warnings" != "no" && test "$GCC" = "yes"; then
   AX_CHECK_COMPILE_FLAG([-Wwrite-strings],[CFLAGS="$CFLAGS -Wwrite-strings"],[],[-Werror])
 
   dnl Convert warnings into errors
-  if test x"$enable_gcc_warnings" = "yes"; then
+  if test "$enable_gcc_warnings" = "yes"; then
     AX_CHECK_COMPILE_FLAG([-Werror], [CFLAGS="$CFLAGS -Werror"])
   fi