From 11a9b623226ef2324985958c3416d2bae5a3b7f3 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Sun, 10 Oct 2021 10:04:54 -0700 Subject: [PATCH] Avoid spurious warning about "code" var not being initialized. --- syscall.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syscall.c b/syscall.c index 58a8e815..80a9a2f6 100644 --- a/syscall.c +++ b/syscall.c @@ -237,7 +237,7 @@ int do_chmod(const char *path, mode_t mode) RETURN_ERROR_IF_RO_OR_LO; switch (switch_step) { #ifdef HAVE_LCHMOD -#include "case_N.h" + case 0: if ((code = lchmod(path, mode & CHMOD_BITS)) == 0) break; if (errno == ENOSYS) @@ -246,7 +246,7 @@ int do_chmod(const char *path, mode_t mode) break; #endif -#include "case_N.h" + default: if (S_ISLNK(mode)) { # if defined HAVE_SETATTRLIST struct attrlist attrList; -- 2.47.2