Since I've started using gcc-4.1.1 I get a couple of warnings like:
code/server/sv_client.c:713: warning: format '%d' expects type 'int', but argument 2 has type 'long int'
code/server/sv_client.c:717: warning: format '%d' expects type 'int', but argument 2 has type 'long int'
code/server/sv_client.c:717: warning: format '%d' expects type 'int', but argument 2 has type 'long int'
from my compiler. If the size of an argument given in the format string doesn't match the actual size this could turn out ugly when subsequent arguments are pointers to strings.
Created attachment 1241[details]
Fix various with format strings and arguments
This patch fixes all of these warnings. In many cases, these were justified and would lead to false output or even to a crash.
Setting a QA contact on all ioquake3 bugs, even resolved ones. Sorry if you get a flood of email from this, it should only happen once. Apologies for the incovenience.
--ryan.
Created attachment 1241 [details] Fix various with format strings and arguments This patch fixes all of these warnings. In many cases, these were justified and would lead to false output or even to a crash.
Created attachment 1242 [details] unfixed warning woops, still forgot one warning