Summary: Warning in common/city.c: O_LAST is not of type
enum output_type_id
                 Project: Freeciv
            Submitted by: englabenny
            Submitted on: onsdag 2010-05-19 den 20:33
                Category: general
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
        Operating System: None
         Planned Release: 



This warning causes compiler failure when compiling trunk with --enable-debug
/ -Werror

The problem is that the value O_LAST is not defined as part of enum
output_type_id. This is a general problem that we need to solve in specenum:
discriminating valid defined values, invalid(?) defined values (*_LAST) and
all other invalid values.

make[2]: Entering directory `/home/ulrik/pt/src/freeciv/freeciv.git/common'
  CC     city.lo
cc1: warnings being treated as errors
city.c: In function ‘city_tile_output’:
city.c:1196: error: case value ‘6’ not in enumerated type


Reply to this item at:


  Meddelandet skickades via/av Gna!

Freeciv-dev mailing list

Reply via email to