From 45df97b4a01aaf7fd6e2df17126bd53e59e0099a Mon Sep 17 00:00:00 2001 From: Adrian Salido Date: Wed, 29 Mar 2017 15:58:38 -0700 Subject: power: Fix power hal compiler warnings Bug: 30432975 Test: compile power hal for walleye without warnings Change-Id: I0d90c26462c662690f8a179250000b9a449a109f --- power-common.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'power-common.h') diff --git a/power-common.h b/power-common.h index 697302a..f586f09 100644 --- a/power-common.h +++ b/power-common.h @@ -62,6 +62,8 @@ void power_init(void); void power_hint(power_hint_t hint, void *data); void set_interactive(int on); +#define UNUSED(x) UNUSED_ ## x __attribute__((__unused__)) + #ifdef __cplusplus } #endif -- cgit v1.2.3