From 28a47f13d9c33c97279742d83687bff4d79922f4 Mon Sep 17 00:00:00 2001 From: nick black Date: Sat, 7 Jul 2012 11:40:45 -0400 Subject: use GCC format __attribute__ on sprinf --- libblkid/src/blkidP.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libblkid/src/blkidP.h b/libblkid/src/blkidP.h index 604de3ddb..bceda33b6 100644 --- a/libblkid/src/blkidP.h +++ b/libblkid/src/blkidP.h @@ -435,8 +435,10 @@ extern int blkid_probe_set_value(blkid_probe pr, const char *name, unsigned char *data, size_t len); extern int blkid_probe_vsprintf_value(blkid_probe pr, const char *name, const char *fmt, va_list ap); + ; extern int blkid_probe_sprintf_value(blkid_probe pr, const char *name, - const char *fmt, ...); + const char *fmt, ...) __attribute__ ((format (printf,3,4))); + extern int blkid_probe_set_magic(blkid_probe pr, blkid_loff_t offset, size_t len, unsigned char *magic); -- cgit v1.2.3-55-g7522