diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2011-08-15 20:18:04 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2011-08-15 20:18:04 +0400 |
commit | ae884d2e54210a8a1038c23cb7bdeaac16fdf2fb (patch) | |
tree | 7eae9ebf6103a46fb9e9cb2ae07aa8a006f7d8ef /source/blender/blenlib | |
parent | 27b3695c4f183629443397b643a0bc13d62f6f35 (diff) |
Code cleanup: add UNUSED_FUNCTION macro to avoid warning messages about unused
functions.
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/BLI_utildefines.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_utildefines.h b/source/blender/blenlib/BLI_utildefines.h index 9af55601ff7..28ebb254f2a 100644 --- a/source/blender/blenlib/BLI_utildefines.h +++ b/source/blender/blenlib/BLI_utildefines.h @@ -184,6 +184,12 @@ #endif #ifdef __GNUC__ +# define UNUSED_FUNCTION(x) __attribute__((__unused__)) UNUSED_ ## x +#else +# define UNUSED_FUNCTION(x) UNUSED_ ## x +#endif + +#ifdef __GNUC__ # define WARN_UNUSED __attribute__((warn_unused_result)) #else # define WARN_UNUSED |