From 79e2f520942451a3651dbcfebd4672a02c52dcbf Mon Sep 17 00:00:00 2001 From: RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> Date: Mon, 16 Oct 2023 00:59:30 +0200 Subject: Fix for -Wunused-but-set-variable diff --git a/plugins-root/check_dhcp.c b/plugins-root/check_dhcp.c index 5ba9372..6b07df5 100644 --- a/plugins-root/check_dhcp.c +++ b/plugins-root/check_dhcp.c @@ -1064,12 +1064,10 @@ int get_results(void){ /* process command-line arguments */ int process_arguments(int argc, char **argv){ - int arg_index; - if(argc<1) return ERROR; - arg_index = call_getopt(argc,argv); + call_getopt(argc,argv); return validate_arguments(argc); } -- cgit v0.10-9-g596f