diff options
author | Brian Behlendorf <[email protected]> | 2023-05-02 09:21:47 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2023-05-02 09:21:47 -0700 |
commit | 012829df0c99d843c9c873b9be57796eaecb155b (patch) | |
tree | ac8021ac205a4bea1785b7930fd99080a6500ec5 /include/os | |
parent | e2a92d726e1849f646d137510796b11c26d45cae (diff) |
Wrap clang specific pragma
Clang specific pragmas need to be wrapped to prevent a build
warning when compiling with gcc.
Reviewed-by: Tino Reichardt <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #14814
Diffstat (limited to 'include/os')
-rw-r--r-- | include/os/linux/zfs/sys/trace_zil.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/os/linux/zfs/sys/trace_zil.h b/include/os/linux/zfs/sys/trace_zil.h index fb03d3149..7bddd9d1f 100644 --- a/include/os/linux/zfs/sys/trace_zil.h +++ b/include/os/linux/zfs/sys/trace_zil.h @@ -153,8 +153,10 @@ * itx_t *, ...); */ +#if defined(__clang__) #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wordered-compare-function-pointers" +#endif /* BEGIN CSTYLED */ DECLARE_EVENT_CLASS(zfs_zil_process_itx_class, TP_PROTO(zilog_t *zilog, itx_t *itx), @@ -172,7 +174,9 @@ DECLARE_EVENT_CLASS(zfs_zil_process_itx_class, ZILOG_TP_PRINTK_ARGS, ITX_TP_PRINTK_ARGS) ); /* END CSTYLED */ +#if defined(__clang__) #pragma clang diagnostic pop +#endif #define DEFINE_ZIL_PROCESS_ITX_EVENT(name) \ DEFINE_EVENT(zfs_zil_process_itx_class, name, \ |