cmocka: Add printf attribute checking for vcm_print_error()
authorAndreas Schneider <asn@cryptomilk.org>
Tue, 10 Feb 2015 07:11:30 +0000 (08:11 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 10 Feb 2015 14:49:30 +0000 (15:49 +0100)
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
src/cmocka.c

index 9e52015..885cf33 100644 (file)
@@ -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
  */