From 39a96e9e3fab5347497da004e71227c651e8604e Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 6 Oct 2012 00:42:30 +0000 Subject: disable padding warning for DNA, gave problems with struct bounds padding which DNA ignores. tag operator callbacks as needing their return values used. These are not directly called in many places so the inconvenience is minimal. --- source/blender/makesdna/intern/makesdna.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/blender/makesdna') diff --git a/source/blender/makesdna/intern/makesdna.c b/source/blender/makesdna/intern/makesdna.c index 88c5ea3e910..494cb875169 100644 --- a/source/blender/makesdna/intern/makesdna.c +++ b/source/blender/makesdna/intern/makesdna.c @@ -1186,6 +1186,9 @@ int main(int argc, char **argv) return(return_status); } +/* handy but fails on struct bounds which makesdna doesnt care about + * unless structs are nested */ +#if 0 /* include files for automatic dependencies */ /* extra safety check that we are aligned, @@ -1194,6 +1197,8 @@ int main(int argc, char **argv) # pragma GCC diagnostic error "-Wpadded" #endif +#endif /* if 0 */ + #include "DNA_listBase.h" #include "DNA_vec_types.h" #include "DNA_ID.h" -- cgit v1.2.3