URL:
  <http://gna.org/bugs/?16053>

                 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
                 Release: 
         Discussion Lock: Any
        Operating System: None
         Planned Release: 

    _______________________________________________________

Details:

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
‘Output_type_id’





    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?16053>

_______________________________________________
  Meddelandet skickades via/av Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to