silence 'unused' warning properly. closes #86
authorLars Op den Kamp <lars@opdenkamp.eu>
Mon, 12 Nov 2012 09:27:23 +0000 (10:27 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Mon, 12 Nov 2012 09:27:23 +0000 (10:27 +0100)
src/lib/adapter/Pulse-Eight/USBCECAdapterDetection.cpp

index da101e702a60e1d86c77c3b3319fdea141114f84..433a3d325df954e29fdf698e998cd451f2f0b68c 100644 (file)
@@ -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 */