use gcc attrubutes to warn on unused return values and arguments which shouldnt be...
[blender.git] / intern / guardedalloc / intern / mallocn.c
index c00e94666747e75abb1d0167fb4c1a0ca02df435..2c691fbc14af3e01a21e86bb00edb01f64187528 100644 (file)
@@ -163,6 +163,9 @@ static int malloc_debug_memset = 0;
 /* implementation                                                        */
 /* --------------------------------------------------------------------- */
 
+#ifdef __GNUC__
+__attribute__ ((format(printf, 1, 2)))
+#endif
 static void print_error(const char *str, ...)
 {
        char buf[512];