OSDN Git Service

Added attributes for printf-style functions.
authorresver <resver@60bc1c72-a15a-11de-b98f-4500b42dc123>
Sun, 20 Dec 2009 16:05:30 +0000 (16:05 +0000)
committerresver <resver@60bc1c72-a15a-11de-b98f-4500b42dc123>
Sun, 20 Dec 2009 16:05:30 +0000 (16:05 +0000)
git-svn-id: http://exfat.googlecode.com/svn/trunk@83 60bc1c72-a15a-11de-b98f-4500b42dc123

libexfat/exfat.h

index b9165af..e443cfd 100644 (file)
@@ -82,10 +82,14 @@ struct exfat_iterator
 
 extern int exfat_errors;
 
-void exfat_bug(const char* format, ...);
-void exfat_error(const char* format, ...);
-void exfat_warn(const char* format, ...);
-void exfat_debug(const char* format, ...);
+void exfat_bug(const char* format, ...)
+       __attribute__((format(printf, 1, 2), noreturn));
+void exfat_error(const char* format, ...)
+       __attribute__((format(printf, 1, 2)));
+void exfat_warn(const char* format, ...)
+       __attribute__((format(printf, 1, 2)));
+void exfat_debug(const char* format, ...)
+       __attribute__((format(printf, 1, 2)));
 
 void exfat_read_raw(void* buffer, size_t size, off_t offset, int fd);
 void exfat_write_raw(const void* buffer, size_t size, off_t offset, int fd);