diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-04-03 14:04:16 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-04-03 14:04:16 +0400 |
commit | 0298d223cc1156df3a32fbb3a97dccf5ddb5ad02 (patch) | |
tree | 437798c6e1ae0541bd7169072d2c5a5e276a40c7 /source/blender/blenlib | |
parent | 744a3b9cb26a734487264eec3e9e6dacb28daa73 (diff) |
quiet various warnings, also disable -Wdouble-promotion with cmake since it gives warnings with variable length args.
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/BLI_utildefines.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/BLI_utildefines.h b/source/blender/blenlib/BLI_utildefines.h index bee5c031fc9..a376d048412 100644 --- a/source/blender/blenlib/BLI_utildefines.h +++ b/source/blender/blenlib/BLI_utildefines.h @@ -206,7 +206,7 @@ # ifdef __GNUC__ /* just want to check if __func__ is available */ # define BLI_assert(a) \ do { \ - if (0 == (a)) { \ + if (!(a)) { \ fprintf(stderr, \ "BLI_assert failed: %s, %s(), %d at \'%s\'\n", \ __FILE__, __func__, __LINE__, STRINGIFY(a)); \ |