mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-19 05:36:22 +00:00
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:
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user