Created attachment 2531[details]
Patch to fix
When compiling 64-bit builds of ioquake3, the following warning is received:
code/tools/lcc/cpp/tokens.c: In function ‘peektokens’:
code/tools/lcc/cpp/tokens.c:270: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘long int’
Attached is a patch to fix this by using %td (the format specifier for an integer that is the difference between pointers) rather than %d.
Created attachment 2533[details]
Patch to fix
It was brought to my attention that my original patch did not work on MinGW. I have attached a new patch that does.
Yes, it's the only 64-bit-related warning. I just checked out a fresh copy of trunk and ran "make all", and no other warnings related to 64-bit are given.
Created attachment 2531 [details] Patch to fix When compiling 64-bit builds of ioquake3, the following warning is received: code/tools/lcc/cpp/tokens.c: In function ‘peektokens’: code/tools/lcc/cpp/tokens.c:270: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘long int’ Attached is a patch to fix this by using %td (the format specifier for an integer that is the difference between pointers) rather than %d.
Created attachment 2533 [details] Patch to fix It was brought to my attention that my original patch did not work on MinGW. I have attached a new patch that does.