Compiler Warnings: disallow 'long' in DNA, its not reliably 64bit (gcc only)

This commit is contained in:
Campbell Barton 2013-12-04 13:51:41 +11:00
parent a9b97dcf22
commit 6a35b2d72a
1 changed files with 8 additions and 0 deletions

View File

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