From 6e47ffcc0d076596429b49cb283757b1952f7b86 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 12 Feb 2011 10:37:37 +0000 Subject: fix for uninitialized value in BLI_path_cwd() if PWD wasn't defined and the CWD was longer then 160. --- intern/guardedalloc/MEM_guardedalloc.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'intern/guardedalloc') 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 -- cgit v1.2.3