diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-10-04 13:20:58 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-10-04 13:20:58 +0400 |
commit | e2bf6eacb37cbc1ac44ae04d0f4a704556930151 (patch) | |
tree | f284e5038925681f5b06c23a7b2cd13343b32734 /source/blender/makesdna/intern/makesdna.c | |
parent | f609d0f22e57c2ac0d0e0bc0dd04dbb862d72933 (diff) |
use GCC's -Wpadded on DNA files, gives more useful warnings then makesdna.
Diffstat (limited to 'source/blender/makesdna/intern/makesdna.c')
-rw-r--r-- | source/blender/makesdna/intern/makesdna.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/makesdna/intern/makesdna.c b/source/blender/makesdna/intern/makesdna.c index fec3aa22e92..88c5ea3e910 100644 --- a/source/blender/makesdna/intern/makesdna.c +++ b/source/blender/makesdna/intern/makesdna.c @@ -1187,6 +1187,13 @@ int main(int argc, char **argv) } /* include files for automatic dependencies */ + +/* extra safety check that we are aligned, + * warnings here are easier to fix the makesdna's */ +#ifdef __GNUC__ +# pragma GCC diagnostic error "-Wpadded" +#endif + #include "DNA_listBase.h" #include "DNA_vec_types.h" #include "DNA_ID.h" |