From 3bbefcdd743a303f8cad4ae75d493e9d341d5382 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 30 Aug 2020 21:18:27 +0200 Subject: [PATCH] Don't trigger warnings in standard headers when building wxQt Pre-include QFont header in wxQt to avoid warnings for the other headers included from it. --- tests/allheaders.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/allheaders.cpp b/tests/allheaders.cpp index cb3a6e3b67..192eb91b75 100644 --- a/tests/allheaders.cpp +++ b/tests/allheaders.cpp @@ -84,6 +84,10 @@ #include "catch.hpp" +#if defined(__WXQT__) + #include +#endif + #ifdef GCC_TURN_OFF #pragma GCC diagnostic pop #endif