From e0cdd3399119823e2f1ec75161c1cf67829651bf Mon Sep 17 00:00:00 2001 From: Sharvil Nanavati Date: Thu, 17 Jul 2014 15:45:40 -0700 Subject: [PATCH] Fix build warning about unused argument. Change-Id: I3ae26dfc4ffd97d039386f55e3290a6cf36ae17d --- osi/test/alarm_test.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/osi/test/alarm_test.cpp b/osi/test/alarm_test.cpp index 438b3c75e..d08cf6d47 100644 --- a/osi/test/alarm_test.cpp +++ b/osi/test/alarm_test.cpp @@ -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); } -- 2.11.0