From: Lars Op den Kamp Date: Mon, 12 Nov 2012 09:27:23 +0000 (+0100) Subject: silence 'unused' warning properly. closes #86 X-Git-Tag: upstream/2.2.0~1^2~12^2~34 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=77f6eecee242678bc0cc0c3cabbe5f47fc99d3bd;p=deb_libcec.git silence 'unused' warning properly. closes #86 --- diff --git a/src/lib/adapter/Pulse-Eight/USBCECAdapterDetection.cpp b/src/lib/adapter/Pulse-Eight/USBCECAdapterDetection.cpp index da101e7..433a3d3 100644 --- a/src/lib/adapter/Pulse-Eight/USBCECAdapterDetection.cpp +++ b/src/lib/adapter/Pulse-Eight/USBCECAdapterDetection.cpp @@ -438,8 +438,8 @@ uint8_t CUSBCECAdapterDetection::FindAdapters(cec_adapter *deviceList, uint8_t i } #else //silence "unused" warnings - void *tmp = (void*)deviceList; - tmp = (void *)strDevicePath; + ((void)deviceList); + ((void) strDevicePath); #endif iBufSize = 0; if(!iBufSize){} /* silence "unused" warning on linux/osx */