You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ji...@apache.org on 2017/10/02 15:29:14 UTC

svn commit: r1810448 - /httpd/httpd/trunk/configure.in

Author: jim
Date: Mon Oct  2 15:29:14 2017
New Revision: 1810448

URL: http://svn.apache.org/viewvc?rev=1810448&view=rev
Log:
Get maintainer-mode working again w/ clang-900

Modified:
    httpd/httpd/trunk/configure.in

Modified: httpd/httpd/trunk/configure.in
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/configure.in?rev=1810448&r1=1810447&r2=1810448&view=diff
==============================================================================
--- httpd/httpd/trunk/configure.in (original)
+++ httpd/httpd/trunk/configure.in Mon Oct  2 15:29:14 2017
@@ -630,6 +630,11 @@ AC_ARG_ENABLE(maintainer-mode,APACHE_HEL
     APR_ADDTO(CPPFLAGS, -DAP_DEBUG)
     if test "$GCC" = "yes"; then
       APR_ADDTO(CFLAGS,[-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Wpointer-arith])
+      case `($CC --version) 2>/dev/null` in
+        *clang-900*)
+          APACHE_ADD_GCC_CFLAG([-Wno-error=strict-prototypes])
+          ;;
+      esac
       APACHE_ADD_GCC_CFLAG([-std=c89])
       APACHE_ADD_GCC_CFLAG([-Werror])
       APACHE_ADD_GCC_CFLAG([-Wdeclaration-after-statement])
@@ -656,6 +661,11 @@ AC_ARG_ENABLE(debugger-mode,APACHE_HELP_
     APR_ADDTO(CPPFLAGS, -DAP_DEBUG)
     if test "$GCC" = "yes"; then
       APR_ADDTO(CFLAGS,[-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Wpointer-arith -O0])
+      case `($CC --version) 2>/dev/null` in
+        *clang-900*)
+          APACHE_ADD_GCC_CFLAG([-Wno-error=strict-prototypes])
+          ;;
+      esac
       APACHE_ADD_GCC_CFLAG([-Wdeclaration-after-statement])
       APACHE_ADD_GCC_CFLAG([-Werror=declaration-after-statement])
       APACHE_ADD_GCC_CFLAG([-Wformat])