Prever other types to int in warning.c

* src/warning.c (set_warning_option): Prefer bool for boolean.
This commit is contained in:
Paul Eggert
2024-11-01 23:26:53 -07:00
parent f4ac66226a
commit e531f8c66c

View File

@@ -90,7 +90,7 @@ int warning_option = WARN_ALL & ~(WARN_VERBOSE_WARNINGS|WARN_MISSING_ZERO_BLOCKS
void void
set_warning_option (const char *arg) set_warning_option (const char *arg)
{ {
int negate = 0; bool negate = false;
int option; int option;
if (strcmp (arg, "none") == 0) if (strcmp (arg, "none") == 0)
@@ -100,7 +100,7 @@ set_warning_option (const char *arg)
} }
if (strlen (arg) > 2 && memcmp (arg, "no-", 3) == 0) if (strlen (arg) > 2 && memcmp (arg, "no-", 3) == 0)
{ {
negate = 1; negate = true;
arg += 3; arg += 3;
} }