]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
Suppress a new warning from GCC 4.5 (unused value).
authorVincent Bernat <bernat@luffy.cx>
Fri, 29 Apr 2011 16:59:59 +0000 (18:59 +0200)
committerVincent Bernat <bernat@luffy.cx>
Fri, 29 Apr 2011 16:59:59 +0000 (18:59 +0200)
src/frame.h

index 7bde0638c18b52bd8041522fcc84cbde7b5bdbb4..497f65022e9ec7911ce3692656c1f2bd61648a62 100644 (file)
@@ -110,7 +110,7 @@ union {
 /* Same for CDP */
 #define POKE_START_CDP_TLV(type)  \
         (                         \
-        POKE_UINT16(type),        \
+        (void)POKE_UINT16(type),  \
         tlv = pos,                \
         POKE_UINT16(0)            \
        )
@@ -124,8 +124,8 @@ union {
 /* Same for EDP */
 #define POKE_START_EDP_TLV(type)          \
         (                                 \
-        POKE_UINT8(EDP_TLV_MARKER),       \
-        POKE_UINT8(type),                 \
+        (void)POKE_UINT8(EDP_TLV_MARKER), \
+        (void)POKE_UINT8(type),           \
         tlv = pos,                        \
         POKE_UINT16(0)                    \
        )