From: Vincent Bernat Date: Fri, 29 Apr 2011 16:59:59 +0000 (+0200) Subject: Suppress a new warning from GCC 4.5 (unused value). X-Git-Tag: 0.5.4~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f226ec5da741c4a933657c60a0cf9c867fdb7842;p=thirdparty%2Flldpd.git Suppress a new warning from GCC 4.5 (unused value). --- diff --git a/src/frame.h b/src/frame.h index 7bde0638..497f6502 100644 --- a/src/frame.h +++ b/src/frame.h @@ -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) \ )