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
*/
#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)
*/
#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
*/
* limitations under the License.
*/
-#include "check.h"
#include "../httpdunit.h"
#include "httpd.h"
* limitations under the License.
*/
-#include "check.h"
#include "../httpdunit.h"
#include "httpd.h"