unused warning
[deb_libcec.git] / src / lib / platform / posix / serialport.cpp
index f067ac45a873f42203755de6bd95cb9787fa9ce4..1e0e364fc8eb2dd5a98738117bd44730b34c5f23 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This file is part of the libCEC(R) library.
  *
- * libCEC(R) is Copyright (C) 2011-2012 Pulse-Eight Limited.  All rights reserved.
+ * libCEC(R) is Copyright (C) 2011-2013 Pulse-Eight Limited.  All rights reserved.
  * libCEC(R) is an original work, containing original code.
  *
  * libCEC(R) is a trademark of Pulse-Eight Limited.
@@ -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
 }