diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-02-12 13:37:37 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-02-12 13:37:37 +0300 |
commit | 6e47ffcc0d076596429b49cb283757b1952f7b86 (patch) | |
tree | 872af5ab61a270cc32e4696dc678cad7e514d34c /source/blender/blenlib/BLI_utildefines.h | |
parent | 9e9e028f059f29d493dc020dda965a9bea8ffd6b (diff) |
fix for uninitialized value in BLI_path_cwd() if PWD wasn't defined and the CWD was longer then 160.
Diffstat (limited to 'source/blender/blenlib/BLI_utildefines.h')
-rw-r--r-- | source/blender/blenlib/BLI_utildefines.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_utildefines.h b/source/blender/blenlib/BLI_utildefines.h index ccda9c17d43..140b424bf8f 100644 --- a/source/blender/blenlib/BLI_utildefines.h +++ b/source/blender/blenlib/BLI_utildefines.h @@ -169,6 +169,11 @@ # define UNUSED(x) UNUSED_ ## x #endif +#ifdef __GNUC__ +# define WARN_UNUSED __attribute__((warn_unused_result)) +#else +# define WARN_UNUSED +#endif /*little macro so inline keyword works*/ #if defined(_MSC_VER) |