From e531f8c66cf77e5e53204c868fb1c19443a6bb22 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 1 Nov 2024 23:26:53 -0700 Subject: [PATCH] Prever other types to int in warning.c * src/warning.c (set_warning_option): Prefer bool for boolean. --- src/warning.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.47.2