fixed unused var warning
authorLars Op den Kamp <lars@opdenkamp.eu>
Mon, 25 Jun 2012 09:18:58 +0000 (11:18 +0200)
committerLars Op den Kamp <lars@opdenkamp.eu>
Mon, 25 Jun 2012 09:18:58 +0000 (11:18 +0200)
include/cectypes.h
src/lib/platform/os.h
src/lib/platform/threads/mutex.h

index df59193f594aeb3de04777afd6705132d5e7c876..c5da11f1c8883c4adb2c9a7cdbaa155ac550ea01 100644 (file)
@@ -1348,15 +1348,6 @@ typedef struct libcec_configuration
 #endif
 } libcec_configuration;
 
-#ifdef UNUSED
-#elif defined(__GNUC__)
-#define UNUSED(x) UNUSED_ ## x __attribute__((unused))
-#elif defined(__LCLINT__)
-#define UNUSED(x) /*@unused@*/ x
-#else
-#define UNUSED(x) x
-#endif
-
 #ifdef __cplusplus
 };
 };
index 4913d7b066244848fdabad850d58b0e8bd26dd38..60e02d6bf4b29466a111f5a6ad8b7decc4a488af 100644 (file)
  *     http://www.pulse-eight.net/
  */
 
+
+#ifdef UNUSED
+#elif defined(__GNUC__)
+#define UNUSED(x) UNUSED_ ## x __attribute__((unused))
+#elif defined(__LCLINT__)
+#define UNUSED(x) /*@unused@*/ x
+#else
+#define UNUSED(x) x
+#endif
+
 #if (defined(_WIN32) || defined(_WIN64))
 #include "windows/os-types.h"
 #else
index cf3521585112a2b873b4438e2dad699c107b2df8..6fc57d140bcdf183a0745fa7d52d3b54a23c00c0 100644 (file)
@@ -51,7 +51,7 @@ namespace PLATFORM
 
   private:
     inline PreventCopy(const PreventCopy &c) { *this = c; }
-    inline PreventCopy &operator=(const PreventCopy &c){ return *this; }
+    inline PreventCopy &operator=(const PreventCopy & UNUSED(c)){ return *this; }
   };
 
   template <typename _Predicate>