From: Paul Eggert Date: Sat, 2 Nov 2024 06:26:53 +0000 (-0700) Subject: Prever other types to int in warning.c X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e531f8c66cf77e5e53204c868fb1c19443a6bb22;p=thirdparty%2Ftar.git Prever other types to int in warning.c * src/warning.c (set_warning_option): Prefer bool for boolean. --- diff --git a/src/warning.c b/src/warning.c index 3423b293..0209e9da 100644 --- a/src/warning.c +++ b/src/warning.c @@ -90,7 +90,7 @@ int warning_option = WARN_ALL & ~(WARN_VERBOSE_WARNINGS|WARN_MISSING_ZERO_BLOCKS void set_warning_option (const char *arg) { - int negate = 0; + bool negate = false; int option; if (strcmp (arg, "none") == 0) @@ -100,7 +100,7 @@ set_warning_option (const char *arg) } if (strlen (arg) > 2 && memcmp (arg, "no-", 3) == 0) { - negate = 1; + negate = true; arg += 3; }