From: Wayne Davison Date: Sun, 10 Oct 2021 17:04:54 +0000 (-0700) Subject: Avoid spurious warning about "code" var not being initialized. X-Git-Tag: v3.2.4pre1~41 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=11a9b623226ef2324985958c3416d2bae5a3b7f3;p=thirdparty%2Frsync.git Avoid spurious warning about "code" var not being initialized. --- 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;