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:
authorCampbell Barton <ideasman42@gmail.com>2013-12-04 06:51:41 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-12-04 06:51:41 +0400
commit6a35b2d72ad37ff51f59485b138b37a28c47eaa9 (patch)
treebc0e0cf341809214ad3266c6b35d2f8142f0cb93 /source/blender/makesdna/intern/makesdna.c
parenta9b97dcf22be451ec5b8229d799a2f74f705be18 (diff)
Compiler Warnings: disallow 'long' in DNA, its not reliably 64bit (gcc only)
Diffstat (limited to 'source/blender/makesdna/intern/makesdna.c')
-rw-r--r--source/blender/makesdna/intern/makesdna.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/makesdna/intern/makesdna.c b/source/blender/makesdna/intern/makesdna.c
index 2665da1b435..aac79245501 100644
--- a/source/blender/makesdna/intern/makesdna.c
+++ b/source/blender/makesdna/intern/makesdna.c
@@ -1209,6 +1209,14 @@ int main(int argc, char **argv)
#endif /* if 0 */
+/* even though DNA supports, 'long' shouldn't be used since it can be either 32 or 64bit,
+ * use int or int64_t instead.
+ * Only valid use would be as a runtime variable if an API expected a long,
+ * but so far we dont have this happening. */
+#ifdef __GNUC__
+# pragma GCC poison long
+#endif
+
#include "DNA_listBase.h"
#include "DNA_vec_types.h"
#include "DNA_ID.h"