diff options
author | 2019-12-10 20:42:15 -0800 | |
---|---|---|
committer | 2020-04-12 16:05:01 -0700 | |
commit | e29aef80350b5ee4bf989443acf553f5f295df4c (patch) | |
tree | 6db009f260e563a1c10ab79e89b32739a5f0a1dc /src/common.h | |
parent | fc456a2fa763165453a6a46bbcd030d348b0820b (diff) | |
download | idevicerestore-e29aef80350b5ee4bf989443acf553f5f295df4c.tar.gz idevicerestore-e29aef80350b5ee4bf989443acf553f5f295df4c.tar.bz2 |
Fix format compiler warnings
This also allows the compiler to check these at compile time.
Diffstat (limited to 'src/common.h')
-rw-r--r-- | src/common.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h index d943568..af46737 100644 --- a/src/common.h +++ b/src/common.h @@ -118,8 +118,11 @@ extern struct idevicerestore_mode_t idevicerestore_modes[]; extern int idevicerestore_debug; +__attribute__((format(printf, 1, 2))) void info(const char* format, ...); +__attribute__((format(printf, 1, 2))) void error(const char* format, ...); +__attribute__((format(printf, 1, 2))) void debug(const char* format, ...); void debug_plist(plist_t plist); |