Complete.Org: Mailing Lists: Archives: freeciv-dev: July 2002:
[Freeciv-Dev] 64 bit platform - compile warning (PR#1825)
Home

[Freeciv-Dev] 64 bit platform - compile warning (PR#1825)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Cc: bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] 64 bit platform - compile warning (PR#1825)
From: nightmare@xxxxxxxxxx
Date: Thu, 25 Jul 2002 08:45:35 -0700 (PDT)

Full_Name: Davide Pagnin
Version: 1.13.0
Distribution: Don't know
Client: Both (or N/A)
OS: Tru64 Unix
Submission from: (NULL) (193.205.82.100)


This is a known issue, that by time to time is reintroduced in the code,
at the moment there are no solution to this, so it is only a work that
has to be done after intruction of not 64 bit compliant code.

This time:
savegame.c:313: warning: int format, different type arg (arg 4)

<snip>

savegame.c:1130: warning: int format, different type arg (arg 4)

The problem is the server/savegame.c code, in particular at line 134:

            "(expected %d got %d"), map.xsize, strlen(line));           \

The correction that has to be made, as is possible to see in other
part of the same file is:

            "(expected %d got %lu"), map.xsize,                         \
            (unsigned long) strlen(line));                              \

(It is not a beautiful fix, but it is the one that has been chosen)

A patch will follow this bug entry.



[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] 64 bit platform - compile warning (PR#1825), nightmare <=