From c7d8aecfe9675b04ae5acaa84539baec46dd3d2a Mon Sep 17 00:00:00 2001 From: Vladimir Kobal Date: Fri, 3 Apr 2020 13:30:41 +0300 Subject: Fix compiler warnings in the claiming code (#8567) --- claim/claim.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'claim') diff --git a/claim/claim.c b/claim/claim.c index 6e14cea658..f3b7ff07e8 100644 --- a/claim/claim.c +++ b/claim/claim.c @@ -25,7 +25,6 @@ static char *claiming_errors[] = { "Service Unavailable" // 15 }; - static char *claimed_id = NULL; char *is_agent_claimed(void) @@ -107,6 +106,9 @@ void claim_agent(char *claiming_arguments) } error("Agent failed to be claimed with the following error message:"); error("\"%s\"", claiming_errors[exit_code]); +#else + UNUSED(claiming_arguments); + UNUSED(claiming_errors); #endif } -- cgit v1.2.3