From: Andreas Schneider Date: Tue, 10 Feb 2015 07:11:30 +0000 (+0100) Subject: cmocka: Add printf attribute checking for vcm_print_error() X-Git-Tag: cmocka-1.1.1~90 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b470f1d71459f12b1c0440f6c69f33a1f27a2db6;p=platform%2Fupstream%2Fcmocka.git cmocka: Add printf attribute checking for vcm_print_error() Signed-off-by: Andreas Schneider --- diff --git a/src/cmocka.c b/src/cmocka.c index 9e52015..885cf33 100644 --- a/src/cmocka.c +++ b/src/cmocka.c @@ -1546,6 +1546,9 @@ static void *libc_realloc(void *ptr, size_t size) #define realloc test_realloc } +static void vcm_print_error(const char* const format, + va_list args) CMOCKA_PRINTF_ATTRIBUTE(1, 0); + /* It's important to use the libc malloc and free here otherwise * the automatic free of leaked blocks can reap the error messages */