From 793838fd859afd837df070ee2e75c100e932b220 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 5 Dec 2018 17:16:05 +0100 Subject: 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 --- tests/t-common.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -#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, ...) { -- cgit v1.2.3