diff options
author | Werner Koch <[email protected]> | 2018-12-05 16:16:05 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2018-12-05 17:29:55 +0000 |
commit | 793838fd859afd837df070ee2e75c100e932b220 (patch) | |
tree | 7896e39a156ca5051bc1001434e1e2c4a82d6c9d | |
parent | Fix gpgrt_ftruncate declaration. (diff) | |
download | libgpg-error-793838fd859afd837df070ee2e75c100e932b220.tar.gz libgpg-error-793838fd859afd837df070ee2e75c100e932b220.zip |
tests: Check print arguments of t-common functions.
* tests/t-common.h: Include gpgrt.h instead of gpg-error.h.
(die, fail, show): Add printf attributes.
Signed-off-by: Werner Koch <[email protected]>
-rw-r--r-- | tests/t-common.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/t-common.h b/tests/t-common.h index e11bca9..e70e04d 100644 --- a/tests/t-common.h +++ b/tests/t-common.h @@ -19,7 +19,7 @@ #include <stdarg.h> -#include "../src/gpg-error.h" +#include "../src/gpgrt.h" #ifndef PGM # error Macro PGM not defined. @@ -34,6 +34,11 @@ static int debug; static int errorcount; +static void die (const char *format, ...) GPGRT_ATTR_NR_PRINTF(1,2); +static void fail (const char *format, ...) GPGRT_ATTR_PRINTF(1,2); +static void show (const char *format, ...) GPGRT_ATTR_PRINTF(1,2); + + static void die (const char *format, ...) { |