diff options
author | Daniel Lezcano <daniel.lezcano@linaro.org> | 2021-06-09 11:24:14 +0000 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2021-06-09 11:24:14 +0000 |
commit | 69252274369c5ddad5de0c4a1f1e6bd2f7cbeac7 (patch) | |
tree | 68e88bb7315460672188074cc5b2a86bc5b03cc5 | |
parent | 3a76be69aea97d1195808cc7a90d583d84921e24 (diff) |
Remove the may be unused macro
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
-rw-r--r-- | src/Makefile | 2 | ||||
-rw-r--r-- | src/commands.c | 2 | ||||
-rw-r--r-- | src/thermal.h | 2 |
3 files changed, 2 insertions, 4 deletions
diff --git a/src/Makefile b/src/Makefile index 4870800..eb9db6a 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,6 +1,6 @@ # SPDX-License-Identifier: LGPL-2.1+ CC=gcc -CFLAGS+=-g -Wall -I/usr/include/libnl3 -I../include -fPIC -Wextra -O2 +CFLAGS+=-g -Wall -Wno-unused -I/usr/include/libnl3 -I../include -fPIC -Wextra -O2 LDFLAGS=-lnl-genl-3 -lnl-3 -shared DEPS = include/libthermal.h OBJS = thermal.o events.o sampling.o commands.o netlink.o diff --git a/src/commands.c b/src/commands.c index 1a930d7..d1d1e64 100644 --- a/src/commands.c +++ b/src/commands.c @@ -194,7 +194,7 @@ int parse_tz_get_gov(struct genl_info *info, struct thermal_zone *tz) return 0; } -static int handle_netlink(__maybe_unused struct nl_cache_ops *unused, +static int handle_netlink(struct nl_cache_ops *unused, struct genl_cmd *cmd, struct genl_info *info, void *arg) { diff --git a/src/thermal.h b/src/thermal.h index 798a8cc..85814a1 100644 --- a/src/thermal.h +++ b/src/thermal.h @@ -9,8 +9,6 @@ #include "libthermal.h" -#define __maybe_unused __attribute__((__unused__)) - struct thermal_handler { int done; int error; |