Compiler Warnings: disallow 'long' in DNA, its not reliably 64bit (gcc only)
This commit is contained in:
parent
a9b97dcf22
commit
6a35b2d72a
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue