Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-02-12 13:37:37 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-02-12 13:37:37 +0300
commit6e47ffcc0d076596429b49cb283757b1952f7b86 (patch)
tree872af5ab61a270cc32e4696dc678cad7e514d34c /intern/guardedalloc
parent9e9e028f059f29d493dc020dda965a9bea8ffd6b (diff)
fix for uninitialized value in BLI_path_cwd() if PWD wasn't defined and the CWD was longer then 160.
Diffstat (limited to 'intern/guardedalloc')
-rw-r--r--intern/guardedalloc/MEM_guardedalloc.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/intern/guardedalloc/MEM_guardedalloc.h b/intern/guardedalloc/MEM_guardedalloc.h
index d712a6ac2d9..2276c5ef0e6 100644
--- a/intern/guardedalloc/MEM_guardedalloc.h
+++ b/intern/guardedalloc/MEM_guardedalloc.h
@@ -59,13 +59,14 @@
#include "stdio.h" /* needed for FILE* */
#include "BLO_sys_types.h" /* needed for uintptr_t */
-#ifdef __GNUC__
-# define WARN_UNUSED __attribute__((warn_unused_result))
-#else
-# define WARN_UNUSED
+#ifndef WARN_UNUSED
+# ifdef __GNUC__
+# define WARN_UNUSED __attribute__((warn_unused_result))
+# else
+# define WARN_UNUSED
+# endif
#endif
-
#ifdef __cplusplus
extern "C" {
#endif