From 8bb9de45d72bc25009a868167a45e4d1780e534c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net> Date: Sat, 1 Mar 2025 20:12:29 -0500 Subject: [PATCH] Stop counting dupes for no reason. While dupes were counted, nothing was done with the count, so just delete it. Fixes Clang warning. --- src/sbbs3/scfg/scfgxfr2.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/sbbs3/scfg/scfgxfr2.c b/src/sbbs3/scfg/scfgxfr2.c index 41c2ce3f36..0880c7e868 100644 --- a/src/sbbs3/scfg/scfgxfr2.c +++ b/src/sbbs3/scfg/scfgxfr2.c @@ -1074,7 +1074,6 @@ void xfer_cfg() if (getdircase(path)) SAFECOPY(tmpdir.path, path + strlen(cfg.lib[libnum]->parent_path) + 1); - int dupes = 0; int attempts = 0; // attempts to generate a unique internal code if (stricmp(tmpdir.code_suffix, duplicate_code) == 0) attempts = ++duplicate_codes; @@ -1130,7 +1129,6 @@ void xfer_cfg() } else { SAFEPRINTF(str, "Duplicate dir: %s", cfg.dir[j]->code_suffix); uifc.msg(str); - dupes++; } if (k == 2) { SAFECOPY(cfg.dir[j]->code_suffix, tmpdir.code_suffix); -- GitLab