Fix Clang style nits (GH-17685)

This addresses all `-Wlogical-op-parentheses` and `-Wmissing-braces`
warnings across the whole code base (all Windows specific code).
This commit is contained in:
Christoph M. Becker 2025-02-05 14:13:56 +01:00 committed by GitHub
parent dc7161cffe
commit 107bd080a5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 12 additions and 13 deletions

View file

@ -840,9 +840,9 @@ static int do_cli(int argc, char **argv) /* {{{ */
is essential to mitigate buggy console info. */
interactive = php_win32_console_is_own() &&
!(script_file ||
argc > php_optind && context.mode != PHP_CLI_MODE_CLI_DIRECT &&
(argc > php_optind && context.mode != PHP_CLI_MODE_CLI_DIRECT &&
context.mode != PHP_CLI_MODE_PROCESS_STDIN &&
strcmp(argv[php_optind-1],"--")
strcmp(argv[php_optind-1],"--"))
);
}
#endif