From c4eba25f6e0bf6ce502ae5cc8c23f7acd1d9d292 Mon Sep 17 00:00:00 2001 From: Neil Hodgson Date: Sat, 22 Jun 2019 16:04:49 +1000 Subject: Suppress GCC 8 diagnostic Wcast-function-type as this occurs many times for casts in code generated by Shiboken. --- qt/ScintillaEdit/ScintillaEdit.h.template | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qt/ScintillaEdit/ScintillaEdit.h.template b/qt/ScintillaEdit/ScintillaEdit.h.template index 875f2bee8..c218521fe 100644 --- a/qt/ScintillaEdit/ScintillaEdit.h.template +++ b/qt/ScintillaEdit/ScintillaEdit.h.template @@ -65,6 +65,9 @@ public: #if defined(__GNUC__) #pragma GCC diagnostic ignored "-Wmissing-field-initializers" +#if !defined(__clang__) && (__GNUC__ >= 8) +#pragma GCC diagnostic ignored "-Wcast-function-type" +#endif #endif #endif /* SCINTILLAEDIT_H */ -- cgit v1.2.3