projects
/
blender.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use gcc attrubutes to warn on unused return values and arguments which shouldnt be...
[blender.git]
/
intern
/
guardedalloc
/
intern
/
mallocn.c
diff --git
a/intern/guardedalloc/intern/mallocn.c
b/intern/guardedalloc/intern/mallocn.c
index c00e94666747e75abb1d0167fb4c1a0ca02df435..2c691fbc14af3e01a21e86bb00edb01f64187528 100644
(file)
--- a/
intern/guardedalloc/intern/mallocn.c
+++ b/
intern/guardedalloc/intern/mallocn.c
@@
-163,6
+163,9
@@
static int malloc_debug_memset = 0;
/* implementation */
/* --------------------------------------------------------------------- */
/* implementation */
/* --------------------------------------------------------------------- */
+#ifdef __GNUC__
+__attribute__ ((format(printf, 1, 2)))
+#endif
static void print_error(const char *str, ...)
{
char buf[512];
static void print_error(const char *str, ...)
{
char buf[512];