summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libopkg/opkg_message.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libopkg/opkg_message.h b/libopkg/opkg_message.h
index 62a6b83..4fa2a0b 100644
--- a/libopkg/opkg_message.h
+++ b/libopkg/opkg_message.h
@@ -30,7 +30,8 @@ typedef enum {
void free_error_list(void);
void print_error_list(void);
-void opkg_message(message_level_t level, const char *fmt, ...);
+void opkg_message(message_level_t level, const char *fmt, ...)
+ __attribute__ ((format (printf, 2, 3)));
#define opkg_msg(l, fmt, args...) \
do { \