On the trunk:

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
This commit is contained in:
Stefan Eissing
2017-09-25 14:20:47 +00:00
parent 397a87ddb0
commit aaa695b07a
4 changed files with 17 additions and 2 deletions

View File

@ -15,8 +15,16 @@
*/
#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)

View File

@ -34,8 +34,17 @@
*/
#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
*/

View File

@ -14,7 +14,6 @@
* limitations under the License.
*/
#include "check.h"
#include "../httpdunit.h"
#include "httpd.h"

View File

@ -14,7 +14,6 @@
* limitations under the License.
*/
#include "check.h"
#include "../httpdunit.h"
#include "httpd.h"