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
This commit is contained in:
Bart Van Assche
2020-05-17 21:06:37 +00:00
parent fa4383ce03
commit e3f76c80a5
@@ -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 */