@cryptotaxi247 / netdata-1 / commits / c7d8aecfe

Fix compiler warnings in the claiming code (#8567)

Vladimir Kobal committed Apr 3, 2020 at 13:30 UTC c7d8aecfe9675b04ae5acaa84539baec46dd3d2a
1 file changed +3 -1
claim/claim.c
+3 -1
@@ -25,7 +25,6 @@ static char *claiming_errors[] = {
25 "Service Unavailable" // 15
26 };
27
28 -
28 static char *claimed_id = NULL;
29
30 char *is_agent_claimed(void)
@@ -107,6 +106,9 @@ void claim_agent(char *claiming_arguments)
106 }
107 error("Agent failed to be claimed with the following error message:");
108 error("\"%s\"", claiming_errors[exit_code]);
109 +#else
110 + UNUSED(claiming_arguments);
111 + UNUSED(claiming_errors);
112 #endif
113 }
114