diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2015-02-10 08:11:30 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2015-02-10 15:49:30 +0100 |
commit | b470f1d71459f12b1c0440f6c69f33a1f27a2db6 (patch) | |
tree | e21e45184f9c334f5af4026a3528e352b6bcfb3e | |
parent | 62b876a0b5da8c452780fd7c3b9c1d95cede3a81 (diff) | |
download | cmocka-b470f1d71459f12b1c0440f6c69f33a1f27a2db6.zip cmocka-b470f1d71459f12b1c0440f6c69f33a1f27a2db6.tar.gz cmocka-b470f1d71459f12b1c0440f6c69f33a1f27a2db6.tar.bz2 |
cmocka: Add printf attribute checking for vcm_print_error()
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r-- | src/cmocka.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 */ |