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

                 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

    _______________________________________________________

Details:

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
[-Wunused-but-set-variable]


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:

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

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


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

Reply via email to