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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2011-08-15 20:18:04 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2011-08-15 20:18:04 +0400
commitae884d2e54210a8a1038c23cb7bdeaac16fdf2fb (patch)
tree7eae9ebf6103a46fb9e9cb2ae07aa8a006f7d8ef /source/blender/blenlib
parent27b3695c4f183629443397b643a0bc13d62f6f35 (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.h6
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