From: Lars Op den Kamp Date: Mon, 18 Mar 2013 15:16:46 +0000 (+0100) Subject: unused warning X-Git-Tag: upstream/2.2.0~1^2~4^2~14 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=58691fb86d4dd7daac8b283a1bf1f125f00847a5;p=deb_libcec.git unused warning --- diff --git a/src/lib/platform/posix/serialport.cpp b/src/lib/platform/posix/serialport.cpp index 7eb695d..1e0e364 100644 --- a/src/lib/platform/posix/serialport.cpp +++ b/src/lib/platform/posix/serialport.cpp @@ -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 }