Add printf-style format checking
[openafs.git] / src / config / stds.h
index 300d833..1d70078 100644 (file)
@@ -333,8 +333,10 @@ hdr_static_inline(unsigned long) afs_printable_uint32_lu(afs_uint32 d) { return
 
 #if !defined(__GNUC__) || __GNUC__ < 2
 #define AFS_UNUSED
+#define AFS_ATTRIBUTE_FORMAT(style,x,y)
 #else
 #define AFS_UNUSED __attribute__((unused))
+#define AFS_ATTRIBUTE_FORMAT(style,x,y) __attribute__((format(style, x, y)))
 #endif
 
 #endif /* OPENAFS_CONFIG_AFS_STDS_H */