From b5a74e9b5c49a641f21e164c6ffbba2ac3fba4bf Mon Sep 17 00:00:00 2001 From: Cat Brick Date: Thu, 12 Nov 2026 09:22:01 -0500 Subject: [PATCH] toke: fix compiling in GCC 16 Remove `argindx` in `get_args()` due to changes in GCC 16's changes to `-Wunused-but-set-variable`. --- toke/toke.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/toke/toke.c b/toke/toke.c index f7582f3..8449fba 100644 --- a/toke/toke.c +++ b/toke/toke.c @@ -229,7 +229,6 @@ static void get_args( int argc, char **argv ) { const char *optstring="vhilPo:d:f:I:T:?"; int c; - int argindx = 0; bool inval_opt = false; bool help_mssg = false; bool cl_flag_error = false; @@ -259,7 +258,6 @@ static void get_args( int argc, char **argv ) if (c == -1) break; - argindx++; switch (c) { case 'v': verbose=true;