use GCC's -Wpadded on DNA files, gives more useful warnings then makesdna.

This commit is contained in:
Campbell Barton
2012-10-04 09:20:58 +00:00
parent f609d0f22e
commit e2bf6eacb3
2 changed files with 8 additions and 1 deletions

View File

@@ -74,7 +74,7 @@ typedef struct Path {
typedef struct BevList {
struct BevList *next, *prev;
int nr, dupe_nr;
short poly, hole;
int poly, hole;
} BevList;
/* These two Lines with # tell makesdna this struct can be excluded. */

View File

@@ -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"