Eina lock: unused warning suppression is done with (void).
authortasn <tasn>
Mon, 2 May 2011 18:19:41 +0000 (18:19 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 2 May 2011 18:19:41 +0000 (18:19 +0000)
Not only that it's uglier doing mutex=0, but also new gcc started
complainig about it.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@59137 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/include/eina_inline_lock_posix.x

index 65ccd0a..397e1f2 100644 (file)
@@ -223,7 +223,7 @@ eina_lock_debug(Eina_Lock *mutex)
           mutex, (int)mutex->locked, (int)mutex->lock_thread_id);
    backtrace_symbols_fd((void **)mutex->lock_bt, mutex->lock_bt_num, 1);
 #else
-   mutex = 0;
+   (void) mutex;
 #endif
 }