diff options
author | Allan McRae <allan@archlinux.org> | 2013-02-10 07:47:39 +0100 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2013-02-13 02:50:33 +0100 |
commit | 3fa2830829de2e3aa4bb916f164ae2fd75542ef3 (patch) | |
tree | f3bc49fdda7a506314e3fadac7bab37328e31dc8 /src/util/testdb.c | |
parent | 05b0d7e799416b48bb8b40ea199896e2b988698c (diff) | |
download | pacman-3fa2830829de2e3aa4bb916f164ae2fd75542ef3.tar.gz pacman-3fa2830829de2e3aa4bb916f164ae2fd75542ef3.tar.xz |
Add format attributes to all required functions
Fixes all clang warnings with -Wformat-literal.
Also, fix genuine formating issue discovered once adding these attributes
and add a cast to prevent a gcc warning.
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'src/util/testdb.c')
-rw-r--r-- | src/util/testdb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/testdb.c b/src/util/testdb.c index 2017b60f..7b08cb0d 100644 --- a/src/util/testdb.c +++ b/src/util/testdb.c @@ -40,6 +40,7 @@ static void cleanup(int signum) exit(signum); } +__attribute__((format(printf, 2, 0))) static void output_cb(alpm_loglevel_t level, const char *fmt, va_list args) { if(strlen(fmt)) { |