[quake3-bugzilla] [Bug 4840] New: Warning when compiling on 64-bit (patch to fix included)

bugzilla-daemon at icculus.org bugzilla-daemon at icculus.org
Thu Dec 16 10:44:21 EST 2010


http://bugzilla.icculus.org/show_bug.cgi?id=4840

           Summary: Warning when compiling on 64-bit (patch to fix
                    included)
           Product: ioquake3
           Version: SVN HEAD
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: trivial
          Priority: P3
         Component: Platform
        AssignedTo: zakk at icculus.org
        ReportedBy: jackmcbarn+icc at gmail.com
         QAContact: quake3-bugzilla at icculus.org


Created an attachment (id=2531)
 --> (http://bugzilla.icculus.org/attachment.cgi?id=2531)
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.

-- 
Configure bugmail: http://bugzilla.icculus.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the quake3-bugzilla mailing list