OSDN Git Service

Fix build warning about unused argument.
authorSharvil Nanavati <sharvil@google.com>
Thu, 17 Jul 2014 22:45:40 +0000 (15:45 -0700)
committerSharvil Nanavati <sharvil@google.com>
Thu, 17 Jul 2014 22:48:06 +0000 (15:48 -0700)
Change-Id: I3ae26dfc4ffd97d039386f55e3290a6cf36ae17d

osi/test/alarm_test.cpp

index 438b3c7..d08cf6d 100644 (file)
@@ -4,6 +4,7 @@
 
 extern "C" {
 #include "alarm.h"
+#include "osi.h"
 #include "semaphore.h"
 }
 
@@ -48,7 +49,7 @@ class AlarmTest : public ::testing::Test {
     }
 };
 
-static void cb(void *data) {
+static void cb(UNUSED_ATTR void *data) {
   ++cb_counter;
   semaphore_post(semaphore);
 }