Wrap clang specific pragma
Clang specific pragmas need to be wrapped to prevent a build warning when compiling with gcc. Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #14814
This commit is contained in:
parent
e2a92d726e
commit
012829df0c
|
@ -153,8 +153,10 @@
|
||||||
* itx_t *, ...);
|
* itx_t *, ...);
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if defined(__clang__)
|
||||||
#pragma clang diagnostic push
|
#pragma clang diagnostic push
|
||||||
#pragma clang diagnostic ignored "-Wordered-compare-function-pointers"
|
#pragma clang diagnostic ignored "-Wordered-compare-function-pointers"
|
||||||
|
#endif
|
||||||
/* BEGIN CSTYLED */
|
/* BEGIN CSTYLED */
|
||||||
DECLARE_EVENT_CLASS(zfs_zil_process_itx_class,
|
DECLARE_EVENT_CLASS(zfs_zil_process_itx_class,
|
||||||
TP_PROTO(zilog_t *zilog, itx_t *itx),
|
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)
|
ZILOG_TP_PRINTK_ARGS, ITX_TP_PRINTK_ARGS)
|
||||||
);
|
);
|
||||||
/* END CSTYLED */
|
/* END CSTYLED */
|
||||||
|
#if defined(__clang__)
|
||||||
#pragma clang diagnostic pop
|
#pragma clang diagnostic pop
|
||||||
|
#endif
|
||||||
|
|
||||||
#define DEFINE_ZIL_PROCESS_ITX_EVENT(name) \
|
#define DEFINE_ZIL_PROCESS_ITX_EVENT(name) \
|
||||||
DEFINE_EVENT(zfs_zil_process_itx_class, name, \
|
DEFINE_EVENT(zfs_zil_process_itx_class, name, \
|
||||||
|
|
Loading…
Reference in New Issue