From e3f76c80a557213664094a51d6f6a15b78ac8b20 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 17 May 2020 21:06:37 +0000 Subject: [PATCH] qla2x00t-32gbit: Only use 'pragma GCC diagnostic' if supported by gcc git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8936 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- qla2x00t-32gbit/include/trace/events/qla.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qla2x00t-32gbit/include/trace/events/qla.h b/qla2x00t-32gbit/include/trace/events/qla.h index 737a667ab..e3b470023 100644 --- a/qla2x00t-32gbit/include/trace/events/qla.h +++ b/qla2x00t-32gbit/include/trace/events/qla.h @@ -9,8 +9,10 @@ #define QLA_MSG_MAX 256 +#if __GNUC__ * 256 + __GNUC_MINOR__ >= 4 * 256 + 6 #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wsuggest-attribute=format" +#endif DECLARE_EVENT_CLASS(qla_log_event, TP_PROTO(const char *buf, @@ -35,7 +37,9 @@ DEFINE_EVENT(qla_log_event, ql_dbg_log, TP_ARGS(buf, vaf) ); +#if __GNUC__ * 256 + __GNUC_MINOR__ >= 4 * 256 + 6 #pragma GCC diagnostic pop +#endif #endif /* _TRACE_QLA_H */