diff --git a/include/stdex/html.hpp b/include/stdex/html.hpp
index b646fb288..0ed5db605 100644
--- a/include/stdex/html.hpp
+++ b/include/stdex/html.hpp
@@ -29,6 +29,11 @@
#undef small
#endif
+#if defined(__GNUC__)
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wunknown-pragmas"
+#endif
+
namespace stdex
{
namespace html
@@ -2687,3 +2692,7 @@ namespace stdex
};
}
}
+
+#if defined(__GNUC__)
+#pragma GCC diagnostic pop
+#endif