unused warning
authorLars Op den Kamp <lars@opdenkamp.eu>
Mon, 18 Mar 2013 15:16:46 +0000 (16:16 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Mon, 18 Mar 2013 15:20:41 +0000 (16:20 +0100)
src/lib/platform/posix/serialport.cpp

index 7eb695dc59429327c68268dc82c0148cf223a7ac..1e0e364fc8eb2dd5a98738117bd44730b34c5f23 100644 (file)
@@ -61,8 +61,7 @@ inline bool RemoveLock(const char *strDeviceName)
   #if !defined(__APPLE__) && !defined(__FreeBSD__) && defined(HAVE_LOCKDEV)
   return dev_unlock(strDeviceName, 0) == 0;
   #else
-  void *tmp = (void*)strDeviceName; // silence unused warning
-  tmp = NULL;
+  (void)strDeviceName; // silence unused warning
   return true;
   #endif
 }