Fix new gcc 4.8 warning:
authorJörg Mayer <jmayer@loplof.de>
Sun, 21 Apr 2013 08:11:28 +0000 (08:11 -0000)
committerJörg Mayer <jmayer@loplof.de>
Sun, 21 Apr 2013 08:11:28 +0000 (08:11 -0000)
[  6%] Building C object epan/CMakeFiles/epan.dir/dissectors/packet-pw-fr.c.o
/home/jmayer/work/wireshark/svn/trunk/epan/dissectors/packet-pw-fr.c: In function ‘dissect_pw_fr’:
/home/jmayer/work/wireshark/svn/trunk/epan/dissectors/packet-pw-fr.c:81:4: error: typedef ‘packet_quality_e’ locally defined but not used [-Werror=unused-local-typedefs]
  } packet_quality_e;
    ^

svn path=/trunk/; revision=48948

epan/dissectors/packet-pw-fr.c

index f8c95ea89c3a07e366b283581719155aecffd759..9bbbe50de61585dc1b5a513b106bec23cf33ca26 100644 (file)
@@ -71,14 +71,14 @@ dissect_pw_fr( tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree )
        gint payload_size;
        gint payload_padding;
        const int encaps_size = 4; /*encapsulation consists of mandatory CW only*/
-       typedef enum {
+       enum {
                PQ_CW_BAD                      = 0x001
-               ,PQ_CW_BAD_BITS03              = 0x002
+               ,PQ_CW_BAD_BITS03              = 0x002
                ,PQ_CW_BAD_LEN_GT_PACKET       = 0x004
                ,PQ_CW_BAD_LEN_MUST_BE_ZERO    = 0x008
                ,PQ_CW_BAD_LEN_MUST_BE_NONZERO = 0x010
                ,PQ_PAYLOAD_SIZE_ZERO          = 0x020
-       } packet_quality_e;
+       };
        int packet_quality;
 
        packet_size = tvb_reported_length_remaining(tvb, 0);