mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
Enable compiler to typecheck logging
Annotate spa logging declarations with printflike Workaround gcc bug (non disable-able warning) by replacing "" with " " Reviewed-by: Matt Ahrens <matt@delphix.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Matt Macy <mmacy@FreeBSD.org> Closes #9316
This commit is contained in:
committed by
Brian Behlendorf
parent
d66620681d
commit
74756182d2
@@ -29,4 +29,8 @@
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#ifndef __printflike
|
||||
#define __printflike(x, y) __attribute__((__format__(__printf__, x, y)))
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user