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 --- plugins-root/check_dhcp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugins-root/check_dhcp.c b/plugins-root/check_dhcp.c index 5ba9372e..6b07df51 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 v1.2.3-74-g34f1