]> granicus.if.org Git - apache/commitdiff
On the trunk:
authorStefan Eissing <icing@apache.org>
Mon, 25 Sep 2017 14:20:47 +0000 (14:20 +0000)
committerStefan Eissing <icing@apache.org>
Mon, 25 Sep 2017 14:20:47 +0000 (14:20 +0000)
Fix for maintainer-mode compiler errors when including check.h in unit tests.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1809633 13f79535-47bb-0310-9956-ffa450edef68

test/httpdunit.c
test/httpdunit.h
test/unit/authn.c
test/unit/util.c

index 1e7582353a66602fdc17ea79699a0844df8ad81f..66ff243a2cfa3abe6dc484f9c10fad513c0e505f 100644 (file)
  */
 
 #include "apr.h"   /* for pid_t on Windows, needed by Check */
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wstrict-prototypes"
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wstrict-prototypes"
+
 #include "check.h"
 
+#pragma clang diagnostic pop
+#pragma GCC diagnostic pop
+
 #include "apr_general.h"
 
 static Suite *main_test_suite(void)
index 2fdee36e657f42fdbd967205c4f6ad9c8d7914ff..4df39b0d6e7135767f8d745ebe76edb4c2283d5f 100644 (file)
  */
 
 #include "apr.h"   /* for pid_t on Windows, needed by Check */
+
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wstrict-prototypes"
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wstrict-prototypes"
+
 #include "check.h"
 
+#pragma clang diagnostic pop
+#pragma GCC diagnostic pop
+
 /*
  * Boilerplate Macros
  */
index 67ef04a3c550f74ab2b5a189874008b65b686624..236248215c4f431a45dbfe2ab5e5b759e4be931e 100644 (file)
@@ -14,7 +14,6 @@
  * limitations under the License.
  */
 
-#include "check.h"
 #include "../httpdunit.h"
 
 #include "httpd.h"
index 17c10931a59dfb381a69eb14a58973091fb73519..5cadfd89ba1137439a12a4ab7e10a463fc8d5c0b 100644 (file)
@@ -14,7 +14,6 @@
  * limitations under the License.
  */
 
-#include "check.h"
 #include "../httpdunit.h"
 
 #include "httpd.h"