Summary: packets.c:send_packet_data(): warning: variable
'packet_type' set but not used [-Wunused-but-set-variable]
                 Project: Freeciv
            Submitted by: jtn
            Submitted on: Sat Apr 20 10:58:51 2013
                Category: None
                Severity: 2 - Minor
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
                 Release: S2_4 r22731
         Discussion Lock: Any
        Operating System: GNU/Linux
         Planned Release: 2.4.0,2.5.0



Noticed scrolling by while making a test S2_4 release build:

  CC     packets.lo
packets.c: In function 'send_packet_data':
packets.c:205:9: warning: variable 'packet_type' set but not used

Since this wasn't an --enable-debug=yes build (no -Werror), this warning
didn't stop the build. In fact it looks like this will only show up when
debugging is off, because the variable is only used if DEBUG is defined, so
it'll never break the build. Should still clean it up though.


Reply to this item at:


  Message sent via/by Gna!

Freeciv-dev mailing list

Reply via email to