mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Fix Windows build warnings (#131487)
Fix the following warnings: * Modules\_io\fileio.c(1296,13): unused variable 'self' * Modules\_io\winconsoleio.c(334,9): unused variable 'fd_is_own' * Modules\faulthandler.c(409,11): unused variable 'flags' * Modules\posixmodule.c(5699,9): unused variable 'pathError' * PC\winreg.c(2077,5): suggest braces around initialization of subobject * PC\winreg.c(34,13): unused variable 'errNotAHandle' * Python\fileutils.c(132,12): result of comparison of constant 1114111 with expression of type 'wchar_t' (aka 'unsigned short') is always false * Python\fileutils.c(58,21): unused variable 'INCOMPLETE_CHARACTER' * Python\sysmodule.c(2534,21): unused variable 'perf_map_state'
This commit is contained in:
parent
2433cc79d7
commit
486d537065
7 changed files with 8 additions and 7 deletions
|
@ -406,7 +406,6 @@ faulthandler_exc_handler(struct _EXCEPTION_POINTERS *exc_info)
|
|||
{
|
||||
const int fd = fatal_error.fd;
|
||||
DWORD code = exc_info->ExceptionRecord->ExceptionCode;
|
||||
DWORD flags = exc_info->ExceptionRecord->ExceptionFlags;
|
||||
|
||||
if (faulthandler_ignore_exception(code)) {
|
||||
/* ignore the exception: call the next exception handler */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue