Skip to content

Instantly share code, notes, and snippets.

@mdboom
Created November 21, 2023 18:39
Show Gist options
  • Save mdboom/1f898fd2cd479e8af49403d510b22c34 to your computer and use it in GitHub Desktop.
Save mdboom/1f898fd2cd479e8af49403d510b22c34 to your computer and use it in GitHub Desktop.
This file has been truncated, but you can view the full file.
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Programs/python.o ./Programs/python.c
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Parser/token.o Parser/token.c
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Parser/pegen.o Parser/pegen.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_runtime.h:17,
from ./Include/internal/pycore_pystate.h:11,
from Parser/pegen.c:3:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
Parser/pegen.c: In function ‘_PyPegen_byte_offset_to_character_offset’:
Parser/pegen.c:28:22: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
28 | Py_ssize_t len = strlen(str);
| ^~~~~~
Parser/pegen.c: In function ‘_get_keyword_or_name_type’:
Parser/pegen.c:138:47: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
138 | if (strncmp(k->str, new_token->start, name_len) == 0) {
| ^~~~~~~~
Parser/pegen.c: In function ‘_resize_tokens_array’:
Parser/pegen.c:189:59: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
189 | Token **new_tokens = PyMem_Realloc(p->tokens, newsize * sizeof(Token *));
| ^
Parser/pegen.c: In function ‘_PyPegen_fill_token’:
Parser/pegen.c:218:38: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
218 | char *tag = PyMem_Malloc(len + 1);
| ~~~~^~~
Parser/pegen.c:223:39: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
223 | strncpy(tag, new_token.start, len);
| ^~~
Parser/pegen.c: In function ‘_PyPegen_new_identifier’:
Parser/pegen.c:459:44: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
459 | PyObject *id = PyUnicode_DecodeUTF8(n, strlen(n), NULL);
| ^~~~~~~~~
Parser/pegen.c: In function ‘_PyPegen_soft_keyword_token’:
Parser/pegen.c:554:42: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
554 | if (strncmp(*keyword, the_token, size) == 0) {
| ^~~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Parser/pegen_errors.o Parser/pegen_errors.c
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Parser/action_helpers.o Parser/action_helpers.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_runtime.h:17,
from Parser/action_helpers.c:5:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
Parser/action_helpers.c: In function ‘_PyPegen_make_module’:
Parser/action_helpers.c:850:22: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
850 | Py_ssize_t num = p->type_ignore_comments.num_items;
| ^
Parser/action_helpers.c: In function ‘_PyPegen_new_type_comment’:
Parser/action_helpers.c:876:45: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
876 | PyObject *res = PyUnicode_DecodeUTF8(s, strlen(s), NULL);
| ^~~~~~~~~
Parser/action_helpers.c: In function ‘_PyPegen_decoded_constant_from_token’:
Parser/action_helpers.c:1360:56: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
1360 | PyObject* str = _PyPegen_decode_string(p, 0, bstr, bsize, tok);
| ^~~~~
In file included from Parser/action_helpers.c:3:
Parser/action_helpers.c: In function ‘_PyPegen_nonparen_genexp_in_call’:
./Include/internal/pycore_asdl.h:82:58: warning: array subscript 1 is above array bounds of ‘struct _expr *[1]’ [-Warray-bounds=]
82 | #define asdl_seq_GET(S, I) _Py_RVALUE((S)->typed_elements[(I)])
Parser/pegen.h:189:68: note: in definition of macro ‘RAISE_SYNTAX_ERROR_KNOWN_RANGE’
189 | RAISE_ERROR_KNOWN_LOCATION(p, PyExc_SyntaxError, (a)->lineno, (a)->col_offset, (b)->end_lineno, (b)->end_col_offset, msg, ##__VA_ARGS__)
| ^
./Include/internal/pycore_asdl.h:82:28: note: in expansion of macro ‘_Py_RVALUE’
82 | #define asdl_seq_GET(S, I) _Py_RVALUE((S)->typed_elements[(I)])
| ^~~~~~~~~~
Parser/action_helpers.c:1220:19: note: in expansion of macro ‘asdl_seq_GET’
1220 | (expr_ty) asdl_seq_GET(args->v.Call.args, len - 1),
| ^~~~~~~~~~~~
In file included from Parser/pegen.h:5:
./Include/internal/pycore_ast.h:73:13: note: while referencing ‘typed_elements’
73 | expr_ty typed_elements[1];
| ^~~~~~~~~~~~~~
In file included from ./Include/Python.h:51,
from Parser/action_helpers.c:1:
Parser/action_helpers.c: In function ‘_PyPegen_formatted_value’:
./Include/internal/pycore_asdl.h:94:63: warning: array subscript 1 is above array bounds of ‘struct _expr *[1]’ [-Warray-bounds=]
94 | # define asdl_seq_SET(S, I, V) _Py_RVALUE((S)->typed_elements[(I)] = (V))
| ~~~~~~~~~~~~~~~~~~~^~~~~
./Include/pymacro.h:165:37: note: in definition of macro ‘_Py_RVALUE’
165 | #define _Py_RVALUE(EXPR) ((void)0, (EXPR))
| ^~~~
Parser/action_helpers.c:1474:9: note: in expansion of macro ‘asdl_seq_SET’
1474 | asdl_seq_SET(values, 1, formatted_value);
| ^~~~~~~~~~~~
./Include/internal/pycore_ast.h:73:13: note: while referencing ‘typed_elements’
73 | expr_ty typed_elements[1];
| ^~~~~~~~~~~~~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Parser/parser.o Parser/parser.c
Parser/parser.c: In function ‘_loop0_1_rule’:
Parser/parser.c:25106:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
25106 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_2_rule’:
Parser/parser.c:25173:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
25173 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop1_3_rule’:
Parser/parser.c:25240:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
25240 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_5_rule’:
Parser/parser.c:25321:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
25321 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop1_14_rule’:
Parser/parser.c:25893:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
25893 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_19_rule’:
Parser/parser.c:26134:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
26134 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_21_rule’:
Parser/parser.c:26251:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
26251 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_24_rule’:
Parser/parser.c:26462:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
26462 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop1_25_rule’:
Parser/parser.c:26529:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
26529 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_27_rule’:
Parser/parser.c:26610:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
26610 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_30_rule’:
Parser/parser.c:26773:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
26773 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop1_32_rule’:
Parser/parser.c:26927:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
26927 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_36_rule’:
Parser/parser.c:27140:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
27140 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_37_rule’:
Parser/parser.c:27207:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
27207 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_38_rule’:
Parser/parser.c:27274:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
27274 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop1_39_rule’:
Parser/parser.c:27341:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
27341 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_40_rule’:
Parser/parser.c:27413:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
27413 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop1_41_rule’:
Parser/parser.c:27480:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
27480 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop1_42_rule’:
Parser/parser.c:27552:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
27552 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop1_43_rule’:
Parser/parser.c:27624:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
27624 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_44_rule’:
Parser/parser.c:27696:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
27696 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop1_45_rule’:
Parser/parser.c:27763:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
27763 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_46_rule’:
Parser/parser.c:27835:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
27835 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop1_47_rule’:
Parser/parser.c:27902:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
27902 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_48_rule’:
Parser/parser.c:27974:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
27974 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_49_rule’:
Parser/parser.c:28041:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
28041 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop1_50_rule’:
Parser/parser.c:28108:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
28108 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_52_rule’:
Parser/parser.c:28189:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
28189 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_54_rule’:
Parser/parser.c:28306:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
28306 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_56_rule’:
Parser/parser.c:28423:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
28423 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_58_rule’:
Parser/parser.c:28540:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
28540 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop1_60_rule’:
Parser/parser.c:28724:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
28724 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop1_61_rule’:
Parser/parser.c:28796:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
28796 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop1_64_rule’:
Parser/parser.c:28960:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
28960 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_66_rule’:
Parser/parser.c:29041:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
29041 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_72_rule’:
Parser/parser.c:29424:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
29424 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_74_rule’:
Parser/parser.c:29541:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
29541 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_77_rule’:
Parser/parser.c:29715:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
29715 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_79_rule’:
Parser/parser.c:29832:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
29832 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_81_rule’:
Parser/parser.c:29949:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
29949 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop1_82_rule’:
Parser/parser.c:30057:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
30057 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop1_83_rule’:
Parser/parser.c:30129:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
30129 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_85_rule’:
Parser/parser.c:30210:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
30210 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop1_86_rule’:
Parser/parser.c:30318:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
30318 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop1_87_rule’:
Parser/parser.c:30390:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
30390 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop1_88_rule’:
Parser/parser.c:30462:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
30462 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_91_rule’:
Parser/parser.c:30586:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
30586 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_98_rule’:
Parser/parser.c:31082:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
31082 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_99_rule’:
Parser/parser.c:31149:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
31149 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_100_rule’:
Parser/parser.c:31216:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
31216 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop1_101_rule’:
Parser/parser.c:31283:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
31283 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_102_rule’:
Parser/parser.c:31355:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
31355 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop1_103_rule’:
Parser/parser.c:31422:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
31422 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop1_104_rule’:
Parser/parser.c:31494:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
31494 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop1_105_rule’:
Parser/parser.c:31566:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
31566 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_106_rule’:
Parser/parser.c:31638:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
31638 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop1_107_rule’:
Parser/parser.c:31705:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
31705 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_108_rule’:
Parser/parser.c:31777:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
31777 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop1_109_rule’:
Parser/parser.c:31844:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
31844 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_110_rule’:
Parser/parser.c:31916:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
31916 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop1_111_rule’:
Parser/parser.c:31983:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
31983 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_113_rule’:
Parser/parser.c:32112:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
32112 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_114_rule’:
Parser/parser.c:32179:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
32179 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop1_115_rule’:
Parser/parser.c:32246:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
32246 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_118_rule’:
Parser/parser.c:32376:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
32376 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop1_119_rule’:
Parser/parser.c:32484:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
32484 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_120_rule’:
Parser/parser.c:32556:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
32556 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_121_rule’:
Parser/parser.c:32623:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
32623 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_124_rule’:
Parser/parser.c:32758:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
32758 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_127_rule’:
Parser/parser.c:32922:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
32922 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_129_rule’:
Parser/parser.c:33039:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
33039 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_131_rule’:
Parser/parser.c:33156:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
33156 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_133_rule’:
Parser/parser.c:33273:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
33273 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_134_rule’:
Parser/parser.c:33381:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
33381 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_136_rule’:
Parser/parser.c:33457:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
33457 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop1_137_rule’:
Parser/parser.c:33565:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
33565 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_140_rule’:
Parser/parser.c:33686:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
33686 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_142_rule’:
Parser/parser.c:33803:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
33803 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_144_rule’:
Parser/parser.c:33920:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
33920 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_146_rule’:
Parser/parser.c:34037:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
34037 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_148_rule’:
Parser/parser.c:34154:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
34154 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_161_rule’:
Parser/parser.c:35001:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
35001 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_162_rule’:
Parser/parser.c:35068:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
35068 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_163_rule’:
Parser/parser.c:35135:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
35135 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_169_rule’:
Parser/parser.c:35506:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
35506 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_170_rule’:
Parser/parser.c:35573:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
35573 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_171_rule’:
Parser/parser.c:35640:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
35640 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop1_172_rule’:
Parser/parser.c:35707:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
35707 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_174_rule’:
Parser/parser.c:35836:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
35836 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_176_rule’:
Parser/parser.c:35960:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
35960 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop1_177_rule’:
Parser/parser.c:36027:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
36027 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_181_rule’:
Parser/parser.c:36273:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
36273 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop1_184_rule’:
Parser/parser.c:36473:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
36473 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_186_rule’:
Parser/parser.c:36602:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
36602 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_187_rule’:
Parser/parser.c:36669:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
36669 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_188_rule’:
Parser/parser.c:36736:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
36736 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_190_rule’:
Parser/parser.c:36812:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
36812 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_192_rule’:
Parser/parser.c:36977:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
36977 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_194_rule’:
Parser/parser.c:37101:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
37101 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop1_195_rule’:
Parser/parser.c:37168:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
37168 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop1_196_rule’:
Parser/parser.c:37240:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
37240 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_199_rule’:
Parser/parser.c:37429:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
37429 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_204_rule’:
Parser/parser.c:37714:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
37714 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_206_rule’:
Parser/parser.c:37831:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
37831 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_208_rule’:
Parser/parser.c:37948:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
37948 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_210_rule’:
Parser/parser.c:38065:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
38065 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_212_rule’:
Parser/parser.c:38182:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
38182 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_214_rule’:
Parser/parser.c:38347:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
38347 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop1_215_rule’:
Parser/parser.c:38414:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
38414 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_217_rule’:
Parser/parser.c:38527:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
38527 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop1_218_rule’:
Parser/parser.c:38594:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
38594 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_230_rule’:
Parser/parser.c:39110:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
39110 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_244_rule’:
Parser/parser.c:39984:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
39984 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
Parser/parser.c: In function ‘_loop0_275_rule’:
Parser/parser.c:41474:83: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
41474 | void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));
| ^
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Parser/string_parser.o Parser/string_parser.c
Parser/string_parser.c: In function ‘warn_invalid_escape_sequence’:
Parser/string_parser.c:21:23: warning: conversion to ‘unsigned char’ from ‘char’ may change the sign of the result [-Wsign-conversion]
21 | unsigned char c = *first_invalid_escape;
| ^
Parser/string_parser.c: In function ‘decode_unicode_with_escapes’:
Parser/string_parser.c:98:53: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
98 | u = PyBytes_FromStringAndSize((char *)NULL, len * 6);
| ~~~~^~~
Parser/string_parser.c:145:11: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘long int’ may change the sign of the result [-Wsign-conversion]
145 | len = p - buf;
| ^
Parser/string_parser.c:149:51: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
149 | v = _PyUnicode_DecodeUnicodeEscapeInternal(s, len, NULL, NULL, &first_invalid_escape);
| ^~~
Parser/string_parser.c: In function ‘_PyPegen_decode_string’:
Parser/string_parser.c:188:48: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
188 | return PyUnicode_DecodeUTF8Stateful(s, len, NULL, NULL);
| ^~~
Parser/string_parser.c: In function ‘_PyPegen_parse_string’:
Parser/string_parser.c:272:49: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
272 | return PyBytes_FromStringAndSize(s, len);
| ^~~
Parser/string_parser.c:274:48: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
274 | return decode_bytes_with_escapes(p, s, len, t);
| ^~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Parser/peg_api.o Parser/peg_api.c
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Parser/lexer/buffer.o Parser/lexer/buffer.c
Parser/lexer/buffer.c: In function ‘_PyLexer_tok_reserve_buf’:
Parser/lexer/buffer.c:61:48: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
61 | newbuf = (char *)PyMem_Realloc(newbuf, newsize);
| ^~~~~~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Parser/lexer/lexer.o Parser/lexer/lexer.c
Parser/lexer/lexer.c: In function ‘tok_nextc’:
Parser/lexer/lexer.c:86:59: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘long int’ may change the sign of the result [-Wsign-conversion]
86 | if (contains_null_bytes(tok->line_start, tok->inp - tok->line_start)) {
| ~~~~~~~~~^~~~~~~~~~~~~~~~~
Parser/lexer/lexer.c: In function ‘set_fstring_expr’:
Parser/lexer/lexer.c:132:67: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
132 | char *result = (char *)PyObject_Malloc((input_length + 1) * sizeof(char));
| ^
Parser/lexer/lexer.c: In function ‘_PyLexer_update_fstring_expr’:
Parser/lexer/lexer.c:180:23: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
180 | Py_ssize_t size = strlen(tok->cur);
| ^~~~~~
Parser/lexer/lexer.c:190:42: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
190 | tok_mode->last_expr_size + size
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
Parser/lexer/lexer.c:197:86: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
197 | strncpy(tok_mode->last_expr_buffer + tok_mode->last_expr_size, tok->cur, size);
| ^~~~
Parser/lexer/lexer.c:204:55: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
204 | tok_mode->last_expr_buffer = PyMem_Malloc(size);
| ^~~~
Parser/lexer/lexer.c:210:59: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
210 | strncpy(tok_mode->last_expr_buffer, tok->cur, size);
| ^~~~
Parser/lexer/lexer.c:216:43: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
216 | tok_mode->last_expr_end = strlen(tok->start);
| ^~~~~~
Parser/lexer/lexer.c: In function ‘tok_get_normal_mode’:
Parser/lexer/lexer.c:982:43: warning: conversion from ‘int’ to ‘char’ may change value [-Wconversion]
982 | the_current_tok->f_string_quote = quote;
| ^~~~~
Parser/lexer/lexer.c:1140:63: warning: conversion from ‘int’ to ‘char’ may change value [-Wconversion]
1140 | if (cursor == 0 && !_PyLexer_update_fstring_expr(tok, c)) {
| ^
Parser/lexer/lexer.c:1143:69: warning: conversion from ‘int’ to ‘char’ may change value [-Wconversion]
1143 | if (cursor == 0 && c != '{' && set_fstring_expr(tok, token, c)) {
| ^
Parser/lexer/lexer.c:1183:39: warning: conversion from ‘int’ to ‘char’ may change value [-Wconversion]
1183 | tok->parenstack[tok->level] = c;
| ^
In file included from ./Include/unicodeobject.h:1014,
from ./Include/Python.h:65,
from Parser/lexer/lexer.c:1:
Parser/lexer/lexer.c:1246:33: warning: conversion to ‘Py_UCS4’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
1246 | if (!Py_UNICODE_ISPRINTABLE(c)) {
| ^
./Include/cpython/unicodeobject.h:683:59: note: in definition of macro ‘Py_UNICODE_ISPRINTABLE’
683 | #define Py_UNICODE_ISPRINTABLE(ch) _PyUnicode_IsPrintable(ch)
| ^~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Parser/lexer/state.o Parser/lexer/state.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_runtime.h:17,
from ./Include/internal/pycore_pystate.h:11,
from Parser/lexer/state.c:2:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Parser/tokenizer/file_tokenizer.o Parser/tokenizer/file_tokenizer.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_runtime.h:17,
from ./Include/internal/pycore_pystate.h:11,
from ./Include/internal/pycore_call.h:12,
from Parser/tokenizer/file_tokenizer.c:2:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
Parser/tokenizer/file_tokenizer.c: In function ‘tok_concatenate_interactive_new_line’:
Parser/tokenizer/file_tokenizer.c:25:28: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
25 | Py_ssize_t line_size = strlen(line);
| ^~~~~~
Parser/tokenizer/file_tokenizer.c:32:63: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
32 | new_str = PyMem_Realloc(new_str, current_size + line_size + 1);
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~
Parser/tokenizer/file_tokenizer.c: In function ‘tok_readline_recode’:
Parser/tokenizer/file_tokenizer.c:104:26: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
104 | size_t buffer_size = buflen + 2;
| ^~~~~~
Parser/tokenizer/file_tokenizer.c:105:40: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
105 | if (!_PyLexer_tok_reserve_buf(tok, buffer_size)) {
| ^~~~~~~~~~~
Parser/tokenizer/file_tokenizer.c:108:27: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
108 | memcpy(tok->inp, buf, buflen);
| ^~~~~~
Parser/tokenizer/file_tokenizer.c: In function ‘tok_underflow_interactive’:
Parser/tokenizer/file_tokenizer.c:217:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
217 | newtok = PyMem_Malloc(buflen+1);
| ~~~~~~^~
Parser/tokenizer/file_tokenizer.c:246:49: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
246 | if (!_PyLexer_tok_reserve_buf(tok, size + 1)) {
| ~~~~~^~~
Parser/tokenizer/file_tokenizer.c: In function ‘tok_underflow_file’:
Parser/tokenizer/file_tokenizer.c:332:60: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
332 | else if (!_PyTokenizer_check_coding_spec(tok->cur, strlen(tok->cur),
| ^~~~~~~~~~~~~~~~
Parser/tokenizer/file_tokenizer.c: In function ‘_PyTokenizer_FromFile’:
Parser/tokenizer/file_tokenizer.c:373:54: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
373 | tok->encoding = _PyTokenizer_new_string(enc, strlen(enc), tok);
| ^~~~~~~~~~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Parser/tokenizer/readline_tokenizer.o Parser/tokenizer/readline_tokenizer.c
Parser/tokenizer/readline_tokenizer.c: In function ‘tok_readline_string’:
Parser/tokenizer/readline_tokenizer.c:53:26: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
53 | size_t buffer_size = buflen + 2;
| ^~~~~~
Parser/tokenizer/readline_tokenizer.c:54:40: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
54 | if (!_PyLexer_tok_reserve_buf(tok, buffer_size)) {
| ^~~~~~~~~~~
Parser/tokenizer/readline_tokenizer.c:57:27: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
57 | memcpy(tok->inp, buf, buflen);
| ^~~~~~
Parser/tokenizer/readline_tokenizer.c: In function ‘_PyTokenizer_FromReadline’:
Parser/tokenizer/readline_tokenizer.c:123:54: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
123 | tok->encoding = _PyTokenizer_new_string(enc, strlen(enc), tok);
| ^~~~~~~~~~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Parser/tokenizer/string_tokenizer.o Parser/tokenizer/string_tokenizer.c
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Parser/tokenizer/utf8_tokenizer.o Parser/tokenizer/utf8_tokenizer.c
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Parser/tokenizer/helpers.o Parser/tokenizer/helpers.c
Parser/tokenizer/helpers.c: In function ‘_syntaxerror_range’:
Parser/tokenizer/helpers.c:40:27: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
40 | Py_ssize_t line_len = strcspn(tok->line_start, "\n");
| ^~~~~~~
Parser/tokenizer/helpers.c: In function ‘_PyTokenizer_new_string’:
Parser/tokenizer/helpers.c:183:45: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
183 | char* result = (char *)PyMem_Malloc(len + 1);
| ~~~~^~~
Parser/tokenizer/helpers.c:188:23: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
188 | memcpy(result, s, len);
| ^~~
Parser/tokenizer/helpers.c: In function ‘_PyTokenizer_translate_into_utf8’:
Parser/tokenizer/helpers.c:196:43: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
196 | PyObject* buf = PyUnicode_Decode(str, strlen(str), enc, NULL);
| ^~~~~~~~~~~
Parser/tokenizer/helpers.c: In function ‘_PyTokenizer_translate_newlines’:
Parser/tokenizer/helpers.c:239:20: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘long int’ may change the sign of the result [-Wsign-conversion]
239 | final_length = current - buf + 1;
| ^~~~~~~
In file included from ./Include/Python.h:115,
from Parser/tokenizer/helpers.c:1:
Parser/tokenizer/helpers.c: In function ‘get_normal_name’:
./Include/cpython/pyctype.h:32:23: warning: conversion to ‘char’ from ‘unsigned char’ may change the sign of the result [-Wsign-conversion]
32 | #define Py_TOLOWER(c) (_Py_ctype_tolower[Py_CHARMASK(c)])
| ^
Parser/tokenizer/helpers.c:307:22: note: in expansion of macro ‘Py_TOLOWER’
307 | buf[i] = Py_TOLOWER(c);
| ^~~~~~~~~~
Parser/tokenizer/helpers.c: In function ‘get_coding_spec’:
Parser/tokenizer/helpers.c:362:52: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
362 | r = _PyTokenizer_new_string(q, strlen(q), tok);
| ^~~~~~~~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Parser/myreadline.o Parser/myreadline.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_runtime.h:17,
from ./Include/internal/pycore_pystate.h:11,
from Parser/myreadline.c:14:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Objects/abstract.o Objects/abstract.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_runtime.h:17,
from ./Include/internal/pycore_pystate.h:11,
from ./Include/internal/pycore_call.h:12,
from Objects/abstract.c:6:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
In file included from Objects/abstract.c:9:
./Include/internal/pycore_object.h: In function ‘_PyType_PreHeaderSize’:
./Include/internal/pycore_object.h:453:30: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
453 | return _PyType_IS_GC(tp) * sizeof(PyGC_Head) +
| ^
./Include/internal/pycore_object.h:454:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
454 | _PyType_HasFeature(tp, Py_TPFLAGS_PREHEADER) * 2 * sizeof(PyObject *);
| ^
In file included from Objects/abstract.c:10:
./Include/internal/pycore_long.h: In function ‘_PyLong_DigitCount’:
./Include/internal/pycore_long.h:238:34: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘uintptr_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
238 | return op->long_value.lv_tag >> NON_SIZE_BITS;
| ^
./Include/internal/pycore_long.h: In function ‘_PyLong_SetSignAndDigitCount’:
./Include/internal/pycore_long.h:273:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
273 | #define TAG_FROM_SIGN_AND_SIZE(sign, size) ((1 - (sign)) | ((size) << NON_SIZE_BITS))
| ^
./Include/internal/pycore_long.h:281:29: note: in expansion of macro ‘TAG_FROM_SIGN_AND_SIZE’
281 | op->long_value.lv_tag = TAG_FROM_SIGN_AND_SIZE(sign, (size_t)size);
| ^~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_long.h: In function ‘_PyLong_FlipSign’:
./Include/internal/pycore_long.h:296:27: warning: unsigned conversion from ‘int’ to ‘uintptr_t’ {aka ‘long unsigned int’} changes value from ‘-8’ to ‘18446744073709551608’ [-Wsign-conversion]
296 | op->long_value.lv_tag &= NON_SIZE_MASK;
| ^~
Objects/abstract.c: In function ‘PyBuffer_FromContiguous’:
Objects/abstract.c:622:32: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
622 | memcpy(view->buf, buf, len);
| ^~~
Objects/abstract.c:629:60: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
629 | indices = (Py_ssize_t *)PyMem_Malloc(sizeof(Py_ssize_t)*(view->ndim));
| ^
Objects/abstract.c:651:30: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
651 | memcpy(ptr, src, view->itemsize);
| ~~~~^~~~~~~~~~
Objects/abstract.c: In function ‘PyObject_CopyData’:
Objects/abstract.c:694:53: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
694 | memcpy(view_dest.buf, view_src.buf, view_src.len);
| ~~~~~~~~^~~~
Objects/abstract.c:703:60: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
703 | indices = (Py_ssize_t *)PyMem_Malloc(sizeof(Py_ssize_t)*view_src.ndim);
| ^
Objects/abstract.c:722:36: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
722 | memcpy(dptr, sptr, view_src.itemsize);
| ~~~~~~~~^~~~~~~~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Objects/boolobject.o Objects/boolobject.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_runtime.h:17,
from ./Include/internal/pycore_long.h:13,
from Objects/boolobject.c:4:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
./Include/internal/pycore_long.h: In function ‘_PyLong_DigitCount’:
./Include/internal/pycore_long.h:238:34: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘uintptr_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
238 | return op->long_value.lv_tag >> NON_SIZE_BITS;
| ^
./Include/internal/pycore_long.h: In function ‘_PyLong_SetSignAndDigitCount’:
./Include/internal/pycore_long.h:273:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
273 | #define TAG_FROM_SIGN_AND_SIZE(sign, size) ((1 - (sign)) | ((size) << NON_SIZE_BITS))
| ^
./Include/internal/pycore_long.h:281:29: note: in expansion of macro ‘TAG_FROM_SIGN_AND_SIZE’
281 | op->long_value.lv_tag = TAG_FROM_SIGN_AND_SIZE(sign, (size_t)size);
| ^~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_long.h: In function ‘_PyLong_FlipSign’:
./Include/internal/pycore_long.h:296:27: warning: unsigned conversion from ‘int’ to ‘uintptr_t’ {aka ‘long unsigned int’} changes value from ‘-8’ to ‘18446744073709551608’ [-Wsign-conversion]
296 | op->long_value.lv_tag &= NON_SIZE_MASK;
| ^~
In file included from Objects/boolobject.c:6:
./Include/internal/pycore_object.h: In function ‘_PyType_PreHeaderSize’:
./Include/internal/pycore_object.h:453:30: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
453 | return _PyType_IS_GC(tp) * sizeof(PyGC_Head) +
| ^
./Include/internal/pycore_object.h:454:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
454 | _PyType_HasFeature(tp, Py_TPFLAGS_PREHEADER) * 2 * sizeof(PyObject *);
| ^
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Objects/bytes_methods.o Objects/bytes_methods.c
In file included from ./Include/Python.h:115,
from Objects/bytes_methods.c:1:
Objects/bytes_methods.c: In function ‘_Py_bytes_lower’:
./Include/cpython/pyctype.h:32:23: warning: conversion to ‘char’ from ‘unsigned char’ may change the sign of the result [-Wsign-conversion]
32 | #define Py_TOLOWER(c) (_Py_ctype_tolower[Py_CHARMASK(c)])
| ^
Objects/bytes_methods.c:307:21: note: in expansion of macro ‘Py_TOLOWER’
307 | result[i] = Py_TOLOWER((unsigned char) cptr[i]);
| ^~~~~~~~~~
Objects/bytes_methods.c: In function ‘_Py_bytes_upper’:
./Include/cpython/pyctype.h:33:23: warning: conversion to ‘char’ from ‘unsigned char’ may change the sign of the result [-Wsign-conversion]
33 | #define Py_TOUPPER(c) (_Py_ctype_toupper[Py_CHARMASK(c)])
| ^
Objects/bytes_methods.c:323:21: note: in expansion of macro ‘Py_TOUPPER’
323 | result[i] = Py_TOUPPER((unsigned char) cptr[i]);
| ^~~~~~~~~~
Objects/bytes_methods.c: In function ‘_Py_bytes_title’:
Objects/bytes_methods.c:352:21: warning: conversion from ‘int’ to ‘char’ may change value [-Wconversion]
352 | *result++ = c;
| ^
Objects/bytes_methods.c: In function ‘_Py_bytes_capitalize’:
./Include/cpython/pyctype.h:33:23: warning: conversion to ‘char’ from ‘unsigned char’ may change the sign of the result [-Wsign-conversion]
33 | #define Py_TOUPPER(c) (_Py_ctype_toupper[Py_CHARMASK(c)])
| ^
Objects/bytes_methods.c:367:19: note: in expansion of macro ‘Py_TOUPPER’
367 | *result = Py_TOUPPER(*s);
| ^~~~~~~~~~
Objects/bytes_methods.c: In function ‘_Py_bytes_swapcase’:
./Include/cpython/pyctype.h:33:23: warning: conversion to ‘char’ from ‘unsigned char’ may change the sign of the result [-Wsign-conversion]
33 | #define Py_TOUPPER(c) (_Py_ctype_toupper[Py_CHARMASK(c)])
| ^
Objects/bytes_methods.c:387:23: note: in expansion of macro ‘Py_TOUPPER’
387 | *result = Py_TOUPPER(c);
| ^~~~~~~~~~
./Include/cpython/pyctype.h:32:23: warning: conversion to ‘char’ from ‘unsigned char’ may change the sign of the result [-Wsign-conversion]
32 | #define Py_TOLOWER(c) (_Py_ctype_tolower[Py_CHARMASK(c)])
| ^
Objects/bytes_methods.c:390:23: note: in expansion of macro ‘Py_TOLOWER’
390 | *result = Py_TOLOWER(c);
| ^~~~~~~~~~
Objects/bytes_methods.c:393:23: warning: conversion from ‘int’ to ‘char’ may change value [-Wconversion]
393 | *result = c;
| ^
In file included from Objects/bytes_methods.c:438:
Objects/stringlib/fastsearch.h: In function ‘stringlib_find_char’:
Objects/stringlib/fastsearch.h:58:42: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
58 | p = STRINGLIB_FAST_MEMCHR(s, ch, n);
| ^
Objects/stringlib/fastsearch.h: In function ‘stringlib_rfind_char’:
Objects/stringlib/fastsearch.h:127:28: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
127 | p = memrchr(s, ch, n);
| ^
Objects/stringlib/fastsearch.h: In function ‘stringlib__preprocess’:
Objects/stringlib/fastsearch.h:336:42: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
336 | p->cut * STRINGLIB_SIZEOF_CHAR));
Objects/bytes_methods.c: In function ‘_Py_bytes_contains’:
Objects/bytes_methods.c:718:36: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
718 | return memchr(str, (int) ival, len) != NULL;
| ^~~
Objects/bytes_methods.c: In function ‘tailmatch’:
Objects/bytes_methods.c:761:34: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
761 | if (memcmp(str + start, sub, slen) != 0)
| ^~~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Objects/bytearrayobject.o Objects/bytearrayobject.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_ceval.h:13,
from Objects/bytearrayobject.c:7:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
In file included from Objects/bytearrayobject.c:8:
./Include/internal/pycore_object.h: In function ‘_PyType_PreHeaderSize’:
./Include/internal/pycore_object.h:453:30: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
453 | return _PyType_IS_GC(tp) * sizeof(PyGC_Head) +
| ^
./Include/internal/pycore_object.h:454:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
454 | _PyType_HasFeature(tp, Py_TPFLAGS_PREHEADER) * 2 * sizeof(PyObject *);
| ^
In file included from Objects/bytearrayobject.c:10:
./Include/internal/pycore_long.h: In function ‘_PyLong_DigitCount’:
./Include/internal/pycore_long.h:238:34: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘uintptr_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
238 | return op->long_value.lv_tag >> NON_SIZE_BITS;
| ^
./Include/internal/pycore_long.h: In function ‘_PyLong_SetSignAndDigitCount’:
./Include/internal/pycore_long.h:273:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
273 | #define TAG_FROM_SIGN_AND_SIZE(sign, size) ((1 - (sign)) | ((size) << NON_SIZE_BITS))
| ^
./Include/internal/pycore_long.h:281:29: note: in expansion of macro ‘TAG_FROM_SIGN_AND_SIZE’
281 | op->long_value.lv_tag = TAG_FROM_SIGN_AND_SIZE(sign, (size_t)size);
| ^~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_long.h: In function ‘_PyLong_FlipSign’:
./Include/internal/pycore_long.h:296:27: warning: unsigned conversion from ‘int’ to ‘uintptr_t’ {aka ‘long unsigned int’} changes value from ‘-8’ to ‘18446744073709551608’ [-Wsign-conversion]
296 | op->long_value.lv_tag &= NON_SIZE_MASK;
| ^~
Objects/bytearrayobject.c: In function ‘_getbytevalue’:
Objects/bytearrayobject.c:40:14: warning: conversion from ‘long int’ to ‘int’ may change value [-Wconversion]
40 | *value = face_value;
| ^~~~~~~~~~
Objects/bytearrayobject.c: In function ‘PyByteArray_FromStringAndSize’:
Objects/bytearrayobject.c:135:41: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
135 | new->ob_bytes = PyObject_Malloc(alloc);
| ^~~~~
Objects/bytearrayobject.c:141:42: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
141 | memcpy(new->ob_bytes, bytes, size);
| ^~~~
In file included from ./Include/Python.h:58,
from Objects/bytearrayobject.c:3:
Objects/bytearrayobject.c: In function ‘PyByteArray_Resize’:
./Include/object.h:391:68: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
391 | # define Py_SET_SIZE(ob, size) Py_SET_SIZE(_PyVarObject_CAST(ob), (size))
| ^~~~~~
Objects/bytearrayobject.c:202:13: note: in expansion of macro ‘Py_SET_SIZE’
202 | Py_SET_SIZE(self, size);
| ^~~~~~~~~~~
Objects/bytearrayobject.c:209:27: warning: conversion from ‘size_t’ {aka ‘long unsigned int’} to ‘double’ may change value [-Wconversion]
209 | if (size <= alloc * 1.125) {
| ^
./Include/object.h:391:68: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
391 | # define Py_SET_SIZE(ob, size) Py_SET_SIZE(_PyVarObject_CAST(ob), (size))
| ^~~~~~
Objects/bytearrayobject.c:242:5: note: in expansion of macro ‘Py_SET_SIZE’
242 | Py_SET_SIZE(self, size);
| ^~~~~~~~~~~
Objects/bytearrayobject.c:243:21: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
243 | obj->ob_alloc = alloc;
| ^~~~~
Objects/bytearrayobject.c: In function ‘PyByteArray_Concat’:
Objects/bytearrayobject.c:274:44: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
274 | memcpy(result->ob_bytes, va.buf, va.len);
| ~~^~~~
Objects/bytearrayobject.c:275:53: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
275 | memcpy(result->ob_bytes + va.len, vb.buf, vb.len);
| ~~^~~~
Objects/bytearrayobject.c: In function ‘bytearray_iconcat’:
Objects/bytearrayobject.c:315:58: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
315 | memcpy(PyByteArray_AS_STRING(self) + size, vo.buf, vo.len);
| ~~^~~~
Objects/bytearrayobject.c: In function ‘bytearray_subscript’:
Objects/bytearrayobject.c:412:24: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
412 | for (cur = start, i = 0; i < slicelength;
| ^~~~~
Objects/bytearrayobject.c:413:22: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
413 | cur += step, i++) {
| ^~
Objects/bytearrayobject.c: In function ‘bytearray_setslice_linear’:
Objects/bytearrayobject.c:460:35: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
460 | Py_SIZE(self) - hi);
Objects/bytearrayobject.c:503:36: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
503 | Py_SIZE(self) - lo - bytes_len);
Objects/bytearrayobject.c:507:33: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
507 | memcpy(buf + lo, bytes, bytes_len);
| ^~~~~~~~~
Objects/bytearrayobject.c: In function ‘bytearray_setitem’:
Objects/bytearrayobject.c:586:38: warning: conversion from ‘int’ to ‘char’ may change value [-Wconversion]
586 | PyByteArray_AS_STRING(self)[i] = ival;
| ^~~~
Objects/bytearrayobject.c: In function ‘bytearray_ass_subscript’:
Objects/bytearrayobject.c:698:24: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
698 | for (cur = start, i = 0;
| ^~~~~
Objects/bytearrayobject.c:699:36: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
699 | i < slicelen; cur += step, i++) {
| ^~
Objects/bytearrayobject.c:702:25: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
702 | if (cur + step >= (size_t)PyByteArray_GET_SIZE(self))
| ^
Objects/bytearrayobject.c:703:54: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
703 | lim = PyByteArray_GET_SIZE(self) - cur - 1;
| ^
In file included from ./Include/bytearrayobject.h:37,
from ./Include/Python.h:63:
./Include/cpython/bytearrayobject.h:34:36: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘long unsigned int’ may change the sign of the result [-Wsign-conversion]
34 | #define PyByteArray_GET_SIZE(self) PyByteArray_GET_SIZE(_PyObject_CAST(self))
| ^~~~~~~~~~~~~~~~~~~~
Objects/bytearrayobject.c:703:27: note: in expansion of macro ‘PyByteArray_GET_SIZE’
703 | lim = PyByteArray_GET_SIZE(self) - cur - 1;
| ^~~~~~~~~~~~~~~~~~~~
Objects/bytearrayobject.c:706:40: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
706 | buf + cur + 1, lim);
| ^~~
Objects/bytearrayobject.c:709:43: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
709 | cur = start + (size_t)slicelen*step;
| ^
Objects/bytearrayobject.c:709:25: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
709 | cur = start + (size_t)slicelen*step;
| ^
Objects/bytearrayobject.c:713:52: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
713 | PyByteArray_GET_SIZE(self) - cur);
| ^
Objects/bytearrayobject.c:733:24: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
733 | for (cur = start, i = 0; i < slicelen; cur += step, i++)
| ^~~~~
Objects/bytearrayobject.c:733:56: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
733 | for (cur = start, i = 0; i < slicelen; cur += step, i++)
| ^~
Objects/bytearrayobject.c: In function ‘bytearray___init___impl’:
Objects/bytearrayobject.c:821:56: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
821 | memset(PyByteArray_AS_STRING(self), 0, count);
| ^~~~~
Objects/bytearrayobject.c:867:20: warning: conversion from ‘int’ to ‘char’ may change value [-Wconversion]
867 | s[i] = value;
| ^~~~~
Objects/bytearrayobject.c:913:56: warning: conversion from ‘int’ to ‘char’ may change value [-Wconversion]
913 | PyByteArray_AS_STRING(self)[Py_SIZE(self)-1] = value;
| ^~~~~
Objects/bytearrayobject.c: In function ‘bytearray_repr’:
Objects/bytearrayobject.c:946:15: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
946 | newsize = strlen(className);
| ^~~~~~
Objects/bytearrayobject.c:954:30: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
954 | buffer = PyObject_Malloc(newsize);
| ^~~~~~~
Objects/bytearrayobject.c:977:12: warning: conversion from ‘int’ to ‘char’ may change value [-Wconversion]
977 | *p++ = quote;
| ^~~~~
Objects/bytearrayobject.c:1005:12: warning: conversion from ‘int’ to ‘char’ may change value [-Wconversion]
1005 | *p++ = quote;
| ^~~~~
In file included from ./Include/Python.h:51:
Objects/bytearrayobject.c: In function ‘bytearray_richcompare’:
./Include/pymacro.h:27:41: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
27 | #define Py_MIN(x, y) (((x) > (y)) ? (y) : (x))
| ~~~~~~~~~~~~~~~~~~~^~~~~~
Objects/bytearrayobject.c:1067:22: note: in expansion of macro ‘Py_MIN’
1067 | Py_MIN(self_size, other_size));
| ^~~~~~
In file included from Objects/bytearrayobject.c:1114:
Objects/stringlib/fastsearch.h: In function ‘stringlib_find_char’:
Objects/stringlib/fastsearch.h:58:42: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
58 | p = STRINGLIB_FAST_MEMCHR(s, ch, n);
| ^
Objects/stringlib/fastsearch.h: In function ‘stringlib_rfind_char’:
Objects/stringlib/fastsearch.h:127:28: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
127 | p = memrchr(s, ch, n);
| ^
Objects/stringlib/fastsearch.h: In function ‘stringlib__preprocess’:
Objects/stringlib/fastsearch.h:336:42: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
336 | p->cut * STRINGLIB_SIZEOF_CHAR));
In file included from ./Include/Python.h:53:
Objects/stringlib/join.h: In function ‘stringlib_bytes_join’:
./Include/pymem.h:65:37: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
65 | ( (type *) PyMem_Malloc((n) * sizeof(type)) ) )
| ^
./Include/pymem.h:82:35: note: in expansion of macro ‘PyMem_New’
82 | #define PyMem_NEW(type, n) PyMem_New(type, (n))
| ^~~~~~~~~
Objects/stringlib/join.h:46:19: note: in expansion of macro ‘PyMem_NEW’
46 | buffers = PyMem_NEW(Py_buffer, seqlen);
| ^~~~~~~~~
In file included from Objects/bytearrayobject.c:1117:
Objects/stringlib/join.h:127:26: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
127 | memcpy(p, q, n);
| ^
Objects/stringlib/join.h:136:35: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
136 | memcpy(p, sepstr, seplen);
| ^~~~~~
Objects/stringlib/join.h:141:26: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
141 | memcpy(p, q, n);
| ^
In file included from Objects/bytearrayobject.c:1121:
Objects/stringlib/transmogrify.h: In function ‘pad’:
Objects/stringlib/transmogrify.h:121:44: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
121 | memset(STRINGLIB_STR(u), fill, left);
| ^~~~
./Include/cpython/bytearrayobject.h:34:36: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
34 | #define PyByteArray_GET_SIZE(self) PyByteArray_GET_SIZE(_PyObject_CAST(self))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Objects/bytearrayobject.c:1105:23: note: in expansion of macro ‘PyByteArray_GET_SIZE’
1105 | #define STRINGLIB_LEN PyByteArray_GET_SIZE
| ^~~~~~~~~~~~~~~~~~~~
Objects/stringlib/transmogrify.h:124:16: note: in expansion of macro ‘STRINGLIB_LEN’
124 | STRINGLIB_LEN(self));
| ^~~~~~~~~~~~~
Objects/stringlib/transmogrify.h:127:26: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
127 | fill, right);
| ^~~~~
Objects/stringlib/transmogrify.h: In function ‘countchar’:
Objects/stringlib/transmogrify.h:264:41: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘long int’ may change the sign of the result [-Wsign-conversion]
264 | while ((start = findchar(start, end - start, c)) != NULL) {
| ~~~~^~~~~~~
Objects/stringlib/transmogrify.h:253:46: note: in definition of macro ‘findchar’
253 | ((char *)memchr((const void *)(target), c, target_len))
| ^~~~~~~~~~
Objects/stringlib/transmogrify.h: In function ‘stringlib_replace_interleave’:
Objects/stringlib/transmogrify.h:319:32: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
319 | memcpy(result_s, to_s, to_len);
| ^~~~~~
Objects/stringlib/transmogrify.h:325:36: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
325 | memcpy(result_s, to_s, to_len);
| ^~~~~~
Objects/stringlib/transmogrify.h:341:39: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
341 | memcpy(result_s, self_s, self_len - i);
| ~~~~~~~~~^~~
Objects/stringlib/transmogrify.h: In function ‘stringlib_replace_delete_single_character’:
Objects/stringlib/transmogrify.h:378:36: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘long int’ may change the sign of the result [-Wsign-conversion]
378 | next = findchar(start, end - start, from_c);
| ~~~~^~~~~~~
Objects/stringlib/transmogrify.h:253:46: note: in definition of macro ‘findchar’
253 | ((char *)memchr((const void *)(target), c, target_len))
| ^~~~~~~~~~
Objects/stringlib/transmogrify.h:381:38: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘long int’ may change the sign of the result [-Wsign-conversion]
381 | memcpy(result_s, start, next - start);
| ~~~~~^~~~~~~
Objects/stringlib/transmogrify.h:385:33: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘long int’ may change the sign of the result [-Wsign-conversion]
385 | memcpy(result_s, start, end - start);
| ~~~~^~~~~~~
Objects/stringlib/transmogrify.h: In function ‘stringlib_replace_delete_substring’:
Objects/stringlib/transmogrify.h:434:38: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘long int’ may change the sign of the result [-Wsign-conversion]
434 | memcpy(result_s, start, next - start);
| ~~~~~^~~~~~~
Objects/stringlib/transmogrify.h:439:33: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘long int’ may change the sign of the result [-Wsign-conversion]
439 | memcpy(result_s, start, end - start);
| ~~~~^~~~~~~
Objects/stringlib/transmogrify.h: In function ‘stringlib_replace_single_character_in_place’:
Objects/stringlib/transmogrify.h:458:29: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
458 | next = findchar(self_s, self_len, from_c);
| ^~~~~~~~
Objects/stringlib/transmogrify.h:253:46: note: in definition of macro ‘findchar’
253 | ((char *)memchr((const void *)(target), c, target_len))
| ^~~~~~~~~~
Objects/stringlib/transmogrify.h:471:30: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
471 | memcpy(result_s, self_s, self_len);
| ^~~~~~~~
Objects/stringlib/transmogrify.h:480:36: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘long int’ may change the sign of the result [-Wsign-conversion]
480 | next = findchar(start, end - start, from_c);
| ~~~~^~~~~~~
Objects/stringlib/transmogrify.h:253:46: note: in definition of macro ‘findchar’
253 | ((char *)memchr((const void *)(target), c, target_len))
| ^~~~~~~~~~
Objects/stringlib/transmogrify.h: In function ‘stringlib_replace_substring_in_place’:
Objects/stringlib/transmogrify.h:521:30: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
521 | memcpy(result_s, self_s, self_len);
| ^~~~~~~~
Objects/stringlib/transmogrify.h:525:25: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
525 | memcpy(start, to_s, from_len);
| ^~~~~~~~
Objects/stringlib/transmogrify.h:535:38: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
535 | memcpy(start + offset, to_s, from_len);
| ^~~~~~~~
Objects/stringlib/transmogrify.h: In function ‘stringlib_replace_single_character’:
Objects/stringlib/transmogrify.h:582:36: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘long int’ may change the sign of the result [-Wsign-conversion]
582 | next = findchar(start, end - start, from_c);
| ~~~~^~~~~~~
Objects/stringlib/transmogrify.h:253:46: note: in definition of macro ‘findchar’
253 | ((char *)memchr((const void *)(target), c, target_len))
| ^~~~~~~~~~
Objects/stringlib/transmogrify.h:588:36: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
588 | memcpy(result_s, to_s, to_len);
| ^~~~~~
Objects/stringlib/transmogrify.h:593:42: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘long int’ may change the sign of the result [-Wsign-conversion]
593 | memcpy(result_s, start, next - start);
| ~~~~~^~~~~~~
Objects/stringlib/transmogrify.h:595:36: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
595 | memcpy(result_s, to_s, to_len);
| ^~~~~~
Objects/stringlib/transmogrify.h:601:33: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘long int’ may change the sign of the result [-Wsign-conversion]
601 | memcpy(result_s, start, end - start);
| ~~~~^~~~~~~
Objects/stringlib/transmogrify.h: In function ‘stringlib_replace_substring’:
Objects/stringlib/transmogrify.h:657:36: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
657 | memcpy(result_s, to_s, to_len);
| ^~~~~~
Objects/stringlib/transmogrify.h:662:42: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘long int’ may change the sign of the result [-Wsign-conversion]
662 | memcpy(result_s, start, next - start);
| ~~~~~^~~~~~~
Objects/stringlib/transmogrify.h:664:36: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
664 | memcpy(result_s, to_s, to_len);
| ^~~~~~
Objects/stringlib/transmogrify.h:670:33: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘long int’ may change the sign of the result [-Wsign-conversion]
670 | memcpy(result_s, start, end - start);
| ~~~~^~~~~~~
Objects/bytearrayobject.c: In function ‘bytearray_removeprefix_impl’:
Objects/bytearrayobject.c:1224:45: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
1224 | && memcmp(self_start, prefix_start, prefix_len) == 0)
| ^~~~~~~~~~
Objects/bytearrayobject.c: In function ‘bytearray_removesuffix_impl’:
Objects/bytearrayobject.c:1257:33: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
1257 | suffix_start, suffix_len) == 0)
| ^~~~~~~~~~
Objects/bytearrayobject.c: In function ‘bytearray_insert_impl’:
Objects/bytearrayobject.c:1644:45: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
1644 | memmove(buf + index + 1, buf + index, n - index);
| ~~^~~~~~~
Objects/bytearrayobject.c:1645:18: warning: conversion from ‘int’ to ‘char’ may change value [-Wconversion]
1645 | buf[index] = item;
| ^~~~
Objects/bytearrayobject.c: In function ‘bytearray_append_impl’:
Objects/bytearrayobject.c:1674:38: warning: conversion from ‘int’ to ‘char’ may change value [-Wconversion]
1674 | PyByteArray_AS_STRING(self)[n] = item;
| ^~~~
Objects/bytearrayobject.c: In function ‘bytearray_extend’:
Objects/bytearrayobject.c:1737:22: warning: conversion from ‘int’ to ‘char’ may change value [-Wconversion]
1737 | buf[len++] = value;
| ^~~~~
Objects/bytearrayobject.c: In function ‘bytearray_pop_impl’:
Objects/bytearrayobject.c:1822:45: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
1822 | memmove(buf + index, buf + index + 1, n - index);
| ~~^~~~~~~
Objects/bytearrayobject.c: In function ‘bytearray_remove_impl’:
Objects/bytearrayobject.c:1846:41: warning: conversion from ‘int’ to ‘char’ may change value [-Wconversion]
1846 | where = stringlib_find_char(buf, n, value);
| ^~~~~
Objects/bytearrayobject.c:1854:45: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
1854 | memmove(buf + where, buf + where + 1, n - where);
| ~~^~~~~~~
Objects/bytearrayobject.c: In function ‘bytearray_strip_impl_helper’:
Objects/bytearrayobject.c:1888:78: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
1888 | while (left < mysize && memchr(bytesptr, (unsigned char)myptr[left], byteslen))
| ^~~~~~~~
Objects/bytearrayobject.c:1895:81: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
1895 | } while (right >= left && memchr(bytesptr, (unsigned char)myptr[right], byteslen));
| ^~~~~~~~
In file included from ./Include/tupleobject.h:39,
from ./Include/Python.h:73:
In function ‘PyTuple_SET_ITEM’,
inlined from ‘stringlib_rpartition’ at Objects/stringlib/partition.h:114:5,
inlined from ‘bytearray_rpartition’ at Objects/bytearrayobject.c:1528:14:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘bytearray_rpartition’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘stringlib_rpartition’ at Objects/stringlib/partition.h:116:5,
inlined from ‘bytearray_rpartition’ at Objects/bytearrayobject.c:1528:14:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 2 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘bytearray_rpartition’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘stringlib_rpartition’ at Objects/stringlib/partition.h:92:9,
inlined from ‘bytearray_rpartition’ at Objects/bytearrayobject.c:1528:14:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘bytearray_rpartition’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘stringlib_rpartition’ at Objects/stringlib/partition.h:93:9,
inlined from ‘bytearray_rpartition’ at Objects/bytearrayobject.c:1528:14:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 2 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘bytearray_rpartition’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘stringlib_partition’ at Objects/stringlib/partition.h:57:5,
inlined from ‘bytearray_partition’ at Objects/bytearrayobject.c:1490:14:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘bytearray_partition’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘stringlib_partition’ at Objects/stringlib/partition.h:59:5,
inlined from ‘bytearray_partition’ at Objects/bytearrayobject.c:1490:14:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 2 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘bytearray_partition’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘stringlib_partition’ at Objects/stringlib/partition.h:35:9,
inlined from ‘bytearray_partition’ at Objects/bytearrayobject.c:1490:14:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘bytearray_partition’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘stringlib_partition’ at Objects/stringlib/partition.h:36:9,
inlined from ‘bytearray_partition’ at Objects/bytearrayobject.c:1490:14:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 2 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘bytearray_partition’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Objects/bytesobject.o Objects/bytesobject.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_runtime.h:17,
from ./Include/internal/pycore_pystate.h:11,
from ./Include/internal/pycore_call.h:12,
from Objects/bytesobject.c:7:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
In file included from Objects/bytesobject.c:12:
./Include/internal/pycore_long.h: In function ‘_PyLong_DigitCount’:
./Include/internal/pycore_long.h:238:34: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘uintptr_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
238 | return op->long_value.lv_tag >> NON_SIZE_BITS;
| ^
./Include/internal/pycore_long.h: In function ‘_PyLong_SetSignAndDigitCount’:
./Include/internal/pycore_long.h:273:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
273 | #define TAG_FROM_SIGN_AND_SIZE(sign, size) ((1 - (sign)) | ((size) << NON_SIZE_BITS))
| ^
./Include/internal/pycore_long.h:281:29: note: in expansion of macro ‘TAG_FROM_SIGN_AND_SIZE’
281 | op->long_value.lv_tag = TAG_FROM_SIGN_AND_SIZE(sign, (size_t)size);
| ^~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_long.h: In function ‘_PyLong_FlipSign’:
./Include/internal/pycore_long.h:296:27: warning: unsigned conversion from ‘int’ to ‘uintptr_t’ {aka ‘long unsigned int’} changes value from ‘-8’ to ‘18446744073709551608’ [-Wsign-conversion]
296 | op->long_value.lv_tag &= NON_SIZE_MASK;
| ^~
In file included from Objects/bytesobject.c:13:
./Include/internal/pycore_object.h: In function ‘_PyType_PreHeaderSize’:
./Include/internal/pycore_object.h:453:30: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
453 | return _PyType_IS_GC(tp) * sizeof(PyGC_Head) +
| ^
./Include/internal/pycore_object.h:454:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
454 | _PyType_HasFeature(tp, Py_TPFLAGS_PREHEADER) * 2 * sizeof(PyObject *);
| ^
Objects/bytesobject.c: In function ‘_PyBytes_FromSize’:
Objects/bytesobject.c:94:69: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
94 | op = (PyBytesObject *)PyObject_Calloc(1, PyBytesObject_SIZE + size);
| ^
Objects/bytesobject.c:96:66: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
96 | op = (PyBytesObject *)PyObject_Malloc(PyBytesObject_SIZE + size);
| ^
Objects/bytesobject.c: In function ‘PyBytes_FromStringAndSize’:
Objects/bytesobject.c:135:30: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
135 | memcpy(op->ob_sval, str, size);
| ^~~~
Objects/bytesobject.c: In function ‘PyBytes_FromString’:
Objects/bytesobject.c:167:56: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
167 | _PyObject_InitVar((PyVarObject*)op, &PyBytes_Type, size);
| ^~~~
Objects/bytesobject.c: In function ‘PyBytes_FromFormatV’:
Objects/bytesobject.c:197:39: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
197 | s = _PyBytesWriter_Alloc(&writer, strlen(format));
| ^~~~~~~~~~~~~~
Objects/bytesobject.c:263:20: warning: conversion to ‘char’ from ‘unsigned char’ may change the sign of the result [-Wsign-conversion]
263 | *s++ = (unsigned char)c;
| ^
Objects/bytesobject.c:204:58: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
204 | s = _PyBytesWriter_WriteBytes(&writer, s, (str), strlen(str)); \
| ^~~~~~~~~~~
Objects/bytesobject.c:278:13: note: in expansion of macro ‘WRITE_BYTES’
278 | WRITE_BYTES(buffer);
| ^~~~~~~~~~~
Objects/bytesobject.c:204:58: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
204 | s = _PyBytesWriter_WriteBytes(&writer, s, (str), strlen(str)); \
| ^~~~~~~~~~~
Objects/bytesobject.c:292:13: note: in expansion of macro ‘WRITE_BYTES’
292 | WRITE_BYTES(buffer);
| ^~~~~~~~~~~
Objects/bytesobject.c:204:58: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
204 | s = _PyBytesWriter_WriteBytes(&writer, s, (str), strlen(str)); \
| ^~~~~~~~~~~
Objects/bytesobject.c:298:13: note: in expansion of macro ‘WRITE_BYTES’
298 | WRITE_BYTES(buffer);
| ^~~~~~~~~~~
Objects/bytesobject.c:204:58: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
204 | s = _PyBytesWriter_WriteBytes(&writer, s, (str), strlen(str)); \
| ^~~~~~~~~~~
Objects/bytesobject.c:304:13: note: in expansion of macro ‘WRITE_BYTES’
304 | WRITE_BYTES(buffer);
| ^~~~~~~~~~~
Objects/bytesobject.c:313:21: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
313 | i = strlen(p);
| ^~~~~~
Objects/bytesobject.c:204:58: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
204 | s = _PyBytesWriter_WriteBytes(&writer, s, (str), strlen(str)); \
| ^~~~~~~~~~~
Objects/bytesobject.c:338:13: note: in expansion of macro ‘WRITE_BYTES’
338 | WRITE_BYTES(buffer);
| ^~~~~~~~~~~
Objects/bytesobject.c:204:58: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
204 | s = _PyBytesWriter_WriteBytes(&writer, s, (str), strlen(str)); \
| ^~~~~~~~~~~
Objects/bytesobject.c:353:13: note: in expansion of macro ‘WRITE_BYTES’
353 | WRITE_BYTES(p);
| ^~~~~~~~~~~
Objects/bytesobject.c: In function ‘formatfloat’:
Objects/bytesobject.c:422:34: warning: conversion from ‘int’ to ‘char’ may change value [-Wconversion]
422 | p = PyOS_double_to_string(x, type, prec, dtoa_flags, NULL);
| ^~~~
Objects/bytesobject.c:429:51: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
429 | str = _PyBytesWriter_Prepare(writer, str, len);
| ^~~
Objects/bytesobject.c:440:43: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
440 | result = PyBytes_FromStringAndSize(p, len);
| ^~~
Objects/bytesobject.c: In function ‘_PyBytes_FormatEx’:
Objects/bytesobject.c:613:48: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
613 | pos = (char *)memchr(fmt + 1, '%', fmtcnt);
| ^~~~~~
Objects/bytesobject.c:620:30: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
620 | memcpy(res, fmt, len);
| ^~~
Objects/bytesobject.c:957:30: warning: conversion from ‘int’ to ‘char’ may change value [-Wconversion]
957 | *res++ = sign;
| ^~~~
Objects/bytesobject.c:980:41: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
980 | memset(res, fill, width - len);
| ~~~~~~^~~~~
Objects/bytesobject.c:989:30: warning: conversion from ‘int’ to ‘char’ may change value [-Wconversion]
989 | *res++ = sign;
| ^~~~
Objects/bytesobject.c:999:31: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
999 | memcpy(res, pbuf, len);
| ^~~
Objects/bytesobject.c:1004:40: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
1004 | memset(res, ' ', width - len);
| ~~~~~~^~~~~
Objects/bytesobject.c: In function ‘_PyBytes_DecodeEscape’:
Objects/bytesobject.c:1107:20: warning: conversion from ‘int’ to ‘char’ may change value [-Wconversion]
1107 | *p++ = c;
| ^
Objects/bytesobject.c:1115:28: warning: conversion to ‘char’ from ‘unsigned char’ may change the sign of the result [-Wsign-conversion]
1115 | *p++ = (unsigned char)((digit1 << 4) + digit2);
| ^
Objects/bytesobject.c: In function ‘PyBytes_DecodeEscape’:
Objects/bytesobject.c:1173:27: warning: conversion to ‘unsigned char’ from ‘char’ may change the sign of the result [-Wsign-conversion]
1173 | unsigned char c = *first_invalid_escape;
| ^
In file included from Objects/bytesobject.c:1256:
Objects/stringlib/fastsearch.h: In function ‘stringlib_find_char’:
Objects/stringlib/fastsearch.h:58:42: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
58 | p = STRINGLIB_FAST_MEMCHR(s, ch, n);
| ^
Objects/stringlib/fastsearch.h: In function ‘stringlib_rfind_char’:
Objects/stringlib/fastsearch.h:127:28: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
127 | p = memrchr(s, ch, n);
| ^
Objects/stringlib/fastsearch.h: In function ‘stringlib__preprocess’:
Objects/stringlib/fastsearch.h:336:42: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
336 | p->cut * STRINGLIB_SIZEOF_CHAR));
In file included from ./Include/Python.h:53,
from Objects/bytesobject.c:3:
Objects/stringlib/join.h: In function ‘stringlib_bytes_join’:
./Include/pymem.h:65:37: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
65 | ( (type *) PyMem_Malloc((n) * sizeof(type)) ) )
| ^
./Include/pymem.h:82:35: note: in expansion of macro ‘PyMem_New’
82 | #define PyMem_NEW(type, n) PyMem_New(type, (n))
| ^~~~~~~~~
Objects/stringlib/join.h:46:19: note: in expansion of macro ‘PyMem_NEW’
46 | buffers = PyMem_NEW(Py_buffer, seqlen);
| ^~~~~~~~~
In file included from Objects/bytesobject.c:1259:
Objects/stringlib/join.h:127:26: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
127 | memcpy(p, q, n);
| ^
Objects/stringlib/join.h:136:35: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
136 | memcpy(p, sepstr, seplen);
| ^~~~~~
Objects/stringlib/join.h:141:26: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
141 | memcpy(p, q, n);
| ^
In file included from Objects/bytesobject.c:1264:
Objects/stringlib/transmogrify.h: In function ‘pad’:
Objects/stringlib/transmogrify.h:121:44: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
121 | memset(STRINGLIB_STR(u), fill, left);
| ^~~~
In file included from ./Include/bytesobject.h:59,
from ./Include/Python.h:64:
./Include/cpython/bytesobject.h:33:32: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
33 | #define PyBytes_GET_SIZE(self) PyBytes_GET_SIZE(_PyObject_CAST(self))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Objects/stringlib/stringdefs.h:21:34: note: in expansion of macro ‘PyBytes_GET_SIZE’
21 | #define STRINGLIB_LEN PyBytes_GET_SIZE
| ^~~~~~~~~~~~~~~~
Objects/stringlib/transmogrify.h:124:16: note: in expansion of macro ‘STRINGLIB_LEN’
124 | STRINGLIB_LEN(self));
| ^~~~~~~~~~~~~
Objects/stringlib/transmogrify.h:127:26: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
127 | fill, right);
| ^~~~~
Objects/stringlib/transmogrify.h: In function ‘countchar’:
Objects/stringlib/transmogrify.h:264:41: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘long int’ may change the sign of the result [-Wsign-conversion]
264 | while ((start = findchar(start, end - start, c)) != NULL) {
| ~~~~^~~~~~~
Objects/stringlib/transmogrify.h:253:46: note: in definition of macro ‘findchar’
253 | ((char *)memchr((const void *)(target), c, target_len))
| ^~~~~~~~~~
Objects/stringlib/transmogrify.h: In function ‘stringlib_replace_interleave’:
Objects/stringlib/transmogrify.h:319:32: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
319 | memcpy(result_s, to_s, to_len);
| ^~~~~~
Objects/stringlib/transmogrify.h:325:36: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
325 | memcpy(result_s, to_s, to_len);
| ^~~~~~
Objects/stringlib/transmogrify.h:341:39: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
341 | memcpy(result_s, self_s, self_len - i);
| ~~~~~~~~~^~~
Objects/stringlib/transmogrify.h: In function ‘stringlib_replace_delete_single_character’:
Objects/stringlib/transmogrify.h:378:36: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘long int’ may change the sign of the result [-Wsign-conversion]
378 | next = findchar(start, end - start, from_c);
| ~~~~^~~~~~~
Objects/stringlib/transmogrify.h:253:46: note: in definition of macro ‘findchar’
253 | ((char *)memchr((const void *)(target), c, target_len))
| ^~~~~~~~~~
Objects/stringlib/transmogrify.h:381:38: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘long int’ may change the sign of the result [-Wsign-conversion]
381 | memcpy(result_s, start, next - start);
| ~~~~~^~~~~~~
Objects/stringlib/transmogrify.h:385:33: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘long int’ may change the sign of the result [-Wsign-conversion]
385 | memcpy(result_s, start, end - start);
| ~~~~^~~~~~~
Objects/stringlib/transmogrify.h: In function ‘stringlib_replace_delete_substring’:
Objects/stringlib/transmogrify.h:434:38: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘long int’ may change the sign of the result [-Wsign-conversion]
434 | memcpy(result_s, start, next - start);
| ~~~~~^~~~~~~
Objects/stringlib/transmogrify.h:439:33: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘long int’ may change the sign of the result [-Wsign-conversion]
439 | memcpy(result_s, start, end - start);
| ~~~~^~~~~~~
Objects/stringlib/transmogrify.h: In function ‘stringlib_replace_single_character_in_place’:
Objects/stringlib/transmogrify.h:458:29: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
458 | next = findchar(self_s, self_len, from_c);
| ^~~~~~~~
Objects/stringlib/transmogrify.h:253:46: note: in definition of macro ‘findchar’
253 | ((char *)memchr((const void *)(target), c, target_len))
| ^~~~~~~~~~
Objects/stringlib/transmogrify.h:471:30: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
471 | memcpy(result_s, self_s, self_len);
| ^~~~~~~~
Objects/stringlib/transmogrify.h:480:36: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘long int’ may change the sign of the result [-Wsign-conversion]
480 | next = findchar(start, end - start, from_c);
| ~~~~^~~~~~~
Objects/stringlib/transmogrify.h:253:46: note: in definition of macro ‘findchar’
253 | ((char *)memchr((const void *)(target), c, target_len))
| ^~~~~~~~~~
Objects/stringlib/transmogrify.h: In function ‘stringlib_replace_substring_in_place’:
Objects/stringlib/transmogrify.h:521:30: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
521 | memcpy(result_s, self_s, self_len);
| ^~~~~~~~
Objects/stringlib/transmogrify.h:525:25: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
525 | memcpy(start, to_s, from_len);
| ^~~~~~~~
Objects/stringlib/transmogrify.h:535:38: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
535 | memcpy(start + offset, to_s, from_len);
| ^~~~~~~~
Objects/stringlib/transmogrify.h: In function ‘stringlib_replace_single_character’:
Objects/stringlib/transmogrify.h:582:36: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘long int’ may change the sign of the result [-Wsign-conversion]
582 | next = findchar(start, end - start, from_c);
| ~~~~^~~~~~~
Objects/stringlib/transmogrify.h:253:46: note: in definition of macro ‘findchar’
253 | ((char *)memchr((const void *)(target), c, target_len))
| ^~~~~~~~~~
Objects/stringlib/transmogrify.h:588:36: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
588 | memcpy(result_s, to_s, to_len);
| ^~~~~~
Objects/stringlib/transmogrify.h:593:42: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘long int’ may change the sign of the result [-Wsign-conversion]
593 | memcpy(result_s, start, next - start);
| ~~~~~^~~~~~~
Objects/stringlib/transmogrify.h:595:36: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
595 | memcpy(result_s, to_s, to_len);
| ^~~~~~
Objects/stringlib/transmogrify.h:601:33: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘long int’ may change the sign of the result [-Wsign-conversion]
601 | memcpy(result_s, start, end - start);
| ~~~~^~~~~~~
Objects/stringlib/transmogrify.h: In function ‘stringlib_replace_substring’:
Objects/stringlib/transmogrify.h:657:36: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
657 | memcpy(result_s, to_s, to_len);
| ^~~~~~
Objects/stringlib/transmogrify.h:662:42: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘long int’ may change the sign of the result [-Wsign-conversion]
662 | memcpy(result_s, start, next - start);
| ~~~~~^~~~~~~
Objects/stringlib/transmogrify.h:664:36: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
664 | memcpy(result_s, to_s, to_len);
| ^~~~~~
Objects/stringlib/transmogrify.h:670:33: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘long int’ may change the sign of the result [-Wsign-conversion]
670 | memcpy(result_s, start, end - start);
| ~~~~^~~~~~~
Objects/bytesobject.c: In function ‘_PyBytes_Find’:
Objects/bytesobject.c:1287:51: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
1287 | if (memcmp(haystack + last_align, needle, len_needle) == 0) {
| ^~~~~~~~~~
Objects/bytesobject.c: In function ‘PyBytes_Repr’:
Objects/bytesobject.c:1350:27: warning: conversion to ‘unsigned char’ from ‘char’ may change the sign of the result [-Wsign-conversion]
1350 | unsigned char c = op->ob_sval[i];
| ^~
Objects/bytesobject.c:1362:20: warning: conversion to ‘Py_UCS1’ {aka ‘unsigned char’} from ‘char’ may change the sign of the result [-Wsign-conversion]
1362 | *p++ = Py_hexdigits[(c & 0xf0) >> 4];
| ^~~~~~~~~~~~
Objects/bytesobject.c:1363:20: warning: conversion to ‘Py_UCS1’ {aka ‘unsigned char’} from ‘char’ may change the sign of the result [-Wsign-conversion]
1363 | *p++ = Py_hexdigits[c & 0xf];
| ^~~~~~~~~~~~
Objects/bytesobject.c: In function ‘bytes_concat’:
Objects/bytesobject.c:1435:53: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
1435 | memcpy(PyBytes_AS_STRING(result), va.buf, va.len);
| ~~^~~~
Objects/bytesobject.c:1436:62: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
1436 | memcpy(PyBytes_AS_STRING(result) + va.len, vb.buf, vb.len);
| ~~^~~~
Objects/bytesobject.c: In function ‘bytes_compare_eq’:
Objects/bytesobject.c:1518:42: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
1518 | cmp = memcmp(a->ob_sval, b->ob_sval, len);
| ^~~
Objects/bytesobject.c: In function ‘bytes_richcompare’:
Objects/bytesobject.c:1573:52: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
1573 | c = memcmp(a->ob_sval, b->ob_sval, min_len);
| ^~~~~~~
Objects/bytesobject.c: In function ‘bytes_subscript’:
Objects/bytesobject.c:1645:24: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
1645 | for (cur = start, i = 0; i < slicelength;
| ^~~~~
Objects/bytesobject.c:1646:22: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
1646 | cur += step, i++) {
| ^~
Objects/bytesobject.c: In function ‘do_xstrip’:
Objects/bytesobject.c:1910:58: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
1910 | while (i < len && memchr(sep, Py_CHARMASK(s[i]), seplen)) {
| ^~~~~~
Objects/bytesobject.c:1919:59: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
1919 | } while (j >= i && memchr(sep, Py_CHARMASK(s[j]), seplen));
| ^~~~~~
Objects/bytesobject.c: In function ‘bytes_removeprefix_impl’:
Objects/bytesobject.c:2237:45: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
2237 | && memcmp(self_start, prefix_start, prefix_len) == 0)
| ^~~~~~~~~~
Objects/bytesobject.c: In function ‘bytes_removesuffix_impl’:
Objects/bytesobject.c:2275:33: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
2275 | suffix_start, suffix_len) == 0)
| ^~~~~~~~~~
Objects/bytesobject.c: In function ‘_PyBytes_FromHex’:
Objects/bytesobject.c:2432:18: warning: conversion to ‘char’ from ‘unsigned char’ may change the sign of the result [-Wsign-conversion]
2432 | *buf++ = (unsigned char)((top << 4) + bot);
| ^
Objects/bytesobject.c: In function ‘bytes_subtype_new’:
Objects/bytesobject.c:2901:44: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
2901 | PyBytes_AS_STRING(tmp), n+1);
| ~^~
Objects/bytesobject.c: In function ‘PyBytes_Concat’:
Objects/bytesobject.c:3001:60: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
3001 | memcpy(PyBytes_AS_STRING(*pv) + oldsize, wb.buf, wb.len);
| ~~^~~~
Objects/bytesobject.c: In function ‘_PyBytes_Resize’:
Objects/bytesobject.c:3074:48: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
3074 | PyObject_Realloc(v, PyBytesObject_SIZE + newsize);
| ^
Objects/bytesobject.c: In function ‘_PyBytesWriter_Resize’:
Objects/bytesobject.c:3395:23: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
3395 | pos);
| ^~~
Objects/bytesobject.c: In function ‘_PyBytesWriter_WriteBytes’:
Objects/bytesobject.c:3529:24: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
3529 | memcpy(str, bytes, size);
| ^~~~
Objects/bytesobject.c: In function ‘_PyBytes_Repeat’:
Objects/bytesobject.c:3544:30: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
3544 | memset(dest, src[0], len_dest);
| ^~~~~~~~
Objects/bytesobject.c:3548:31: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
3548 | memcpy(dest, src, len_src);
| ^~~~~~~
Objects/bytesobject.c:3553:41: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
3553 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
Objects/bytesobject.c: In function ‘_PyBytes_FromSize.part.0’:
Objects/bytesobject.c:106:20: warning: array subscript 1 is above array bounds of ‘char[1]’ [-Warray-bounds=]
106 | op->ob_sval[size] = '\0';
| ~~~~~~~~~~~^~~~~~
./Include/cpython/bytesobject.h:8:10: note: while referencing ‘ob_sval’
8 | char ob_sval[1];
| ^~~~~~~
In function ‘stringlib_rfind_char’,
inlined from ‘fastsearch’ at Objects/stringlib/fastsearch.h:767:20,
inlined from ‘stringlib_rsplit’ at Objects/stringlib/split.h:308:15,
inlined from ‘bytes_rsplit_impl’ at Objects/bytesobject.c:1830:12,
inlined from ‘bytes_rsplit’ at Objects/clinic/bytesobject.c.h:276:20:
Objects/stringlib/fastsearch.h:127:13: warning: ‘memrchr’ reading between 16 and 9223372036854775807 bytes from a region of size 1 [-Wstringop-overread]
127 | p = memrchr(s, ch, n);
| ^~~~~~~~~~~~~~~~~
./Include/cpython/bytesobject.h: In function ‘bytes_rsplit’:
./Include/cpython/bytesobject.h:8:10: note: source object ‘ob_sval’ of size 1
8 | char ob_sval[1];
| ^~~~~~~
In file included from ./Include/Python.h:39:
/usr/include/string.h:133:14: note: in a call to function ‘memrchr’ declared with attribute ‘access (read_only, 1, 3)’
133 | extern void *memrchr (const void *__s, int __c, size_t __n)
| ^~~~~~~
In function ‘stringlib_rfind_char’,
inlined from ‘fastsearch’ at Objects/stringlib/fastsearch.h:767:20,
inlined from ‘stringlib_rpartition’ at Objects/stringlib/partition.h:87:11,
inlined from ‘bytes_rpartition_impl’ at Objects/bytesobject.c:1797:12,
inlined from ‘bytes_rpartition’ at Objects/clinic/bytesobject.c.h:183:20:
Objects/stringlib/fastsearch.h:127:13: warning: ‘memrchr’ reading between 16 and 9223372036854775807 bytes from a region of size 1 [-Wstringop-overread]
127 | p = memrchr(s, ch, n);
| ^~~~~~~~~~~~~~~~~
./Include/cpython/bytesobject.h: In function ‘bytes_rpartition’:
./Include/cpython/bytesobject.h:8:10: note: source object ‘ob_sval’ of size 1
8 | char ob_sval[1];
| ^~~~~~~
/usr/include/string.h:133:14: note: in a call to function ‘memrchr’ declared with attribute ‘access (read_only, 1, 3)’
133 | extern void *memrchr (const void *__s, int __c, size_t __n)
| ^~~~~~~
In file included from ./Include/tupleobject.h:39,
from ./Include/Python.h:73:
In function ‘PyTuple_SET_ITEM’,
inlined from ‘stringlib_rpartition’ at Objects/stringlib/partition.h:114:5,
inlined from ‘bytes_rpartition_impl’ at Objects/bytesobject.c:1797:12,
inlined from ‘bytes_rpartition’ at Objects/clinic/bytesobject.c.h:183:20:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘bytes_rpartition’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘stringlib_rpartition’ at Objects/stringlib/partition.h:116:5,
inlined from ‘bytes_rpartition_impl’ at Objects/bytesobject.c:1797:12,
inlined from ‘bytes_rpartition’ at Objects/clinic/bytesobject.c.h:183:20:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 2 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘bytes_rpartition’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘stringlib_rpartition’ at Objects/stringlib/partition.h:105:9,
inlined from ‘bytes_rpartition_impl’ at Objects/bytesobject.c:1797:12,
inlined from ‘bytes_rpartition’ at Objects/clinic/bytesobject.c.h:183:20:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘bytes_rpartition’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘stringlib_rpartition’ at Objects/stringlib/partition.h:107:9,
inlined from ‘bytes_rpartition_impl’ at Objects/bytesobject.c:1797:12,
inlined from ‘bytes_rpartition’ at Objects/clinic/bytesobject.c.h:183:20:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 2 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘bytes_rpartition’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘stringlib_partition’ at Objects/stringlib/partition.h:57:5,
inlined from ‘bytes_partition_impl’ at Objects/bytesobject.c:1770:12,
inlined from ‘bytes_partition’ at Objects/clinic/bytesobject.c.h:144:20:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘bytes_partition’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘stringlib_partition’ at Objects/stringlib/partition.h:59:5,
inlined from ‘bytes_partition_impl’ at Objects/bytesobject.c:1770:12,
inlined from ‘bytes_partition’ at Objects/clinic/bytesobject.c.h:144:20:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 2 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘bytes_partition’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘stringlib_partition’ at Objects/stringlib/partition.h:48:9,
inlined from ‘bytes_partition_impl’ at Objects/bytesobject.c:1770:12,
inlined from ‘bytes_partition’ at Objects/clinic/bytesobject.c.h:144:20:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘bytes_partition’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘stringlib_partition’ at Objects/stringlib/partition.h:50:9,
inlined from ‘bytes_partition_impl’ at Objects/bytesobject.c:1770:12,
inlined from ‘bytes_partition’ at Objects/clinic/bytesobject.c.h:144:20:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 2 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘bytes_partition’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘stringlib_zfill_impl’,
inlined from ‘stringlib_zfill’ at Objects/stringlib/clinic/transmogrify.h.h:277:20:
Objects/stringlib/transmogrify.h:243:17: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
243 | p[fill] = '0';
| ~~~~~~~~^~~~~
./Include/cpython/bytesobject.h: In function ‘stringlib_zfill’:
./Include/cpython/bytesobject.h:8:10: note: at offset 1 into destination object ‘ob_sval’ of size 1
8 | char ob_sval[1];
| ^~~~~~~
Objects/bytesobject.c: In function ‘_PyBytes_Resize’:
Objects/bytesobject.c:3086:16: warning: array subscript 1 is above array bounds of ‘char[1]’ [-Warray-bounds=]
3086 | sv->ob_sval[newsize] = '\0';
| ~~~~~~~~~~~^~~~~~~~~
./Include/cpython/bytesobject.h:8:10: note: while referencing ‘ob_sval’
8 | char ob_sval[1];
| ^~~~~~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Objects/call.o Objects/call.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_runtime.h:17,
from ./Include/internal/pycore_pystate.h:11,
from ./Include/internal/pycore_call.h:12,
from Objects/call.c:2:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
In file included from ./Include/internal/pycore_dict.h:13,
from Objects/call.c:4:
./Include/internal/pycore_object.h: In function ‘_PyType_PreHeaderSize’:
./Include/internal/pycore_object.h:453:30: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
453 | return _PyType_IS_GC(tp) * sizeof(PyGC_Head) +
| ^
./Include/internal/pycore_object.h:454:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
454 | _PyType_HasFeature(tp, Py_TPFLAGS_PREHEADER) * 2 * sizeof(PyObject *);
| ^
./Include/internal/pycore_dict.h: In function ‘_PyDict_NotifyEvent’:
./Include/internal/pycore_dict.h:233:42: warning: conversion to ‘uint64_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
233 | return DICT_NEXT_VERSION(interp) | watcher_bits;
| ^
./Include/internal/pycore_dict.h: In function ‘_PyDictValues_AddToInsertionOrder’:
./Include/internal/pycore_dict.h:254:17: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
254 | *size_ptr = size;
| ^~~~
Objects/call.c: In function ‘_PyObject_VectorcallDictTstate’:
Objects/call.c:147:26: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
147 | nargs | PY_VECTORCALL_ARGUMENTS_OFFSET, kwnames);
| ^
Objects/call.c: In function ‘_PyVectorcall_Call’:
Objects/call.c:273:54: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
273 | return func(callable, _PyTuple_ITEMS(tuple), nargs, NULL);
| ^~~~~
Objects/call.c:286:35: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
286 | nargs | PY_VECTORCALL_ARGUMENTS_OFFSET, kwnames);
| ^
Objects/call.c: In function ‘_PyFunction_Vectorcall’:
Objects/call.c:413:55: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
413 | return _PyEval_Vector(tstate, f, NULL, stack, nargs, kwnames);
| ^~~~~
Objects/call.c:416:66: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
416 | return _PyEval_Vector(tstate, f, f->func_globals, stack, nargs, kwnames);
| ^~~~~
Objects/call.c: In function ‘_PyObject_Call_Prepend’:
Objects/call.c:491:45: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
491 | stack = PyMem_Malloc((argcount + 1) * sizeof(PyObject *));
| ^
Objects/call.c:502:21: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
502 | argcount * sizeof(PyObject *));
| ^
Objects/call.c:505:71: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
505 | stack, argcount + 1,
| ~~~~~~~~~^~~
In file included from ./Include/tupleobject.h:39,
from ./Include/Python.h:73,
from Objects/call.c:1:
Objects/call.c: In function ‘_PyObject_CallFunctionVa’:
./Include/cpython/tupleobject.h:25:30: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
25 | #define PyTuple_GET_SIZE(op) PyTuple_GET_SIZE(_PyObject_CAST(op))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Objects/call.c:548:45: note: in expansion of macro ‘PyTuple_GET_SIZE’
548 | PyTuple_GET_SIZE(args),
| ^~~~~~~~~~~~~~~~
Objects/call.c:553:52: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
553 | stack, nargs, NULL);
| ^~~~~
Objects/call.c: In function ‘object_vacall’:
Objects/call.c:797:36: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
797 | stack = PyMem_Malloc(nargs * sizeof(stack[0]));
| ^
Objects/call.c:819:66: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
819 | result = _PyObject_VectorcallTstate(tstate, callable, stack, nargs, NULL);
| ^~~~~
Objects/call.c: In function ‘_PyStack_UnpackDict’:
Objects/call.c:979:59: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
979 | PyObject **stack = PyMem_Malloc((1 + nargs + nkwargs) * sizeof(args[0]));
| ^
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Objects/capsule.o Objects/capsule.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_runtime.h:17,
from ./Include/internal/pycore_emscripten_trampoline.h:4,
from ./Include/internal/pycore_object.h:13,
from Objects/capsule.c:6:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
./Include/internal/pycore_object.h: In function ‘_PyType_PreHeaderSize’:
./Include/internal/pycore_object.h:453:30: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
453 | return _PyType_IS_GC(tp) * sizeof(PyGC_Head) +
| ^
./Include/internal/pycore_object.h:454:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
454 | _PyType_HasFeature(tp, Py_TPFLAGS_PREHEADER) * 2 * sizeof(PyObject *);
| ^
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Objects/cellobject.o Objects/cellobject.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_runtime.h:17,
from ./Include/internal/pycore_emscripten_trampoline.h:4,
from ./Include/internal/pycore_object.h:13,
from Objects/cellobject.c:5:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
./Include/internal/pycore_object.h: In function ‘_PyType_PreHeaderSize’:
./Include/internal/pycore_object.h:453:30: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
453 | return _PyType_IS_GC(tp) * sizeof(PyGC_Head) +
| ^
./Include/internal/pycore_object.h:454:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
454 | _PyType_HasFeature(tp, Py_TPFLAGS_PREHEADER) * 2 * sizeof(PyObject *);
| ^
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Objects/classobject.o Objects/classobject.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_runtime.h:17,
from ./Include/internal/pycore_pystate.h:11,
from ./Include/internal/pycore_call.h:12,
from Objects/classobject.c:4:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
In file included from Objects/classobject.c:6:
./Include/internal/pycore_object.h: In function ‘_PyType_PreHeaderSize’:
./Include/internal/pycore_object.h:453:30: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
453 | return _PyType_IS_GC(tp) * sizeof(PyGC_Head) +
| ^
./Include/internal/pycore_object.h:454:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
454 | _PyType_HasFeature(tp, Py_TPFLAGS_PREHEADER) * 2 * sizeof(PyObject *);
| ^
Objects/classobject.c: In function ‘method_vectorcall’:
Objects/classobject.c:63:45: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
63 | nargs, kwnames);
| ^~~~~
Objects/classobject.c:79:50: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
79 | newargs = PyMem_Malloc((totalargs+1) * sizeof(PyObject *));
| ^
Objects/classobject.c:91:45: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
91 | memcpy(newargs + 1, args, totalargs * sizeof(PyObject *));
| ^
Objects/classobject.c:93:59: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
93 | newargs, nargs+1, kwnames);
| ~~~~~^~
In file included from ./Include/tupleobject.h:39,
from ./Include/Python.h:73,
from Objects/classobject.c:3:
Objects/clinic/classobject.c.h: In function ‘method_new’:
./Include/cpython/tupleobject.h:27:64: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
27 | #define PyTuple_GET_ITEM(op, index) (_PyTuple_CAST(op)->ob_item[(index)])
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
Objects/clinic/classobject.c.h:49:16: note: in expansion of macro ‘PyTuple_GET_ITEM’
49 | instance = PyTuple_GET_ITEM(args, 1);
| ^~~~~~~~~~~~~~~~
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Objects/codeobject.o Objects/codeobject.c
In file included from Objects/codeobject.c:6:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29,
from Objects/codeobject.c:8:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
Objects/codeobject.c: In function ‘PyCode_ClearWatcher’:
Objects/codeobject.c:94:37: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
94 | interp->active_code_watchers &= ~(1 << watcher_id);
| ^
Objects/codeobject.c: In function ‘_PyCode_Validate’:
Objects/codeobject.c:350:37: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
350 | if (PyBytes_GET_SIZE(con->code) % sizeof(_Py_CODEUNIT) != 0 ||
| ^
In file included from ./Include/bytesobject.h:59,
from ./Include/Python.h:64,
from Objects/codeobject.c:3:
Objects/codeobject.c: In function ‘init_code’:
./Include/cpython/bytesobject.h:33:32: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
33 | #define PyBytes_GET_SIZE(self) PyBytes_GET_SIZE(_PyObject_CAST(self))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Objects/codeobject.c:431:12: note: in expansion of macro ‘PyBytes_GET_SIZE’
431 | PyBytes_GET_SIZE(con->code));
| ^~~~~~~~~~~~~~~~
Objects/codeobject.c: In function ‘scan_varint’:
Objects/codeobject.c:453:12: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
453 | return val;
| ^~~
Objects/codeobject.c: In function ‘scan_signed_varint’:
Objects/codeobject.c:459:25: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
459 | unsigned int uval = scan_varint(ptr);
| ^~~~~~~~~~~
Objects/codeobject.c:464:21: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
464 | return uval >> 1;
| ~~~~~^~~~
Objects/codeobject.c: In function ‘_PyCode_New’:
Objects/codeobject.c:559:51: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
559 | Py_ssize_t size = PyBytes_GET_SIZE(con->code) / sizeof(_Py_CODEUNIT);
| ^
./Include/cpython/bytesobject.h:33:32: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘long unsigned int’ may change the sign of the result [-Wsign-conversion]
33 | #define PyBytes_GET_SIZE(self) PyBytes_GET_SIZE(_PyObject_CAST(self))
| ^~~~~~~~~~~~~~~~
Objects/codeobject.c:559:23: note: in expansion of macro ‘PyBytes_GET_SIZE’
559 | Py_ssize_t size = PyBytes_GET_SIZE(con->code) / sizeof(_Py_CODEUNIT);
| ^~~~~~~~~~~~~~~~
Objects/codeobject.c: In function ‘PyUnstable_Code_NewWithPosOnlyArgs’:
Objects/codeobject.c:651:46: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
651 | Py_ssize_t num_code_units = code_len / sizeof(_Py_CODEUNIT);
| ^
Objects/codeobject.c:651:37: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘long unsigned int’ may change the sign of the result [-Wsign-conversion]
651 | Py_ssize_t num_code_units = code_len / sizeof(_Py_CODEUNIT);
| ^~~~~~~~
Objects/codeobject.c: In function ‘read_varint’:
Objects/codeobject.c:921:25: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
921 | unsigned int read = read_byte(bounds);
| ^~~~~~~~~
Objects/codeobject.c:925:16: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
925 | read = read_byte(bounds);
| ^~~~~~~~~
Objects/codeobject.c:929:12: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
929 | return val;
| ^~~
Objects/codeobject.c: In function ‘read_signed_varint’:
Objects/codeobject.c:935:25: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
935 | unsigned int uval = read_varint(bounds);
| ^~~~~~~~~~~
Objects/codeobject.c:940:21: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
940 | return uval >> 1;
| ~~~~~^~~~
Objects/codeobject.c: In function ‘advance_with_locations’:
Objects/codeobject.c:991:39: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
991 | bounds->ar_end = bounds->ar_start + ((first_byte & 7) + 1) * sizeof(_Py_CODEUNIT);
| ^
Objects/codeobject.c:991:22: warning: conversion from ‘long unsigned int’ to ‘int’ may change value [-Wconversion]
991 | bounds->ar_end = bounds->ar_start + ((first_byte & 7) + 1) * sizeof(_Py_CODEUNIT);
| ^~~~~~
Objects/codeobject.c: In function ‘emit_pair’:
Objects/codeobject.c:1096:17: warning: conversion from ‘int’ to ‘unsigned char’ may change value [-Wconversion]
1096 | *lnotab++ = a;
| ^
Objects/codeobject.c:1097:17: warning: conversion from ‘int’ to ‘unsigned char’ may change value [-Wconversion]
1097 | *lnotab++ = b;
| ^
Objects/codeobject.c: In function ‘PyUnstable_Code_SetExtra’:
Objects/codeobject.c:1399:49: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
1399 | (interp->co_extra_user_count-1) * sizeof(void*));
| ^
Objects/codeobject.c: In function ‘deopt_code’:
Objects/codeobject.c:1529:35: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
1529 | instructions[i].op.code = opcode;
| ^~~~~~
Objects/codeobject.c: In function ‘code_richcompare’:
Objects/codeobject.c:1817:27: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
1817 | uint8_t co_code = _Py_GetBaseOpcode(co, i);
| ^~~~~~~~~~~~~~~~~
Objects/codeobject.c:1819:27: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
1819 | uint8_t cp_code = _Py_GetBaseOpcode(cp, i);
| ^~~~~~~~~~~~~~~~~
Objects/codeobject.c: In function ‘code_hash’:
Objects/codeobject.c:1931:23: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
1931 | co_code = _Py_GetBaseOpcode(co, i);
| ^~~~~~~~~~~~~~~~~
In function ‘emit_pair’,
inlined from ‘emit_delta’ at Objects/codeobject.c:1119:14,
inlined from ‘decode_linetable’ at Objects/codeobject.c:1145:18,
inlined from ‘code_getlnotab’ at Objects/codeobject.c:1973:12:
Objects/codeobject.c:1097:15: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
1097 | *lnotab++ = b;
| ~~~~~~~~~~^~~
./Include/cpython/bytesobject.h: In function ‘code_getlnotab’:
./Include/cpython/bytesobject.h:8:10: note: at offset 1 into destination object ‘ob_sval’ of size 1
8 | char ob_sval[1];
| ^~~~~~~
In function ‘emit_pair’,
inlined from ‘emit_delta’ at Objects/codeobject.c:1112:14,
inlined from ‘decode_linetable’ at Objects/codeobject.c:1145:18,
inlined from ‘code_getlnotab’ at Objects/codeobject.c:1973:12:
Objects/codeobject.c:1097:15: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
1097 | *lnotab++ = b;
| ~~~~~~~~~~^~~
./Include/cpython/bytesobject.h: In function ‘code_getlnotab’:
./Include/cpython/bytesobject.h:8:10: note: at offset 1 into destination object ‘ob_sval’ of size 1
8 | char ob_sval[1];
| ^~~~~~~
In function ‘emit_pair’,
inlined from ‘emit_delta’ at Objects/codeobject.c:1125:12,
inlined from ‘decode_linetable’ at Objects/codeobject.c:1145:18,
inlined from ‘code_getlnotab’ at Objects/codeobject.c:1973:12:
Objects/codeobject.c:1097:15: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
1097 | *lnotab++ = b;
| ~~~~~~~~~~^~~
./Include/cpython/bytesobject.h: In function ‘code_getlnotab’:
./Include/cpython/bytesobject.h:8:10: note: at offset 1 into destination object ‘ob_sval’ of size 1
8 | char ob_sval[1];
| ^~~~~~~
In file included from Objects/codeobject.c:14:
Objects/clinic/codeobject.c.h: In function ‘code_new’:
Objects/clinic/codeobject.c.h:64:23: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
64 | posonlyargcount = PyLong_AsInt(PyTuple_GET_ITEM(args, 1));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./Include/tupleobject.h:39,
from ./Include/Python.h:73:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
Objects/clinic/codeobject.c.h:68:22: warning: array subscript 2 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
68 | kwonlyargcount = PyLong_AsInt(PyTuple_GET_ITEM(args, 2));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
Objects/clinic/codeobject.c.h:72:15: warning: array subscript 3 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
72 | nlocals = PyLong_AsInt(PyTuple_GET_ITEM(args, 3));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
Objects/clinic/codeobject.c.h:76:17: warning: array subscript 4 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
76 | stacksize = PyLong_AsInt(PyTuple_GET_ITEM(args, 4));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
Objects/clinic/codeobject.c.h:80:13: warning: array subscript 5 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
80 | flags = PyLong_AsInt(PyTuple_GET_ITEM(args, 5));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In file included from ./Include/Python.h:58:
./Include/object.h:1150:41: warning: array subscript 6 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
1150 | #define PyType_FastSubclass(type, flag) PyType_HasFeature((type), (flag))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/bytesobject.h:28:18: note: in expansion of macro ‘PyType_FastSubclass’
28 | PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_BYTES_SUBCLASS)
| ^~~~~~~~~~~~~~~~~~~
Objects/clinic/codeobject.c.h:84:10: note: in expansion of macro ‘PyBytes_Check’
84 | if (!PyBytes_Check(PyTuple_GET_ITEM(args, 6))) {
| ^~~~~~~~~~~~~
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
./Include/object.h:1150:41: warning: array subscript 7 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
1150 | #define PyType_FastSubclass(type, flag) PyType_HasFeature((type), (flag))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/tupleobject.h:27:18: note: in expansion of macro ‘PyType_FastSubclass’
27 | PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_TUPLE_SUBCLASS)
| ^~~~~~~~~~~~~~~~~~~
Objects/clinic/codeobject.c.h:89:10: note: in expansion of macro ‘PyTuple_Check’
89 | if (!PyTuple_Check(PyTuple_GET_ITEM(args, 7))) {
| ^~~~~~~~~~~~~
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
./Include/object.h:1150:41: warning: array subscript 8 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
1150 | #define PyType_FastSubclass(type, flag) PyType_HasFeature((type), (flag))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/tupleobject.h:27:18: note: in expansion of macro ‘PyType_FastSubclass’
27 | PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_TUPLE_SUBCLASS)
| ^~~~~~~~~~~~~~~~~~~
Objects/clinic/codeobject.c.h:94:10: note: in expansion of macro ‘PyTuple_Check’
94 | if (!PyTuple_Check(PyTuple_GET_ITEM(args, 8))) {
| ^~~~~~~~~~~~~
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
./Include/object.h:1150:41: warning: array subscript 9 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
1150 | #define PyType_FastSubclass(type, flag) PyType_HasFeature((type), (flag))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/tupleobject.h:27:18: note: in expansion of macro ‘PyType_FastSubclass’
27 | PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_TUPLE_SUBCLASS)
| ^~~~~~~~~~~~~~~~~~~
Objects/clinic/codeobject.c.h:99:10: note: in expansion of macro ‘PyTuple_Check’
99 | if (!PyTuple_Check(PyTuple_GET_ITEM(args, 9))) {
| ^~~~~~~~~~~~~
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
./Include/object.h:1150:41: warning: array subscript 10 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
1150 | #define PyType_FastSubclass(type, flag) PyType_HasFeature((type), (flag))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/unicodeobject.h:107:5: note: in expansion of macro ‘PyType_FastSubclass’
107 | PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_UNICODE_SUBCLASS)
| ^~~~~~~~~~~~~~~~~~~
Objects/clinic/codeobject.c.h:104:10: note: in expansion of macro ‘PyUnicode_Check’
104 | if (!PyUnicode_Check(PyTuple_GET_ITEM(args, 10))) {
| ^~~~~~~~~~~~~~~
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
./Include/object.h:1150:41: warning: array subscript 11 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
1150 | #define PyType_FastSubclass(type, flag) PyType_HasFeature((type), (flag))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/unicodeobject.h:107:5: note: in expansion of macro ‘PyType_FastSubclass’
107 | PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_UNICODE_SUBCLASS)
| ^~~~~~~~~~~~~~~~~~~
Objects/clinic/codeobject.c.h:109:10: note: in expansion of macro ‘PyUnicode_Check’
109 | if (!PyUnicode_Check(PyTuple_GET_ITEM(args, 11))) {
| ^~~~~~~~~~~~~~~
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
./Include/object.h:1150:41: warning: array subscript 12 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
1150 | #define PyType_FastSubclass(type, flag) PyType_HasFeature((type), (flag))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/unicodeobject.h:107:5: note: in expansion of macro ‘PyType_FastSubclass’
107 | PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_UNICODE_SUBCLASS)
| ^~~~~~~~~~~~~~~~~~~
Objects/clinic/codeobject.c.h:114:10: note: in expansion of macro ‘PyUnicode_Check’
114 | if (!PyUnicode_Check(PyTuple_GET_ITEM(args, 12))) {
| ^~~~~~~~~~~~~~~
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
Objects/clinic/codeobject.c.h:119:19: warning: array subscript 13 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
119 | firstlineno = PyLong_AsInt(PyTuple_GET_ITEM(args, 13));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
./Include/object.h:1150:41: warning: array subscript 14 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
1150 | #define PyType_FastSubclass(type, flag) PyType_HasFeature((type), (flag))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/bytesobject.h:28:18: note: in expansion of macro ‘PyType_FastSubclass’
28 | PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_BYTES_SUBCLASS)
| ^~~~~~~~~~~~~~~~~~~
Objects/clinic/codeobject.c.h:123:10: note: in expansion of macro ‘PyBytes_Check’
123 | if (!PyBytes_Check(PyTuple_GET_ITEM(args, 14))) {
| ^~~~~~~~~~~~~
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
./Include/object.h:1150:41: warning: array subscript 15 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
1150 | #define PyType_FastSubclass(type, flag) PyType_HasFeature((type), (flag))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/bytesobject.h:28:18: note: in expansion of macro ‘PyType_FastSubclass’
28 | PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_BYTES_SUBCLASS)
| ^~~~~~~~~~~~~~~~~~~
Objects/clinic/codeobject.c.h:128:10: note: in expansion of macro ‘PyBytes_Check’
128 | if (!PyBytes_Check(PyTuple_GET_ITEM(args, 15))) {
| ^~~~~~~~~~~~~
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
./Include/object.h:1150:41: warning: array subscript 16 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
1150 | #define PyType_FastSubclass(type, flag) PyType_HasFeature((type), (flag))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/tupleobject.h:27:18: note: in expansion of macro ‘PyType_FastSubclass’
27 | PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_TUPLE_SUBCLASS)
| ^~~~~~~~~~~~~~~~~~~
Objects/clinic/codeobject.c.h:136:10: note: in expansion of macro ‘PyTuple_Check’
136 | if (!PyTuple_Check(PyTuple_GET_ITEM(args, 16))) {
| ^~~~~~~~~~~~~
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
./Include/object.h:1150:41: warning: array subscript 17 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
1150 | #define PyType_FastSubclass(type, flag) PyType_HasFeature((type), (flag))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/tupleobject.h:27:18: note: in expansion of macro ‘PyType_FastSubclass’
27 | PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_TUPLE_SUBCLASS)
| ^~~~~~~~~~~~~~~~~~~
Objects/clinic/codeobject.c.h:144:10: note: in expansion of macro ‘PyTuple_Check’
144 | if (!PyTuple_Check(PyTuple_GET_ITEM(args, 17))) {
| ^~~~~~~~~~~~~
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Objects/complexobject.o Objects/complexobject.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_runtime.h:17,
from ./Include/internal/pycore_pystate.h:11,
from ./Include/internal/pycore_call.h:12,
from Objects/complexobject.c:9:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
In file included from Objects/complexobject.c:11:
./Include/internal/pycore_long.h: In function ‘_PyLong_DigitCount’:
./Include/internal/pycore_long.h:238:34: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘uintptr_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
238 | return op->long_value.lv_tag >> NON_SIZE_BITS;
| ^
./Include/internal/pycore_long.h: In function ‘_PyLong_SetSignAndDigitCount’:
./Include/internal/pycore_long.h:273:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
273 | #define TAG_FROM_SIGN_AND_SIZE(sign, size) ((1 - (sign)) | ((size) << NON_SIZE_BITS))
| ^
./Include/internal/pycore_long.h:281:29: note: in expansion of macro ‘TAG_FROM_SIGN_AND_SIZE’
281 | op->long_value.lv_tag = TAG_FROM_SIGN_AND_SIZE(sign, (size_t)size);
| ^~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_long.h: In function ‘_PyLong_FlipSign’:
./Include/internal/pycore_long.h:296:27: warning: unsigned conversion from ‘int’ to ‘uintptr_t’ {aka ‘long unsigned int’} changes value from ‘-8’ to ‘18446744073709551608’ [-Wsign-conversion]
296 | op->long_value.lv_tag &= NON_SIZE_MASK;
| ^~
In file included from Objects/complexobject.c:12:
./Include/internal/pycore_object.h: In function ‘_PyType_PreHeaderSize’:
./Include/internal/pycore_object.h:453:30: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
453 | return _PyType_IS_GC(tp) * sizeof(PyGC_Head) +
| ^
./Include/internal/pycore_object.h:454:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
454 | _PyType_HasFeature(tp, Py_TPFLAGS_PREHEADER) * 2 * sizeof(PyObject *);
| ^
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Objects/descrobject.o Objects/descrobject.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_runtime.h:17,
from ./Include/internal/pycore_pystate.h:11,
from ./Include/internal/pycore_call.h:12,
from Objects/descrobject.c:5:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
In file included from Objects/descrobject.c:10:
./Include/internal/pycore_object.h: In function ‘_PyType_PreHeaderSize’:
./Include/internal/pycore_object.h:453:30: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
453 | return _PyType_IS_GC(tp) * sizeof(PyGC_Head) +
| ^
./Include/internal/pycore_object.h:454:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
454 | _PyType_HasFeature(tp, Py_TPFLAGS_PREHEADER) * 2 * sizeof(PyObject *);
| ^
Objects/descrobject.c: In function ‘method_vectorcall_FASTCALL_KEYWORDS_METHOD’:
Objects/descrobject.c:374:42: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
374 | args+1, nargs-1, kwnames);
| ~~~~~^~
Objects/descrobject.c: In function ‘classmethoddescr_call’:
Objects/descrobject.c:500:48: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
500 | argc-1, kwds);
| ~~~~^~
In file included from ./Include/tupleobject.h:39,
from ./Include/Python.h:73,
from Objects/descrobject.c:3:
Objects/descrobject.c: In function ‘property_set_name’:
./Include/cpython/tupleobject.h:27:64: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
27 | #define PyTuple_GET_ITEM(op, index) (_PyTuple_CAST(op)->ob_item[(index)])
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
Objects/descrobject.c:1560:22: note: in expansion of macro ‘PyTuple_GET_ITEM’
1560 | PyObject *name = PyTuple_GET_ITEM(args, 1);
| ^~~~~~~~~~~~~~~~
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Objects/enumobject.o Objects/enumobject.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_runtime.h:17,
from ./Include/internal/pycore_pystate.h:11,
from ./Include/internal/pycore_call.h:12,
from Objects/enumobject.c:4:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
In file included from Objects/enumobject.c:5:
./Include/internal/pycore_long.h: In function ‘_PyLong_DigitCount’:
./Include/internal/pycore_long.h:238:34: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘uintptr_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
238 | return op->long_value.lv_tag >> NON_SIZE_BITS;
| ^
./Include/internal/pycore_long.h: In function ‘_PyLong_SetSignAndDigitCount’:
./Include/internal/pycore_long.h:273:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
273 | #define TAG_FROM_SIGN_AND_SIZE(sign, size) ((1 - (sign)) | ((size) << NON_SIZE_BITS))
| ^
./Include/internal/pycore_long.h:281:29: note: in expansion of macro ‘TAG_FROM_SIGN_AND_SIZE’
281 | op->long_value.lv_tag = TAG_FROM_SIGN_AND_SIZE(sign, (size_t)size);
| ^~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_long.h: In function ‘_PyLong_FlipSign’:
./Include/internal/pycore_long.h:296:27: warning: unsigned conversion from ‘int’ to ‘uintptr_t’ {aka ‘long unsigned int’} changes value from ‘-8’ to ‘18446744073709551608’ [-Wsign-conversion]
296 | op->long_value.lv_tag &= NON_SIZE_MASK;
| ^~
In file included from Objects/enumobject.c:7:
./Include/internal/pycore_object.h: In function ‘_PyType_PreHeaderSize’:
./Include/internal/pycore_object.h:453:30: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
453 | return _PyType_IS_GC(tp) * sizeof(PyGC_Head) +
| ^
./Include/internal/pycore_object.h:454:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
454 | _PyType_HasFeature(tp, Py_TPFLAGS_PREHEADER) * 2 * sizeof(PyObject *);
| ^
In file included from ./Include/tupleobject.h:39,
from ./Include/Python.h:73,
from Objects/enumobject.c:3:
In function ‘PyTuple_SET_ITEM’,
inlined from ‘enum_next’ at Objects/enumobject.c:268:5:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘enum_next’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
./Include/cpython/tupleobject.h:27:64: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
27 | #define PyTuple_GET_ITEM(op, index) (_PyTuple_CAST(op)->ob_item[(index)])
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
Objects/enumobject.c:249:20: note: in expansion of macro ‘PyTuple_GET_ITEM’
249 | old_item = PyTuple_GET_ITEM(result, 1);
| ^~~~~~~~~~~~~~~~
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘enum_next’ at Objects/enumobject.c:251:9:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘enum_next’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘enum_next_long’ at Objects/enumobject.c:218:5,
inlined from ‘enum_next’ at Objects/enumobject.c:237:16:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘enum_next’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘enum_next_long’,
inlined from ‘enum_next’ at Objects/enumobject.c:237:16:
./Include/cpython/tupleobject.h:27:64: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
27 | #define PyTuple_GET_ITEM(op, index) (_PyTuple_CAST(op)->ob_item[(index)])
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
Objects/enumobject.c:199:20: note: in expansion of macro ‘PyTuple_GET_ITEM’
199 | old_item = PyTuple_GET_ITEM(result, 1);
| ^~~~~~~~~~~~~~~~
./Include/cpython/tupleobject.h: In function ‘enum_next’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘enum_next_long’ at Objects/enumobject.c:201:9,
inlined from ‘enum_next’ at Objects/enumobject.c:237:16:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘enum_next’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘check_keyword’,
inlined from ‘enumerate_vectorcall’ at Objects/enumobject.c:126:18:
./Include/cpython/tupleobject.h:27:64: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
27 | #define PyTuple_GET_ITEM(op, index) (_PyTuple_CAST(op)->ob_item[(index)])
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
Objects/enumobject.c:90:20: note: in expansion of macro ‘PyTuple_GET_ITEM’
90 | PyObject *kw = PyTuple_GET_ITEM(kwnames, index);
| ^~~~~~~~~~~~~~~~
./Include/cpython/tupleobject.h: In function ‘enumerate_vectorcall’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘check_keyword’,
inlined from ‘enumerate_vectorcall’ at Objects/enumobject.c:120:22:
./Include/cpython/tupleobject.h:27:64: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
27 | #define PyTuple_GET_ITEM(op, index) (_PyTuple_CAST(op)->ob_item[(index)])
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
Objects/enumobject.c:90:20: note: in expansion of macro ‘PyTuple_GET_ITEM’
90 | PyObject *kw = PyTuple_GET_ITEM(kwnames, index);
| ^~~~~~~~~~~~~~~~
./Include/cpython/tupleobject.h: In function ‘enumerate_vectorcall’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Objects/exceptions.o Objects/exceptions.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_ceval.h:13,
from Objects/exceptions.c:10:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
In file included from Objects/exceptions.c:14:
./Include/internal/pycore_object.h: In function ‘_PyType_PreHeaderSize’:
./Include/internal/pycore_object.h:453:30: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
453 | return _PyType_IS_GC(tp) * sizeof(PyGC_Head) +
| ^
./Include/internal/pycore_object.h:454:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
454 | _PyType_HasFeature(tp, Py_TPFLAGS_PREHEADER) * 2 * sizeof(PyObject *);
| ^
In file included from ./Include/tupleobject.h:39,
from ./Include/Python.h:73,
from Objects/exceptions.c:7:
Objects/exceptions.c: In function ‘OSError_reduce’:
./Include/cpython/tupleobject.h:38:5: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
38 | PyTuple_SET_ITEM(_PyObject_CAST(op), (index), _PyObject_CAST(value))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Objects/exceptions.c:2038:9: note: in expansion of macro ‘PyTuple_SET_ITEM’
2038 | PyTuple_SET_ITEM(args, 1, Py_NewRef(PyTuple_GET_ITEM(self->args, 1)));
| ^~~~~~~~~~~~~~~~
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘OSError_reduce’ at Objects/exceptions.c:2038:9:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘OSError_reduce’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘OSError_reduce’ at Objects/exceptions.c:2039:9:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 2 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘OSError_reduce’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘OSError_reduce’ at Objects/exceptions.c:2047:13:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 3 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘OSError_reduce’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘OSError_reduce’ at Objects/exceptions.c:2050:13:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 4 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘OSError_reduce’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
Objects/exceptions.c: In function ‘SyntaxError_init’:
./Include/cpython/tupleobject.h:27:64: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
27 | #define PyTuple_GET_ITEM(op, index) (_PyTuple_CAST(op)->ob_item[(index)])
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
Objects/exceptions.c:2391:16: note: in expansion of macro ‘PyTuple_GET_ITEM’
2391 | info = PyTuple_GET_ITEM(args, 1);
| ^~~~~~~~~~~~~~~~
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Objects/genericaliasobject.o Objects/genericaliasobject.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_ceval.h:13,
from Objects/genericaliasobject.c:4:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
In file included from Objects/genericaliasobject.c:6:
./Include/internal/pycore_object.h: In function ‘_PyType_PreHeaderSize’:
./Include/internal/pycore_object.h:453:30: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
453 | return _PyType_IS_GC(tp) * sizeof(PyGC_Head) +
| ^
./Include/internal/pycore_object.h:454:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
454 | _PyType_HasFeature(tp, Py_TPFLAGS_PREHEADER) * 2 * sizeof(PyObject *);
| ^
In file included from ./Include/tupleobject.h:39,
from ./Include/Python.h:73,
from Objects/genericaliasobject.c:3:
Objects/genericaliasobject.c: In function ‘ga_new’:
./Include/cpython/tupleobject.h:27:64: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
27 | #define PyTuple_GET_ITEM(op, index) (_PyTuple_CAST(op)->ob_item[(index)])
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
Objects/genericaliasobject.c:856:27: note: in expansion of macro ‘PyTuple_GET_ITEM’
856 | PyObject *arguments = PyTuple_GET_ITEM(args, 1);
| ^~~~~~~~~~~~~~~~
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Objects/genobject.o Objects/genobject.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_runtime.h:17,
from ./Include/internal/pycore_pystate.h:11,
from ./Include/internal/pycore_call.h:12,
from Objects/genobject.c:6:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
In file included from Objects/genobject.c:11:
./Include/internal/pycore_object.h: In function ‘_PyType_PreHeaderSize’:
./Include/internal/pycore_object.h:453:30: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
453 | return _PyType_IS_GC(tp) * sizeof(PyGC_Head) +
| ^
./Include/internal/pycore_object.h:454:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
454 | _PyType_HasFeature(tp, Py_TPFLAGS_PREHEADER) * 2 * sizeof(PyObject *);
| ^
Objects/genobject.c: In function ‘gen_sizeof’:
Objects/genobject.c:786:49: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
786 | res += _PyFrame_NumSlotsForCodeObject(code) * sizeof(PyObject *);
| ^
Objects/genobject.c:786:9: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
786 | res += _PyFrame_NumSlotsForCodeObject(code) * sizeof(PyObject *);
| ^~
Objects/genobject.c:786:12: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘long unsigned int’ may change the sign of the result [-Wsign-conversion]
786 | res += _PyFrame_NumSlotsForCodeObject(code) * sizeof(PyObject *);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Objects/fileobject.o Objects/fileobject.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_runtime.h:17,
from ./Include/internal/pycore_pystate.h:11,
from ./Include/internal/pycore_call.h:12,
from Objects/fileobject.c:4:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
Objects/fileobject.c: In function ‘_Py_UniversalNewlineFgetsWithSize’:
Objects/fileobject.c:247:16: warning: conversion from ‘int’ to ‘char’ may change value [-Wconversion]
247 | *p++ = c;
| ^
Objects/fileobject.c:257:13: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘long int’ may change the sign of the result [-Wsign-conversion]
257 | *size = p - buf;
| ^
Objects/fileobject.c: In function ‘stdprinter_write’:
Objects/fileobject.c:339:34: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
339 | n = _Py_write(self->fd, str, n);
| ^
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Objects/floatobject.o Objects/floatobject.c
In file included from ./Include/internal/pycore_interp.h:16,
from Objects/floatobject.c:11:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
In file included from Objects/floatobject.c:12:
./Include/internal/pycore_long.h: In function ‘_PyLong_DigitCount’:
./Include/internal/pycore_long.h:238:34: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘uintptr_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
238 | return op->long_value.lv_tag >> NON_SIZE_BITS;
| ^
./Include/internal/pycore_long.h: In function ‘_PyLong_SetSignAndDigitCount’:
./Include/internal/pycore_long.h:273:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
273 | #define TAG_FROM_SIGN_AND_SIZE(sign, size) ((1 - (sign)) | ((size) << NON_SIZE_BITS))
| ^
./Include/internal/pycore_long.h:281:29: note: in expansion of macro ‘TAG_FROM_SIGN_AND_SIZE’
281 | op->long_value.lv_tag = TAG_FROM_SIGN_AND_SIZE(sign, (size_t)size);
| ^~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_long.h: In function ‘_PyLong_FlipSign’:
./Include/internal/pycore_long.h:296:27: warning: unsigned conversion from ‘int’ to ‘uintptr_t’ {aka ‘long unsigned int’} changes value from ‘-8’ to ‘18446744073709551608’ [-Wsign-conversion]
296 | op->long_value.lv_tag &= NON_SIZE_MASK;
| ^~
In file included from Objects/floatobject.c:14:
./Include/internal/pycore_object.h: In function ‘_PyType_PreHeaderSize’:
./Include/internal/pycore_object.h:453:30: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
453 | return _PyType_IS_GC(tp) * sizeof(PyGC_Head) +
| ^
./Include/internal/pycore_object.h:454:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
454 | _PyType_HasFeature(tp, Py_TPFLAGS_PREHEADER) * 2 * sizeof(PyObject *);
| ^
Objects/floatobject.c: In function ‘float_repr’:
Objects/floatobject.c:393:40: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
393 | result = _PyUnicode_FromASCII(buf, strlen(buf));
| ^~~~~~~~~~~
In file included from ./Include/internal/pycore_dtoa.h:11,
from Objects/floatobject.c:8:
Objects/floatobject.c: In function ‘double_round’:
./Include/internal/pycore_pymath.h:98:30: warning: unsigned conversion from ‘int’ to ‘short unsigned int’ changes the value of ‘-3841’ [-Wsign-conversion]
98 | new_387controlword = (old_387controlword & ~0x0f00) | 0x0200; \
| ^
Objects/floatobject.c:968:5: note: in expansion of macro ‘_Py_SET_53BIT_PRECISION_START’
968 | _Py_SET_53BIT_PRECISION_START;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Objects/floatobject.c:981:38: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
981 | mybuf = (char *)PyMem_Malloc(mybuflen);
| ^~~~~~~~
Objects/floatobject.c:988:26: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
988 | PyOS_snprintf(mybuf, mybuflen, "%s0%se%d", (sign ? "-" : ""),
| ^~~~~~~~
./Include/internal/pycore_pymath.h:98:30: warning: unsigned conversion from ‘int’ to ‘short unsigned int’ changes the value of ‘-3841’ [-Wsign-conversion]
98 | new_387controlword = (old_387controlword & ~0x0f00) | 0x0200; \
| ^
Objects/floatobject.c:993:5: note: in expansion of macro ‘_Py_SET_53BIT_PRECISION_START’
993 | _Py_SET_53BIT_PRECISION_START;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Objects/floatobject.c: In function ‘PyFloat_Pack2’:
Objects/floatobject.c:2142:13: warning: conversion from ‘int’ to ‘short unsigned int’ may change value [-Wconversion]
2142 | bits |= (e << 10) | (sign << 15);
| ^
Objects/floatobject.c: In function ‘PyFloat_Pack4’:
Objects/floatobject.c:2231:14: warning: conversion to ‘unsigned char’ from ‘char’ may change the sign of the result [-Wsign-conversion]
2231 | *p = (char) (((e & 1) << 7) | (fbits >> 16));
| ^
Objects/floatobject.c: In function ‘PyFloat_Unpack4’:
Objects/floatobject.c:2522:24: warning: conversion to ‘char’ from ‘unsigned char’ may change the sign of the result [-Wsign-conversion]
2522 | *d-- = *p++;
| ^
Objects/floatobject.c: In function ‘PyFloat_Unpack8’:
Objects/floatobject.c:2618:24: warning: conversion to ‘char’ from ‘unsigned char’ may change the sign of the result [-Wsign-conversion]
2618 | *d-- = *p++;
| ^
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Objects/frameobject.o Objects/frameobject.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_ceval.h:13,
from Objects/frameobject.c:4:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
In file included from Objects/frameobject.c:8:
./Include/internal/pycore_object.h: In function ‘_PyType_PreHeaderSize’:
./Include/internal/pycore_object.h:453:30: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
453 | return _PyType_IS_GC(tp) * sizeof(PyGC_Head) +
| ^
./Include/internal/pycore_object.h:454:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
454 | _PyType_HasFeature(tp, Py_TPFLAGS_PREHEADER) * 2 * sizeof(PyObject *);
| ^
Objects/frameobject.c: In function ‘frame_getlasti’:
Objects/frameobject.c:71:34: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
71 | return PyLong_FromLong(lasti * sizeof(_Py_CODEUNIT));
| ^
In file included from ./Include/Python.h:53,
from Objects/frameobject.c:3:
Objects/frameobject.c: In function ‘mark_stacks’:
./Include/pymem.h:65:37: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
65 | ( (type *) PyMem_Malloc((n) * sizeof(type)) ) )
| ^
Objects/frameobject.c:295:23: note: in expansion of macro ‘PyMem_New’
295 | int64_t *stacks = PyMem_New(int64_t, len+1);
| ^~~~~~~~~
Objects/frameobject.c:349:35: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
349 | j = oparg + i + INLINE_CACHE_ENTRIES_SEND + 1;
| ^
Objects/frameobject.c:381:35: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
381 | j = oparg + 1 + INLINE_CACHE_ENTRIES_FOR_ITER + i;
| ^
Objects/frameobject.c:381:67: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
381 | j = oparg + 1 + INLINE_CACHE_ENTRIES_FOR_ITER + i;
| ^
Objects/frameobject.c:381:25: warning: conversion from ‘long unsigned int’ to ‘int’ may change value [-Wconversion]
381 | j = oparg + 1 + INLINE_CACHE_ENTRIES_FOR_ITER + i;
| ^~~~~
Objects/frameobject.c:493:45: warning: conversion to ‘uint64_t’ {aka ‘long unsigned int’} from ‘int64_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
493 | uint64_t target_stack = pop_to_level(stacks[start_offset], level);
| ^~~~~~~~~~~~
Objects/frameobject.c:495:51: warning: conversion to ‘int64_t’ {aka ‘long int’} from ‘uint64_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
495 | target_stack = push_value(target_stack, Lasti);
| ^~~~~~~~~~~~
Objects/frameobject.c:495:40: warning: conversion to ‘uint64_t’ {aka ‘long unsigned int’} from ‘int64_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
495 | target_stack = push_value(target_stack, Lasti);
| ^~~~~~~~~~
Objects/frameobject.c:497:47: warning: conversion to ‘int64_t’ {aka ‘long int’} from ‘uint64_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
497 | target_stack = push_value(target_stack, Except);
| ^~~~~~~~~~~~
Objects/frameobject.c:497:36: warning: conversion to ‘uint64_t’ {aka ‘long unsigned int’} from ‘int64_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
497 | target_stack = push_value(target_stack, Except);
| ^~~~~~~~~~
Objects/frameobject.c:498:39: warning: conversion to ‘int64_t’ {aka ‘long int’} from ‘uint64_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
498 | stacks[handler] = target_stack;
| ^~~~~~~~~~~~
Objects/frameobject.c: In function ‘marklines’:
./Include/pymem.h:65:37: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
65 | ( (type *) PyMem_Malloc((n) * sizeof(type)) ) )
| ^
Objects/frameobject.c:562:23: note: in expansion of macro ‘PyMem_New’
562 | int *linestarts = PyMem_New(int, len);
| ^~~~~~~~~
Objects/frameobject.c:573:40: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
573 | linestarts[bounds.ar_start / sizeof(_Py_CODEUNIT)] = bounds.ar_line;
| ^
Objects/frameobject.c: In function ‘frame_sizeof’:
Objects/frameobject.c:972:49: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
972 | res += _PyFrame_NumSlotsForCodeObject(code) * sizeof(PyObject *);
| ^
Objects/frameobject.c:972:9: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
972 | res += _PyFrame_NumSlotsForCodeObject(code) * sizeof(PyObject *);
| ^~
Objects/frameobject.c:972:12: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘long unsigned int’ may change the sign of the result [-Wsign-conversion]
972 | res += _PyFrame_NumSlotsForCodeObject(code) * sizeof(PyObject *);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Objects/frameobject.c: In function ‘PyFrame_GetLasti’:
Objects/frameobject.c:1526:18: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
1526 | return lasti * sizeof(_Py_CODEUNIT);
| ^
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Objects/funcobject.o Objects/funcobject.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_ceval.h:13,
from Objects/funcobject.c:5:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
In file included from Objects/funcobject.c:7:
./Include/internal/pycore_object.h: In function ‘_PyType_PreHeaderSize’:
./Include/internal/pycore_object.h:453:30: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
453 | return _PyType_IS_GC(tp) * sizeof(PyGC_Head) +
| ^
./Include/internal/pycore_object.h:454:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
454 | _PyType_HasFeature(tp, Py_TPFLAGS_PREHEADER) * 2 * sizeof(PyObject *);
| ^
Objects/funcobject.c: In function ‘PyFunction_ClearWatcher’:
Objects/funcobject.c:89:37: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
89 | interp->active_func_watchers &= ~(1 << watcher_id);
| ^
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Objects/interpreteridobject.o Objects/interpreteridobject.c
In file included from ./Include/internal/pycore_interp.h:16,
from Objects/interpreteridobject.c:5:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Objects/iterobject.o Objects/iterobject.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_runtime.h:17,
from ./Include/internal/pycore_pystate.h:11,
from ./Include/internal/pycore_call.h:12,
from Objects/iterobject.c:5:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
In file included from Objects/iterobject.c:7:
./Include/internal/pycore_object.h: In function ‘_PyType_PreHeaderSize’:
./Include/internal/pycore_object.h:453:30: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
453 | return _PyType_IS_GC(tp) * sizeof(PyGC_Head) +
| ^
./Include/internal/pycore_object.h:454:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
454 | _PyType_HasFeature(tp, Py_TPFLAGS_PREHEADER) * 2 * sizeof(PyObject *);
| ^
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Objects/listobject.o Objects/listobject.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_ceval.h:13,
from Objects/listobject.c:5:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
In file included from Objects/listobject.c:8:
./Include/internal/pycore_long.h: In function ‘_PyLong_DigitCount’:
./Include/internal/pycore_long.h:238:34: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘uintptr_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
238 | return op->long_value.lv_tag >> NON_SIZE_BITS;
| ^
./Include/internal/pycore_long.h: In function ‘_PyLong_SetSignAndDigitCount’:
./Include/internal/pycore_long.h:273:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
273 | #define TAG_FROM_SIGN_AND_SIZE(sign, size) ((1 - (sign)) | ((size) << NON_SIZE_BITS))
| ^
./Include/internal/pycore_long.h:281:29: note: in expansion of macro ‘TAG_FROM_SIGN_AND_SIZE’
281 | op->long_value.lv_tag = TAG_FROM_SIGN_AND_SIZE(sign, (size_t)size);
| ^~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_long.h: In function ‘_PyLong_FlipSign’:
./Include/internal/pycore_long.h:296:27: warning: unsigned conversion from ‘int’ to ‘uintptr_t’ {aka ‘long unsigned int’} changes value from ‘-8’ to ‘18446744073709551608’ [-Wsign-conversion]
296 | op->long_value.lv_tag &= NON_SIZE_MASK;
| ^~
In file included from Objects/listobject.c:10:
./Include/internal/pycore_object.h: In function ‘_PyType_PreHeaderSize’:
./Include/internal/pycore_object.h:453:30: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
453 | return _PyType_IS_GC(tp) * sizeof(PyGC_Head) +
| ^
./Include/internal/pycore_object.h:454:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
454 | _PyType_HasFeature(tp, Py_TPFLAGS_PREHEADER) * 2 * sizeof(PyObject *);
| ^
Objects/listobject.c: In function ‘list_resize’:
Objects/listobject.c:73:38: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
73 | new_allocated = ((size_t)newsize + (newsize >> 3) + 6) & ~(size_t)3;
| ^
Objects/listobject.c:77:62: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
77 | if (newsize - Py_SIZE(self) > (Py_ssize_t)(new_allocated - newsize))
| ^
Objects/listobject.c:96:23: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
96 | self->allocated = new_allocated;
| ^~~~~~~~~~~~~
Objects/listobject.c: In function ‘list_preallocate_exact’:
Objects/listobject.c:111:23: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
111 | size = (size + 1) & ~(size_t)1;
| ^
Objects/listobject.c:111:12: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘long unsigned int’ may change the sign of the result [-Wsign-conversion]
111 | size = (size + 1) & ~(size_t)1;
| ^
In file included from ./Include/Python.h:53,
from Objects/listobject.c:3:
./Include/pymem.h:65:37: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
65 | ( (type *) PyMem_Malloc((n) * sizeof(type)) ) )
| ^
Objects/listobject.c:112:24: note: in expansion of macro ‘PyMem_New’
112 | PyObject **items = PyMem_New(PyObject*, size);
| ^~~~~~~~~
Objects/listobject.c: In function ‘PyList_New’:
Objects/listobject.c:191:50: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
191 | op->ob_item = (PyObject **) PyMem_Calloc(size, sizeof(PyObject *));
| ^~~~
Objects/listobject.c: In function ‘list_new_prealloc’:
./Include/pymem.h:65:37: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
65 | ( (type *) PyMem_Malloc((n) * sizeof(type)) ) )
| ^
Objects/listobject.c:212:19: note: in expansion of macro ‘PyMem_New’
212 | op->ob_item = PyMem_New(PyObject *, size);
| ^~~~~~~~~
Objects/listobject.c: In function ‘list_repeat’:
Objects/listobject.c:587:66: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
587 | _Py_memory_repeat((char *)np->ob_item, sizeof(PyObject *)*output_size,
| ^
Objects/listobject.c:588:59: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
588 | sizeof(PyObject *)*input_size);
| ^
Objects/listobject.c:587:66: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘long unsigned int’ may change the sign of the result [-Wsign-conversion]
587 | _Py_memory_repeat((char *)np->ob_item, sizeof(PyObject *)*output_size,
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
Objects/listobject.c:588:59: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘long unsigned int’ may change the sign of the result [-Wsign-conversion]
588 | sizeof(PyObject *)*input_size);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
Objects/listobject.c: In function ‘list_ass_slice’:
Objects/listobject.c:690:15: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
690 | s = norig * sizeof(PyObject *);
| ^
Objects/listobject.c:705:37: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
705 | tail = (Py_SIZE(a) - ihigh) * sizeof(PyObject *);
| ^
Objects/listobject.c:705:16: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘long unsigned int’ may change the sign of the result [-Wsign-conversion]
705 | tail = (Py_SIZE(a) - ihigh) * sizeof(PyObject *);
| ^
Objects/listobject.c:706:47: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
706 | memmove(&item[ihigh+d], &item[ihigh], tail);
| ^~~~
Objects/listobject.c:708:51: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
708 | memmove(&item[ihigh], &item[ihigh+d], tail);
| ^~~~
Objects/listobject.c:720:24: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
720 | (k - ihigh)*sizeof(PyObject *));
| ^
Objects/listobject.c: In function ‘list_inplace_repeat’:
Objects/listobject.c:772:56: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
772 | _Py_memory_repeat((char *)items, sizeof(PyObject *)*output_size,
| ^
Objects/listobject.c:773:41: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
773 | sizeof(PyObject *)*input_size);
| ^
Objects/listobject.c:772:56: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘long unsigned int’ may change the sign of the result [-Wsign-conversion]
772 | _Py_memory_repeat((char *)items, sizeof(PyObject *)*output_size,
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
Objects/listobject.c:773:41: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘long unsigned int’ may change the sign of the result [-Wsign-conversion]
773 | sizeof(PyObject *)*input_size);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
Objects/listobject.c: In function ‘list_pop_impl’:
Objects/listobject.c:1095:78: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
1095 | memmove(&items[index], &items[index+1], (size_after_pop - index) * sizeof(PyObject *));
| ^
Objects/listobject.c:1104:73: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
1104 | memmove(&items[index+1], &items[index], (size_after_pop - index)* sizeof(PyObject *));
| ^
Objects/listobject.c: In function ‘sortslice_memcpy’:
Objects/listobject.c:1173:59: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
1173 | memcpy(&s1->keys[i], &s2->keys[j], sizeof(PyObject *) * n);
| ^
Objects/listobject.c:1175:67: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
1175 | memcpy(&s1->values[i], &s2->values[j], sizeof(PyObject *) * n);
| ^
Objects/listobject.c: In function ‘sortslice_memmove’:
Objects/listobject.c:1182:60: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
1182 | memmove(&s1->keys[i], &s2->keys[j], sizeof(PyObject *) * n);
| ^
Objects/listobject.c:1184:68: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
1184 | memmove(&s1->values[i], &s2->values[j], sizeof(PyObject *) * n);
| ^
Objects/listobject.c: In function ‘merge_getmem’:
Objects/listobject.c:1649:60: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
1649 | if ((size_t)need > PY_SSIZE_T_MAX / sizeof(PyObject *) / multiplier) {
| ^
Objects/listobject.c:1654:43: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
1654 | * sizeof(PyObject *));
| ^
Objects/listobject.c: In function ‘unsafe_latin_compare’:
Objects/listobject.c:2193:56: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
2193 | res = memcmp(PyUnicode_DATA(v), PyUnicode_DATA(w), len);
| ^~~
Objects/listobject.c: In function ‘list_sort_impl’:
Objects/listobject.c:2350:52: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
2350 | keys = PyMem_Malloc(sizeof(PyObject *) * saved_ob_size);
| ^
Objects/listobject.c: In function ‘_PyList_FromArraySteal’:
Objects/listobject.c:2641:24: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
2641 | memcpy(dst, src, n * sizeof(PyObject *));
| ^
Objects/listobject.c: In function ‘list_subscript’:
Objects/listobject.c:2972:24: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
2972 | for (cur = start, i = 0; i < slicelength;
| ^~~~~
Objects/listobject.c: In function ‘list_ass_subscript’:
Objects/listobject.c:3035:41: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
3035 | PyMem_Malloc(slicelength*sizeof(PyObject*));
| ^
Objects/listobject.c:3047:24: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
3047 | for (cur = start, i = 0;
| ^~~~~
Objects/listobject.c:3049:22: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
3049 | cur += step, i++) {
| ^~
Objects/listobject.c:3054:25: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
3054 | if (cur + step >= (size_t)Py_SIZE(self)) {
| ^
Objects/listobject.c:3055:41: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
3055 | lim = Py_SIZE(self) - cur - 1;
| ^
In file included from ./Include/Python.h:58:
./Include/object.h:314:23: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘long unsigned int’ may change the sign of the result [-Wsign-conversion]
314 | # define Py_SIZE(ob) Py_SIZE(_PyObject_CAST(ob))
| ^~~~~~~
Objects/listobject.c:3055:27: note: in expansion of macro ‘Py_SIZE’
3055 | lim = Py_SIZE(self) - cur - 1;
| ^~~~~~~
Objects/listobject.c:3060:25: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
3060 | lim * sizeof(PyObject *));
| ^
Objects/listobject.c:3062:47: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
3062 | cur = start + (size_t)slicelength * step;
| ^
Objects/listobject.c:3062:25: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
3062 | cur = start + (size_t)slicelength * step;
| ^
Objects/listobject.c:3066:36: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
3066 | (Py_SIZE(self) - cur) *
| ^
Objects/listobject.c:3117:41: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
3117 | PyMem_Malloc(slicelength*sizeof(PyObject*));
| ^
Objects/listobject.c:3126:24: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
3126 | for (cur = start, i = 0; i < slicelength;
| ^~~~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Objects/longobject.o Objects/longobject.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_runtime.h:17,
from ./Include/internal/pycore_pystate.h:11,
from ./Include/internal/pycore_call.h:12,
from Objects/longobject.c:8:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
In file included from Objects/longobject.c:9:
./Include/internal/pycore_long.h: In function ‘_PyLong_DigitCount’:
./Include/internal/pycore_long.h:238:34: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘uintptr_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
238 | return op->long_value.lv_tag >> NON_SIZE_BITS;
| ^
./Include/internal/pycore_long.h: In function ‘_PyLong_SetSignAndDigitCount’:
./Include/internal/pycore_long.h:273:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
273 | #define TAG_FROM_SIGN_AND_SIZE(sign, size) ((1 - (sign)) | ((size) << NON_SIZE_BITS))
| ^
./Include/internal/pycore_long.h:281:29: note: in expansion of macro ‘TAG_FROM_SIGN_AND_SIZE’
281 | op->long_value.lv_tag = TAG_FROM_SIGN_AND_SIZE(sign, (size_t)size);
| ^~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_long.h: In function ‘_PyLong_FlipSign’:
./Include/internal/pycore_long.h:296:27: warning: unsigned conversion from ‘int’ to ‘uintptr_t’ {aka ‘long unsigned int’} changes value from ‘-8’ to ‘18446744073709551608’ [-Wsign-conversion]
296 | op->long_value.lv_tag &= NON_SIZE_MASK;
| ^~
In file included from Objects/longobject.c:10:
./Include/internal/pycore_object.h: In function ‘_PyType_PreHeaderSize’:
./Include/internal/pycore_object.h:453:30: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
453 | return _PyType_IS_GC(tp) * sizeof(PyGC_Head) +
| ^
./Include/internal/pycore_object.h:454:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
454 | _PyType_HasFeature(tp, Py_TPFLAGS_PREHEADER) * 2 * sizeof(PyObject *);
| ^
Objects/longobject.c: In function ‘_PyLong_New’:
Objects/longobject.c:158:37: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
158 | ndigits*sizeof(digit));
| ^
Objects/longobject.c: In function ‘_PyLong_FromDigits’:
Objects/longobject.c:184:61: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
184 | memcpy(result->long_value.ob_digit, digits, digit_count * sizeof(digit));
| ^
Objects/longobject.c: In function ‘_PyLong_FromMedium’:
Objects/longobject.c:214:19: warning: conversion to ‘digit’ {aka ‘unsigned int’} from ‘sdigit’ {aka ‘int’} may change the sign of the result [-Wsign-conversion]
214 | digit abs_x = x < 0 ? -x : x;
| ^
Objects/longobject.c: In function ‘PyLong_AsUnsignedLong’:
Objects/longobject.c:642:16: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
642 | return _PyLong_CompactValue(v);
| ^~~~~~~~~~~~~~~~~~~~~~~
Objects/longobject.c: In function ‘PyLong_AsSize_t’:
Objects/longobject.c:688:16: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
688 | return _PyLong_CompactValue(v);
| ^~~~~~~~~~~~~~~~~~~~~~~
Objects/longobject.c: In function ‘_PyLong_AsUnsignedLongMask’:
Objects/longobject.c:733:14: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
733 | return x * sign;
| ^
Objects/longobject.c: In function ‘_PyLong_NumBits’:
Objects/longobject.c:801:22: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
801 | if (SIZE_MAX - msd_bits < result)
| ^
Objects/longobject.c:803:16: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
803 | result += msd_bits;
| ^~
Objects/longobject.c: In function ‘_PyLong_FromByteArray’:
Objects/longobject.c:874:15: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
874 | ndigits = (numsignificantbytes * 8 + PyLong_SHIFT - 1) / PyLong_SHIFT;
| ^
Objects/longobject.c: In function ‘PyLong_AsVoidPtr’:
Objects/longobject.c:1089:13: warning: conversion to ‘long int’ from ‘long unsigned int’ may change the sign of the result [-Wsign-conversion]
1089 | x = PyLong_AsUnsignedLong(vv);
| ^~~~~~~~~~~~~~~~~~~~~
Objects/longobject.c: In function ‘PyLong_AsUnsignedLongLong’:
Objects/longobject.c:1269:17: warning: conversion to ‘long long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
1269 | bytes = _PyLong_CompactValue(v);
| ^~~~~~~~~~~~~~~~~~~~
Objects/longobject.c: In function ‘_PyLong_AsUnsignedLongLongMask’:
Objects/longobject.c:1308:14: warning: conversion to ‘long long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
1308 | return x * sign;
| ^
Objects/longobject.c: In function ‘inplace_divrem1’:
Objects/longobject.c:1631:21: warning: conversion from ‘twodigits’ {aka ‘long unsigned int’} to ‘digit’ {aka ‘unsigned int’} may change value [-Wconversion]
1631 | remainder = dividend % n;
| ^~~~~~~~
Objects/longobject.c: In function ‘long_to_decimal_string_internal’:
Objects/longobject.c:1906:24: warning: conversion from ‘digit’ {aka ‘unsigned int’} to ‘char’ may change value [-Wconversion]
1906 | *--p = '0' + rem % 10; \
| ^~~
Objects/longobject.c:1941:9: note: in expansion of macro ‘WRITE_DIGITS’
1941 | WRITE_DIGITS(p);
| ^~~~~~~~~~~~
Objects/longobject.c:1913:20: warning: conversion from ‘digit’ {aka ‘unsigned int’} to ‘char’ may change value [-Wconversion]
1913 | *--p = '0' + rem % 10; \
| ^~~
Objects/longobject.c:1941:9: note: in expansion of macro ‘WRITE_DIGITS’
1941 | WRITE_DIGITS(p);
| ^~~~~~~~~~~~
Objects/longobject.c:1906:24: warning: conversion from ‘digit’ {aka ‘unsigned int’} to ‘Py_UCS1’ {aka ‘unsigned char’} may change value [-Wconversion]
1906 | *--p = '0' + rem % 10; \
| ^~~
Objects/longobject.c:1929:9: note: in expansion of macro ‘WRITE_DIGITS’
1929 | WRITE_DIGITS(p); \
| ^~~~~~~~~~~~
Objects/longobject.c:1946:9: note: in expansion of macro ‘WRITE_UNICODE_DIGITS’
1946 | WRITE_UNICODE_DIGITS(Py_UCS1);
| ^~~~~~~~~~~~~~~~~~~~
Objects/longobject.c:1913:20: warning: conversion from ‘digit’ {aka ‘unsigned int’} to ‘Py_UCS1’ {aka ‘unsigned char’} may change value [-Wconversion]
1913 | *--p = '0' + rem % 10; \
| ^~~
Objects/longobject.c:1929:9: note: in expansion of macro ‘WRITE_DIGITS’
1929 | WRITE_DIGITS(p); \
| ^~~~~~~~~~~~
Objects/longobject.c:1946:9: note: in expansion of macro ‘WRITE_UNICODE_DIGITS’
1946 | WRITE_UNICODE_DIGITS(Py_UCS1);
| ^~~~~~~~~~~~~~~~~~~~
Objects/longobject.c:1906:24: warning: conversion from ‘digit’ {aka ‘unsigned int’} to ‘Py_UCS2’ {aka ‘short unsigned int’} may change value [-Wconversion]
1906 | *--p = '0' + rem % 10; \
| ^~~
Objects/longobject.c:1929:9: note: in expansion of macro ‘WRITE_DIGITS’
1929 | WRITE_DIGITS(p); \
| ^~~~~~~~~~~~
Objects/longobject.c:1950:9: note: in expansion of macro ‘WRITE_UNICODE_DIGITS’
1950 | WRITE_UNICODE_DIGITS(Py_UCS2);
| ^~~~~~~~~~~~~~~~~~~~
Objects/longobject.c:1913:20: warning: conversion from ‘digit’ {aka ‘unsigned int’} to ‘Py_UCS2’ {aka ‘short unsigned int’} may change value [-Wconversion]
1913 | *--p = '0' + rem % 10; \
| ^~~
Objects/longobject.c:1929:9: note: in expansion of macro ‘WRITE_DIGITS’
1929 | WRITE_DIGITS(p); \
| ^~~~~~~~~~~~
Objects/longobject.c:1950:9: note: in expansion of macro ‘WRITE_UNICODE_DIGITS’
1950 | WRITE_UNICODE_DIGITS(Py_UCS2);
| ^~~~~~~~~~~~~~~~~~~~
Objects/longobject.c: In function ‘long_format_binary’:
Objects/longobject.c:2079:43: warning: conversion to ‘twodigits’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
2079 | cdigit = (char)(accum & (base - 1)); \
| ^
Objects/longobject.c:2118:9: note: in expansion of macro ‘WRITE_DIGITS’
2118 | WRITE_DIGITS(p);
| ^~~~~~~~~~~~
Objects/longobject.c:2080:31: warning: conversion from ‘int’ to ‘char’ may change value [-Wconversion]
2080 | cdigit += (cdigit < 10) ? '0' : 'a'-10; \
| ^
Objects/longobject.c:2118:9: note: in expansion of macro ‘WRITE_DIGITS’
2118 | WRITE_DIGITS(p);
| ^~~~~~~~~~~~
Objects/longobject.c:2079:43: warning: conversion to ‘twodigits’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
2079 | cdigit = (char)(accum & (base - 1)); \
| ^
Objects/longobject.c:2108:9: note: in expansion of macro ‘WRITE_DIGITS’
2108 | WRITE_DIGITS(p); \
| ^~~~~~~~~~~~
Objects/longobject.c:2123:9: note: in expansion of macro ‘WRITE_UNICODE_DIGITS’
2123 | WRITE_UNICODE_DIGITS(Py_UCS1);
| ^~~~~~~~~~~~~~~~~~~~
Objects/longobject.c:2080:31: warning: conversion from ‘int’ to ‘char’ may change value [-Wconversion]
2080 | cdigit += (cdigit < 10) ? '0' : 'a'-10; \
| ^
Objects/longobject.c:2108:9: note: in expansion of macro ‘WRITE_DIGITS’
2108 | WRITE_DIGITS(p); \
| ^~~~~~~~~~~~
Objects/longobject.c:2123:9: note: in expansion of macro ‘WRITE_UNICODE_DIGITS’
2123 | WRITE_UNICODE_DIGITS(Py_UCS1);
| ^~~~~~~~~~~~~~~~~~~~
Objects/longobject.c:2081:28: warning: conversion to ‘Py_UCS1’ {aka ‘unsigned char’} from ‘char’ may change the sign of the result [-Wsign-conversion]
2081 | *--p = cdigit; \
| ^~~~~~
Objects/longobject.c:2108:9: note: in expansion of macro ‘WRITE_DIGITS’
2108 | WRITE_DIGITS(p); \
| ^~~~~~~~~~~~
Objects/longobject.c:2123:9: note: in expansion of macro ‘WRITE_UNICODE_DIGITS’
2123 | WRITE_UNICODE_DIGITS(Py_UCS1);
| ^~~~~~~~~~~~~~~~~~~~
Objects/longobject.c:2079:43: warning: conversion to ‘twodigits’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
2079 | cdigit = (char)(accum & (base - 1)); \
| ^
Objects/longobject.c:2108:9: note: in expansion of macro ‘WRITE_DIGITS’
2108 | WRITE_DIGITS(p); \
| ^~~~~~~~~~~~
Objects/longobject.c:2127:9: note: in expansion of macro ‘WRITE_UNICODE_DIGITS’
2127 | WRITE_UNICODE_DIGITS(Py_UCS2);
| ^~~~~~~~~~~~~~~~~~~~
Objects/longobject.c:2080:31: warning: conversion from ‘int’ to ‘char’ may change value [-Wconversion]
2080 | cdigit += (cdigit < 10) ? '0' : 'a'-10; \
| ^
Objects/longobject.c:2108:9: note: in expansion of macro ‘WRITE_DIGITS’
2108 | WRITE_DIGITS(p); \
| ^~~~~~~~~~~~
Objects/longobject.c:2127:9: note: in expansion of macro ‘WRITE_UNICODE_DIGITS’
2127 | WRITE_UNICODE_DIGITS(Py_UCS2);
| ^~~~~~~~~~~~~~~~~~~~
Objects/longobject.c:2081:28: warning: conversion to ‘Py_UCS2’ {aka ‘short unsigned int’} from ‘char’ may change the sign of the result [-Wsign-conversion]
2081 | *--p = cdigit; \
| ^~~~~~
Objects/longobject.c:2108:9: note: in expansion of macro ‘WRITE_DIGITS’
2108 | WRITE_DIGITS(p); \
| ^~~~~~~~~~~~
Objects/longobject.c:2127:9: note: in expansion of macro ‘WRITE_UNICODE_DIGITS’
2127 | WRITE_UNICODE_DIGITS(Py_UCS2);
| ^~~~~~~~~~~~~~~~~~~~
Objects/longobject.c:2079:43: warning: conversion to ‘twodigits’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
2079 | cdigit = (char)(accum & (base - 1)); \
| ^
Objects/longobject.c:2108:9: note: in expansion of macro ‘WRITE_DIGITS’
2108 | WRITE_DIGITS(p); \
| ^~~~~~~~~~~~
Objects/longobject.c:2132:9: note: in expansion of macro ‘WRITE_UNICODE_DIGITS’
2132 | WRITE_UNICODE_DIGITS(Py_UCS4);
| ^~~~~~~~~~~~~~~~~~~~
Objects/longobject.c:2080:31: warning: conversion from ‘int’ to ‘char’ may change value [-Wconversion]
2080 | cdigit += (cdigit < 10) ? '0' : 'a'-10; \
| ^
Objects/longobject.c:2108:9: note: in expansion of macro ‘WRITE_DIGITS’
2108 | WRITE_DIGITS(p); \
| ^~~~~~~~~~~~
Objects/longobject.c:2132:9: note: in expansion of macro ‘WRITE_UNICODE_DIGITS’
2132 | WRITE_UNICODE_DIGITS(Py_UCS4);
| ^~~~~~~~~~~~~~~~~~~~
Objects/longobject.c:2081:28: warning: conversion to ‘Py_UCS4’ {aka ‘unsigned int’} from ‘char’ may change the sign of the result [-Wsign-conversion]
2081 | *--p = cdigit; \
| ^~~~~~
Objects/longobject.c:2108:9: note: in expansion of macro ‘WRITE_DIGITS’
2108 | WRITE_DIGITS(p); \
| ^~~~~~~~~~~~
Objects/longobject.c:2132:9: note: in expansion of macro ‘WRITE_UNICODE_DIGITS’
2132 | WRITE_UNICODE_DIGITS(Py_UCS4);
| ^~~~~~~~~~~~~~~~~~~~
Objects/longobject.c: In function ‘long_from_non_binary_base’:
Objects/longobject.c:2443:29: warning: conversion to ‘twodigits’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
2443 | twodigits convmax = base;
| ^~~~
Objects/longobject.c:2449:38: warning: conversion to ‘twodigits’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
2449 | twodigits next = convmax * base;
| ^
Objects/longobject.c:2505:31: warning: conversion to ‘twodigits’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
2505 | c = (twodigits)(c * base +
| ^
Objects/longobject.c:2515:24: warning: conversion to ‘twodigits’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
2515 | convmult = base;
| ^~~~
Objects/longobject.c:2517:26: warning: conversion to ‘twodigits’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
2517 | convmult *= base;
| ^~
Objects/longobject.c:2549:38: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
2549 | sizeof(digit) * size_z);
| ^
Objects/longobject.c: In function ‘PyLong_FromString’:
Objects/longobject.c:2766:12: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
2766 | slen = strlen(orig_str) < 200 ? strlen(orig_str) : 200;
| ^~~~~~
Objects/longobject.c: In function ‘_PyLong_Frexp’:
Objects/longobject.c:3176:17: warning: conversion to ‘digit’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
3176 | x_digits[0] += half_even_correction[x_digits[0] & 7];
| ^~
Objects/longobject.c: In function ‘long_hash’:
Objects/longobject.c:3302:13: warning: conversion to ‘Py_uhash_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
3302 | x = _PyLong_CompactValue(v);
| ^~~~~~~~~~~~~~~~~~~~
Objects/longobject.c:3306:16: warning: conversion to ‘Py_hash_t’ {aka ‘long int’} from ‘Py_uhash_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
3306 | return x;
| ^
Objects/longobject.c:3343:11: warning: conversion to ‘Py_uhash_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
3343 | x = x * sign;
| ^
Objects/longobject.c: In function ‘x_mul’:
Objects/longobject.c:3530:61: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
3530 | memset(z->long_value.ob_digit, 0, _PyLong_DigitCount(z) * sizeof(digit));
| ^
Objects/longobject.c: In function ‘kmul_split’:
Objects/longobject.c:3643:69: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
3643 | memcpy(lo->long_value.ob_digit, n->long_value.ob_digit, size_lo * sizeof(digit));
| ^
Objects/longobject.c:3644:79: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
3644 | memcpy(hi->long_value.ob_digit, n->long_value.ob_digit + size_lo, size_hi * sizeof(digit));
| ^
Objects/longobject.c: In function ‘k_mul’:
Objects/longobject.c:3750:35: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
3750 | _PyLong_DigitCount(t1) * sizeof(digit));
| ^
Objects/longobject.c:3756:18: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
3756 | i * sizeof(digit));
| ^
Objects/longobject.c:3765:86: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
3765 | memcpy(ret->long_value.ob_digit, t2->long_value.ob_digit, _PyLong_DigitCount(t2) * sizeof(digit));
| ^
Objects/longobject.c:3770:72: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
3770 | memset(ret->long_value.ob_digit + _PyLong_DigitCount(t2), 0, i * sizeof(digit));
| ^
Objects/longobject.c: In function ‘k_lopsided_mul’:
Objects/longobject.c:3891:65: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
3891 | memset(ret->long_value.ob_digit, 0, _PyLong_DigitCount(ret) * sizeof(digit));
| ^
Objects/longobject.c:3905:24: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
3905 | nbtouse * sizeof(digit));
| ^
Objects/longobject.c: In function ‘fast_mod’:
Objects/longobject.c:3962:19: warning: conversion to ‘sdigit’ {aka ‘int’} from ‘digit’ {aka ‘unsigned int’} may change the sign of the result [-Wsign-conversion]
3962 | sdigit left = a->long_value.ob_digit[0];
| ^
Objects/longobject.c:3963:20: warning: conversion to ‘sdigit’ {aka ‘int’} from ‘digit’ {aka ‘unsigned int’} may change the sign of the result [-Wsign-conversion]
3963 | sdigit right = b->long_value.ob_digit[0];
| ^
Objects/longobject.c: In function ‘fast_floor_div’:
Objects/longobject.c:3984:19: warning: conversion to ‘sdigit’ {aka ‘int’} from ‘digit’ {aka ‘unsigned int’} may change the sign of the result [-Wsign-conversion]
3984 | sdigit left = a->long_value.ob_digit[0];
| ^
Objects/longobject.c:3985:20: warning: conversion to ‘sdigit’ {aka ‘int’} from ‘digit’ {aka ‘unsigned int’} may change the sign of the result [-Wsign-conversion]
3985 | sdigit right = b->long_value.ob_digit[0];
| ^
Objects/longobject.c: In function ‘long_true_divide’:
Objects/longobject.c:4363:39: warning: conversion from ‘Py_ssize_t’ {aka ‘long int’} to ‘int’ may change value [-Wconversion]
4363 | a_size, -shift % PyLong_SHIFT);
Objects/longobject.c:4375:53: warning: conversion from ‘Py_ssize_t’ {aka ‘long int’} to ‘int’ may change value [-Wconversion]
4375 | a_size - shift_digits, shift % PyLong_SHIFT);
Objects/longobject.c:4415:37: warning: conversion to ‘digit’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
4415 | low = x->long_value.ob_digit[0] | inexact;
| ^
Objects/longobject.c: In function ‘divmod_shift’:
Objects/longobject.c:4904:21: warning: conversion from ‘Py_ssize_t’ {aka ‘long int’} to ‘digit’ {aka ‘unsigned int’} may change value [-Wconversion]
4904 | *remshift = lshiftby % PyLong_SHIFT;
| ^~~~~~~~
Objects/longobject.c: In function ‘_PyLong_Rshift’:
Objects/longobject.c:5049:17: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
5049 | wordshift = shiftby / PyLong_SHIFT;
| ^~~~~~~
Objects/longobject.c:5050:16: warning: conversion from ‘size_t’ {aka ‘long unsigned int’} to ‘digit’ {aka ‘unsigned int’} may change value [-Wconversion]
5050 | remshift = shiftby % PyLong_SHIFT;
| ^~~~~~~
Objects/longobject.c: In function ‘_PyLong_Lshift’:
Objects/longobject.c:5126:17: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
5126 | wordshift = shiftby / PyLong_SHIFT;
| ^~~~~~~
Objects/longobject.c:5127:16: warning: conversion from ‘size_t’ {aka ‘long unsigned int’} to ‘digit’ {aka ‘unsigned int’} may change value [-Wconversion]
5127 | remshift = shiftby % PyLong_SHIFT;
| ^~~~~~~
Objects/longobject.c: In function ‘long_bitwise’:
Objects/longobject.c:5257:26: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
5257 | (size_z-i)*sizeof(digit));
| ^
Objects/longobject.c: In function ‘int_to_bytes_impl’:
Objects/longobject.c:6071:29: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
6071 | length, little_endian, is_signed) < 0) {
| ^~~~~~
In file included from ./Include/Python.h:58,
from Objects/longobject.c:5:
Objects/longobject.c: In function ‘int_from_bytes_impl’:
./Include/object.h:314:23: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
314 | # define Py_SIZE(ob) Py_SIZE(_PyObject_CAST(ob))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
Objects/longobject.c:6126:52: note: in expansion of macro ‘Py_SIZE’
6126 | (unsigned char *)PyBytes_AS_STRING(bytes), Py_SIZE(bytes),
| ^~~~~~~
In function ‘long_true_divide’,
inlined from ‘long_true_divide’ at Objects/longobject.c:4189:1:
Objects/longobject.c:4306:32: warning: array subscript 1 is above array bounds of ‘digit[1]’ {aka ‘unsigned int[1]’} [-Warray-bounds=]
4306 | a->long_value.ob_digit[MANT_DIG_DIGITS] >> MANT_DIG_BITS == 0);
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
In file included from ./Include/Python.h:67:
./Include/cpython/longintrepr.h: In function ‘long_true_divide’:
./Include/cpython/longintrepr.h:84:11: note: while referencing ‘ob_digit’
84 | digit ob_digit[1];
| ^~~~~~~~
In function ‘long_true_divide’,
inlined from ‘long_true_divide’ at Objects/longobject.c:4189:1:
Objects/longobject.c:4309:32: warning: array subscript 1 is above array bounds of ‘digit[1]’ {aka ‘unsigned int[1]’} [-Warray-bounds=]
4309 | b->long_value.ob_digit[MANT_DIG_DIGITS] >> MANT_DIG_BITS == 0);
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
./Include/cpython/longintrepr.h: In function ‘long_true_divide’:
./Include/cpython/longintrepr.h:84:11: note: while referencing ‘ob_digit’
84 | digit ob_digit[1];
| ^~~~~~~~
In function ‘long_true_divide’,
inlined from ‘long_true_divide’ at Objects/longobject.c:4189:1:
Objects/longobject.c:4364:31: warning: array subscript 1 is above array bounds of ‘digit[1]’ {aka ‘unsigned int[1]’} [-Warray-bounds=]
4364 | x->long_value.ob_digit[a_size + shift_digits] = rem;
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
./Include/cpython/longintrepr.h: In function ‘long_true_divide’:
./Include/cpython/longintrepr.h:84:11: note: while referencing ‘ob_digit’
84 | digit ob_digit[1];
| ^~~~~~~~
In file included from ./Include/tupleobject.h:39,
from ./Include/Python.h:73:
In function ‘pylong_int_divmod’,
inlined from ‘l_divmod’ at Objects/longobject.c:4102:16:
./Include/cpython/tupleobject.h:27:64: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
27 | #define PyTuple_GET_ITEM(op, index) (_PyTuple_CAST(op)->ob_item[(index)])
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
Objects/longobject.c:4024:19: note: in expansion of macro ‘PyTuple_GET_ITEM’
4024 | PyObject *r = PyTuple_GET_ITEM(result, 1);
| ^~~~~~~~~~~~~~~~
./Include/cpython/tupleobject.h: In function ‘l_divmod’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘long_divmod’ at Objects/longobject.c:4471:9,
inlined from ‘long_divmod’ at Objects/longobject.c:4458:1:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘long_divmod’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
Objects/longobject.c: In function ‘_PyLong_GCD’:
Objects/longobject.c:5356:17: warning: array subscript 2 is above array bounds of ‘digit[1]’ {aka ‘unsigned int[1]’} [-Warray-bounds=]
5356 | nbits = bit_length_digit(a->long_value.ob_digit[size_a-1]);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/cpython/longintrepr.h:84:11: note: while referencing ‘ob_digit’
84 | digit ob_digit[1];
| ^~~~~~~~
Objects/longobject.c:5374:48: warning: array subscript 1 is above array bounds of ‘digit[1]’ {aka ‘unsigned int[1]’} [-Warray-bounds=]
5374 | ((twodigits)a->long_value.ob_digit[size_a-2] << (PyLong_SHIFT-nbits)) |
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
./Include/cpython/longintrepr.h:84:11: note: while referencing ‘ob_digit’
84 | digit ob_digit[1];
| ^~~~~~~~
Objects/longobject.c:5378:71: warning: array subscript 1 is above array bounds of ‘digit[1]’ {aka ‘unsigned int[1]’} [-Warray-bounds=]
5378 | (size_b >= size_a - 1 ? (twodigits)b->long_value.ob_digit[size_a-2] << (PyLong_SHIFT-nbits) : 0) |
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
./Include/cpython/longintrepr.h:84:11: note: while referencing ‘ob_digit’
84 | digit ob_digit[1];
| ^~~~~~~~
Objects/longobject.c:5379:67: warning: array subscript 2 is above array bounds of ‘digit[1]’ {aka ‘unsigned int[1]’} [-Warray-bounds=]
5379 | (size_b >= size_a ? (twodigits)b->long_value.ob_digit[size_a-1] << (2*PyLong_SHIFT-nbits) : 0));
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
./Include/cpython/longintrepr.h:84:11: note: while referencing ‘ob_digit’
84 | digit ob_digit[1];
| ^~~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘_PyLong_DivmodNear’ at Objects/longobject.c:5760:5:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘_PyLong_DivmodNear’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘int___round___impl’,
inlined from ‘int___round__’ at Objects/clinic/longobject.c.h:146:20:
./Include/cpython/tupleobject.h:27:64: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
27 | #define PyTuple_GET_ITEM(op, index) (_PyTuple_CAST(op)->ob_item[(index)])
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
Objects/longobject.c:5837:37: note: in expansion of macro ‘PyTuple_GET_ITEM’
5837 | (PyLongObject *)PyTuple_GET_ITEM(result, 1));
| ^~~~~~~~~~~~~~~~
./Include/cpython/tupleobject.h: In function ‘int___round__’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Objects/dictobject.o Objects/dictobject.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_runtime.h:17,
from ./Include/internal/pycore_pystate.h:11,
from ./Include/internal/pycore_call.h:12,
from Objects/dictobject.c:117:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
In file included from ./Include/internal/pycore_dict.h:13,
from Objects/dictobject.c:120:
./Include/internal/pycore_object.h: In function ‘_PyType_PreHeaderSize’:
./Include/internal/pycore_object.h:453:30: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
453 | return _PyType_IS_GC(tp) * sizeof(PyGC_Head) +
| ^
./Include/internal/pycore_object.h:454:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
454 | _PyType_HasFeature(tp, Py_TPFLAGS_PREHEADER) * 2 * sizeof(PyObject *);
| ^
./Include/internal/pycore_dict.h: In function ‘_PyDict_NotifyEvent’:
./Include/internal/pycore_dict.h:233:42: warning: conversion to ‘uint64_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
233 | return DICT_NEXT_VERSION(interp) | watcher_bits;
| ^
./Include/internal/pycore_dict.h: In function ‘_PyDictValues_AddToInsertionOrder’:
./Include/internal/pycore_dict.h:254:17: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
254 | *size_ptr = size;
| ^~~~
In file included from Objects/dictobject.c:126:
Objects/stringlib/eq.h: In function ‘unicode_eq’:
Objects/stringlib/eq.h:16:43: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
16 | PyUnicode_GET_LENGTH(a) * PyUnicode_KIND(a)) == 0;
Objects/dictobject.c: In function ‘calculate_log2_keysize’:
Objects/dictobject.c:420:35: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
420 | return _Py_bit_length(minsize | (PyDict_MINSIZE-1));
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~
Objects/dictobject.c:420:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
420 | return _Py_bit_length(minsize | (PyDict_MINSIZE-1));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Objects/dictobject.c: In function ‘new_keys_object’:
Objects/dictobject.c:412:28: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘long unsigned int’ may change the sign of the result [-Wsign-conversion]
412 | #define USABLE_FRACTION(n) (((n) << 1)/3)
| ^
Objects/dictobject.c:614:14: note: in expansion of macro ‘USABLE_FRACTION’
614 | usable = USABLE_FRACTION((size_t)1<<log2_size);
| ^~~~~~~~~~~~~~~
Objects/dictobject.c:645:43: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
645 | + entry_size * usable);
| ^
Objects/dictobject.c:656:31: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
656 | dk->dk_log2_index_bytes = log2_bytes;
| ^~~~~~~~~~
Objects/dictobject.c:662:68: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
662 | memset(&dk->dk_indices[(size_t)1 << log2_bytes], 0, entry_size * usable);
| ^
Objects/dictobject.c: In function ‘lookdict_index’:
Objects/dictobject.c:301:21: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘long int’ may change the sign of the result [-Wsign-conversion]
301 | #define DK_MASK(dk) (DK_SIZE(dk)-1)
| ^
Objects/dictobject.c:860:19: note: in expansion of macro ‘DK_MASK’
860 | size_t mask = DK_MASK(k);
| ^~~~~~~
Objects/dictobject.c:865:47: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
865 | Py_ssize_t ix = dictkeys_get_index(k, i);
| ^
Objects/dictobject.c:867:20: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
867 | return i;
| ^
Objects/dictobject.c: In function ‘unicodekeys_lookup_generic’:
Objects/dictobject.c:301:21: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘long int’ may change the sign of the result [-Wsign-conversion]
301 | #define DK_MASK(dk) (DK_SIZE(dk)-1)
| ^
Objects/dictobject.c:883:19: note: in expansion of macro ‘DK_MASK’
883 | size_t mask = DK_MASK(dk);
| ^~~~~~~
Objects/dictobject.c:884:22: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_hash_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
884 | size_t perturb = hash;
| ^~~~
Objects/dictobject.c:888:37: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
888 | ix = dictkeys_get_index(dk, i);
| ^
Objects/dictobject.c: In function ‘unicodekeys_lookup_unicode’:
Objects/dictobject.c:301:21: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘long int’ may change the sign of the result [-Wsign-conversion]
301 | #define DK_MASK(dk) (DK_SIZE(dk)-1)
| ^
Objects/dictobject.c:929:19: note: in expansion of macro ‘DK_MASK’
929 | size_t mask = DK_MASK(dk);
| ^~~~~~~
Objects/dictobject.c:930:22: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_hash_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
930 | size_t perturb = hash;
| ^~~~
Objects/dictobject.c:934:37: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
934 | ix = dictkeys_get_index(dk, i);
| ^
Objects/dictobject.c:950:37: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
950 | ix = dictkeys_get_index(dk, i);
| ^
Objects/dictobject.c: In function ‘dictkeys_generic_lookup’:
Objects/dictobject.c:301:21: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘long int’ may change the sign of the result [-Wsign-conversion]
301 | #define DK_MASK(dk) (DK_SIZE(dk)-1)
| ^
Objects/dictobject.c:974:19: note: in expansion of macro ‘DK_MASK’
974 | size_t mask = DK_MASK(dk);
| ^~~~~~~
Objects/dictobject.c:975:22: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_hash_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
975 | size_t perturb = hash;
| ^~~~
Objects/dictobject.c:979:37: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
979 | ix = dictkeys_get_index(dk, i);
| ^
Objects/dictobject.c: In function ‘find_empty_slot’:
Objects/dictobject.c:301:21: warning: conversion to ‘size_t’ {aka ‘const long unsigned int’} from ‘long int’ may change the sign of the result [-Wsign-conversion]
301 | #define DK_MASK(dk) (DK_SIZE(dk)-1)
| ^
Objects/dictobject.c:1182:25: note: in expansion of macro ‘DK_MASK’
1182 | const size_t mask = DK_MASK(keys);
| ^~~~~~~
Objects/dictobject.c:1183:21: warning: conversion to ‘long unsigned int’ from ‘Py_hash_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
1183 | size_t i = hash & mask;
| ^
Objects/dictobject.c:1184:46: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
1184 | Py_ssize_t ix = dictkeys_get_index(keys, i);
| ^
Objects/dictobject.c:1185:27: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_hash_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
1185 | for (size_t perturb = hash; ix >= 0;) {
| ^~~~
Objects/dictobject.c:1188:39: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
1188 | ix = dictkeys_get_index(keys, i);
| ^
Objects/dictobject.c:1190:12: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
1190 | return i;
| ^
Objects/dictobject.c: In function ‘insert_to_emptydict’:
Objects/dictobject.c:1358:37: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
1358 | dictkeys_set_index(mp->ma_keys, hashpos, 0);
| ^~~~~~~
Objects/dictobject.c: In function ‘build_indices_generic’:
Objects/dictobject.c:301:21: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘long int’ may change the sign of the result [-Wsign-conversion]
301 | #define DK_MASK(dk) (DK_SIZE(dk)-1)
| ^
Objects/dictobject.c:1383:19: note: in expansion of macro ‘DK_MASK’
1383 | size_t mask = DK_MASK(keys);
| ^~~~~~~
Objects/dictobject.c:1386:25: warning: conversion to ‘long unsigned int’ from ‘Py_hash_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
1386 | size_t i = hash & mask;
| ^
Objects/dictobject.c:1387:31: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_hash_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
1387 | for (size_t perturb = hash; dictkeys_get_index(keys, i) != DKIX_EMPTY;) {
| ^~~~
Objects/dictobject.c:1387:62: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
1387 | for (size_t perturb = hash; dictkeys_get_index(keys, i) != DKIX_EMPTY;) {
| ^
Objects/dictobject.c:1391:34: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
1391 | dictkeys_set_index(keys, i, ix);
| ^
Objects/dictobject.c: In function ‘build_indices_unicode’:
Objects/dictobject.c:301:21: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘long int’ may change the sign of the result [-Wsign-conversion]
301 | #define DK_MASK(dk) (DK_SIZE(dk)-1)
| ^
Objects/dictobject.c:1398:19: note: in expansion of macro ‘DK_MASK’
1398 | size_t mask = DK_MASK(keys);
| ^~~~~~~
Objects/dictobject.c:1402:25: warning: conversion to ‘long unsigned int’ from ‘Py_hash_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
1402 | size_t i = hash & mask;
| ^
Objects/dictobject.c:1403:31: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_hash_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
1403 | for (size_t perturb = hash; dictkeys_get_index(keys, i) != DKIX_EMPTY;) {
| ^~~~
Objects/dictobject.c:1403:62: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
1403 | for (size_t perturb = hash; dictkeys_get_index(keys, i) != DKIX_EMPTY;) {
| ^
Objects/dictobject.c:1407:34: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
1407 | dictkeys_set_index(keys, i, ix);
| ^
Objects/dictobject.c: In function ‘dictresize’:
Objects/dictobject.c:1503:59: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
1503 | memcpy(newentries, oldentries, numentries * sizeof(PyDictKeyEntry));
| ^
Objects/dictobject.c:1520:63: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
1520 | memcpy(newentries, oldentries, numentries * sizeof(PyDictUnicodeEntry));
| ^
Objects/dictobject.c: In function ‘delete_index_from_values’:
Objects/dictobject.c:1974:17: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
1974 | *size_ptr = size -1;
| ^~~~
Objects/dictobject.c: In function ‘dictiter_len’:
Objects/dictobject.c:4154:30: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
4154 | return PyLong_FromSize_t(len);
| ^~~
Objects/dictobject.c: In function ‘PyDict_Unwatch’:
Objects/dictobject.c:5941:43: warning: conversion to ‘long long unsigned int’ from ‘long long int’ may change the sign of the result [-Wsign-conversion]
5941 | ((PyDictObject*)dict)->ma_version_tag &= ~(1LL << watcher_id);
| ^~
In file included from ./Include/tupleobject.h:39,
from ./Include/Python.h:73,
from Objects/dictobject.c:115:
In function ‘PyTuple_SET_ITEM’,
inlined from ‘dictiter_iternextitem’ at Objects/dictobject.c:4454:9:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘dictiter_iternextitem’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
./Include/cpython/tupleobject.h:27:64: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
27 | #define PyTuple_GET_ITEM(op, index) (_PyTuple_CAST(op)->ob_item[(index)])
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
Objects/dictobject.c:4437:30: note: in expansion of macro ‘PyTuple_GET_ITEM’
4437 | PyObject *oldvalue = PyTuple_GET_ITEM(result, 1);
| ^~~~~~~~~~~~~~~~
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘dictiter_iternextitem’ at Objects/dictobject.c:4439:9:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘dictiter_iternextitem’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘dictreviter_iternext’ at Objects/dictobject.c:4585:13:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘dictreviter_iternext’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
./Include/cpython/tupleobject.h:27:64: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
27 | #define PyTuple_GET_ITEM(op, index) (_PyTuple_CAST(op)->ob_item[(index)])
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
Objects/dictobject.c:4567:34: note: in expansion of macro ‘PyTuple_GET_ITEM’
4567 | PyObject *oldvalue = PyTuple_GET_ITEM(result, 1);
| ^~~~~~~~~~~~~~~~
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘dictreviter_iternext’ at Objects/dictobject.c:4569:13:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘dictreviter_iternext’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
Objects/dictobject.c: In function ‘dictitems_contains’:
./Include/cpython/tupleobject.h:27:64: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
27 | #define PyTuple_GET_ITEM(op, index) (_PyTuple_CAST(op)->ob_item[(index)])
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
Objects/dictobject.c:5282:13: note: in expansion of macro ‘PyTuple_GET_ITEM’
5282 | value = PyTuple_GET_ITEM(obj, 1);
| ^~~~~~~~~~~~~~~~
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘dict_items’ at Objects/dictobject.c:2741:9,
inlined from ‘PyDict_Items’ at Objects/dictobject.c:3243:12:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘PyDict_Items’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘dict_popitem_impl’ at Objects/dictobject.c:3625:5,
inlined from ‘dict_popitem’ at Objects/clinic/dictobject.c.h:176:12:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘dict_popitem’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
Objects/dictobject.c: In function ‘PyDict_MergeFromSeq2’:
./Include/cpython/tupleobject.h:27:64: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
27 | #define PyTuple_GET_ITEM(op, index) (_PyTuple_CAST(op)->ob_item[(index)])
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
./Include/abstract.h:736:53: note: in expansion of macro ‘PyTuple_GET_ITEM’
736 | (PyList_Check(o) ? PyList_GET_ITEM((o), (i)) : PyTuple_GET_ITEM((o), (i)))
| ^~~~~~~~~~~~~~~~
Objects/dictobject.c:2875:17: note: in expansion of macro ‘PySequence_Fast_GET_ITEM’
2875 | value = PySequence_Fast_GET_ITEM(fast, 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Objects/odictobject.o Objects/odictobject.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_runtime.h:17,
from ./Include/internal/pycore_pystate.h:11,
from ./Include/internal/pycore_call.h:12,
from Objects/odictobject.c:468:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
In file included from ./Include/internal/pycore_dict.h:13,
from Objects/odictobject.c:470:
./Include/internal/pycore_object.h: In function ‘_PyType_PreHeaderSize’:
./Include/internal/pycore_object.h:453:30: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
453 | return _PyType_IS_GC(tp) * sizeof(PyGC_Head) +
| ^
./Include/internal/pycore_object.h:454:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
454 | _PyType_HasFeature(tp, Py_TPFLAGS_PREHEADER) * 2 * sizeof(PyObject *);
| ^
./Include/internal/pycore_dict.h: In function ‘_PyDict_NotifyEvent’:
./Include/internal/pycore_dict.h:233:42: warning: conversion to ‘uint64_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
233 | return DICT_NEXT_VERSION(interp) | watcher_bits;
| ^
./Include/internal/pycore_dict.h: In function ‘_PyDictValues_AddToInsertionOrder’:
./Include/internal/pycore_dict.h:254:17: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
254 | *size_ptr = size;
| ^~~~
In file included from ./Include/Python.h:53,
from Objects/odictobject.c:467:
Objects/odictobject.c: In function ‘_odict_resize’:
./Include/pymem.h:65:37: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
65 | ( (type *) PyMem_Malloc((n) * sizeof(type)) ) )
| ^
./Include/pymem.h:82:35: note: in expansion of macro ‘PyMem_New’
82 | #define PyMem_NEW(type, n) PyMem_New(type, (n))
| ^~~~~~~~~
Objects/odictobject.c:559:18: note: in expansion of macro ‘PyMem_NEW’
559 | fast_nodes = PyMem_NEW(_ODictNode *, size);
| ^~~~~~~~~
Objects/odictobject.c: In function ‘odict_sizeof’:
Objects/odictobject.c:937:33: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
937 | res += sizeof(_ODictNode *) * od->od_fast_nodes_size; /* od_fast_nodes */
| ^
Objects/odictobject.c:937:9: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
937 | res += sizeof(_ODictNode *) * od->od_fast_nodes_size; /* od_fast_nodes */
| ^~
Objects/odictobject.c:937:12: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘long unsigned int’ may change the sign of the result [-Wsign-conversion]
937 | res += sizeof(_ODictNode *) * od->od_fast_nodes_size; /* od_fast_nodes */
| ^~~~~~
Objects/odictobject.c:939:35: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
939 | res += sizeof(_ODictNode) * PyODict_SIZE(od); /* linked-list */
| ^
Objects/odictobject.c:939:13: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
939 | res += sizeof(_ODictNode) * PyODict_SIZE(od); /* linked-list */
| ^~
Objects/odictobject.c:939:16: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘long unsigned int’ may change the sign of the result [-Wsign-conversion]
939 | res += sizeof(_ODictNode) * PyODict_SIZE(od); /* linked-list */
| ^~~~~~
In file included from ./Include/Python.h:58:
Objects/odictobject.c: In function ‘odictiter_iternext’:
./Include/object.h:889:23: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
889 | #define Py_DECREF(op) Py_DECREF(_PyObject_CAST(op))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Objects/odictobject.c:1722:9: note: in expansion of macro ‘Py_DECREF’
1722 | Py_DECREF(PyTuple_GET_ITEM(result, 1)); /* borrowed */
| ^~~~~~~~~
In file included from ./Include/tupleobject.h:39,
from ./Include/Python.h:73:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘odictiter_iternext’ at Objects/odictobject.c:1739:5:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘odictiter_iternext’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Objects/memoryobject.o Objects/memoryobject.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_runtime.h:17,
from ./Include/internal/pycore_emscripten_trampoline.h:4,
from ./Include/internal/pycore_object.h:13,
from Objects/memoryobject.c:16:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
./Include/internal/pycore_object.h: In function ‘_PyType_PreHeaderSize’:
./Include/internal/pycore_object.h:453:30: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
453 | return _PyType_IS_GC(tp) * sizeof(PyGC_Head) +
| ^
./Include/internal/pycore_object.h:454:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
454 | _PyType_HasFeature(tp, Py_TPFLAGS_PREHEADER) * 2 * sizeof(PyObject *);
| ^
Objects/memoryobject.c: In function ‘copy_base’:
Objects/memoryobject.c:352:32: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
352 | memcpy(dptr, sptr, size); /* no overlapping */
| ^~~~
Objects/memoryobject.c:354:33: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
354 | memmove(dptr, sptr, size);
| ^~~~
Objects/memoryobject.c:361:30: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
361 | memcpy(p, xsptr, itemsize);
| ^~~~~~~~
Objects/memoryobject.c:365:30: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
365 | memcpy(xdptr, p, itemsize);
| ^~~~~~~~
Objects/memoryobject.c: In function ‘copy_single’:
Objects/memoryobject.c:415:43: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
415 | mem = PyMem_Malloc(dest->shape[0] * dest->itemsize);
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
Objects/memoryobject.c: In function ‘copy_buffer’:
Objects/memoryobject.c:447:54: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
447 | mem = PyMem_Malloc(dest->shape[dest->ndim-1] * dest->itemsize);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
Objects/memoryobject.c: In function ‘buffer_to_contiguous’:
Objects/memoryobject.c:505:38: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
505 | strides = PyMem_Malloc(src->ndim * (sizeof *src->strides));
| ^
Objects/memoryobject.c: In function ‘PyBuffer_ToContiguous’:
Objects/memoryobject.c:1062:39: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
1062 | memcpy((char *)buf, src->buf, len);
| ^~~
Objects/memoryobject.c:1067:50: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
1067 | fb = PyMem_Malloc(sizeof *fb + 3 * src->ndim * (sizeof *fb->array));
| ^
Objects/memoryobject.c: In function ‘struct_get_unpacker’:
Objects/memoryobject.c:2080:28: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
2080 | x->item = PyMem_Malloc(itemsize);
| ^~~~~~~~
Objects/memoryobject.c: In function ‘struct_unpack_single’:
Objects/memoryobject.c:2110:27: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
2110 | memcpy(x->item, ptr, x->itemsize);
| ~^~~~~~~~~~
Objects/memoryobject.c: In function ‘memory_hash’:
Objects/memoryobject.c:3064:36: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
3064 | mem = PyMem_Malloc(view->len);
| ~~~~^~~~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Objects/methodobject.o Objects/methodobject.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_runtime.h:17,
from ./Include/internal/pycore_pystate.h:11,
from ./Include/internal/pycore_call.h:12,
from Objects/methodobject.c:5:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
In file included from Objects/methodobject.c:7:
./Include/internal/pycore_object.h: In function ‘_PyType_PreHeaderSize’:
./Include/internal/pycore_object.h:453:30: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
453 | return _PyType_IS_GC(tp) * sizeof(PyGC_Head) +
| ^
./Include/internal/pycore_object.h:454:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
454 | _PyType_HasFeature(tp, Py_TPFLAGS_PREHEADER) * 2 * sizeof(PyObject *);
| ^
Objects/methodobject.c: In function ‘cfunction_vectorcall_FASTCALL_KEYWORDS_METHOD’:
Objects/methodobject.c:457:68: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
457 | PyObject *result = meth(PyCFunction_GET_SELF(func), cls, args, nargs, kwnames);
| ^~~~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Objects/moduleobject.o Objects/moduleobject.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_runtime.h:17,
from ./Include/internal/pycore_pystate.h:11,
from ./Include/internal/pycore_call.h:12,
from Objects/moduleobject.c:5:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
In file included from Objects/moduleobject.c:9:
./Include/internal/pycore_object.h: In function ‘_PyType_PreHeaderSize’:
./Include/internal/pycore_object.h:453:30: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
453 | return _PyType_IS_GC(tp) * sizeof(PyGC_Head) +
| ^
./Include/internal/pycore_object.h:454:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
454 | _PyType_HasFeature(tp, Py_TPFLAGS_PREHEADER) * 2 * sizeof(PyObject *);
| ^
Objects/moduleobject.c: In function ‘_PyModule_CreateInitialized’:
Objects/moduleobject.c:218:42: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
218 | m->md_state = PyMem_Malloc(module->m_size);
| ~~~~~~^~~~~~~~
Objects/moduleobject.c:224:38: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
224 | memset(m->md_state, 0, module->m_size);
| ~~~~~~^~~~~~~~
Objects/moduleobject.c: In function ‘PyModule_ExecDef’:
Objects/moduleobject.c:423:44: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
423 | md->md_state = PyMem_Malloc(def->m_size);
| ~~~^~~~~~~~
Objects/moduleobject.c:428:40: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
428 | memset(md->md_state, 0, def->m_size);
| ~~~^~~~~~~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Objects/namespaceobject.o Objects/namespaceobject.c
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Objects/object.o Objects/object.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_runtime.h:17,
from ./Include/internal/pycore_pystate.h:11,
from ./Include/internal/pycore_call.h:12,
from Objects/object.c:5:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
In file included from ./Include/internal/pycore_dict.h:13,
from Objects/object.c:9:
./Include/internal/pycore_object.h: In function ‘_PyType_PreHeaderSize’:
./Include/internal/pycore_object.h:453:30: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
453 | return _PyType_IS_GC(tp) * sizeof(PyGC_Head) +
| ^
./Include/internal/pycore_object.h:454:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
454 | _PyType_HasFeature(tp, Py_TPFLAGS_PREHEADER) * 2 * sizeof(PyObject *);
| ^
./Include/internal/pycore_dict.h: In function ‘_PyDict_NotifyEvent’:
./Include/internal/pycore_dict.h:233:42: warning: conversion to ‘uint64_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
233 | return DICT_NEXT_VERSION(interp) | watcher_bits;
| ^
./Include/internal/pycore_dict.h: In function ‘_PyDictValues_AddToInsertionOrder’:
./Include/internal/pycore_dict.h:254:17: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
254 | *size_ptr = size;
| ^~~~
Objects/object.c: In function ‘PyObject_Print’:
Objects/object.c:564:34: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
564 | fwrite(t, 1, len, fp);
| ^~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Objects/obmalloc.o Objects/obmalloc.c
In file included from Objects/obmalloc.c:4:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29,
from ./Include/internal/pycore_runtime.h:17,
from ./Include/internal/pycore_emscripten_trampoline.h:4,
from ./Include/internal/pycore_object.h:13,
from Objects/obmalloc.c:5:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
./Include/internal/pycore_object.h: In function ‘_PyType_PreHeaderSize’:
./Include/internal/pycore_object.h:453:30: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
453 | return _PyType_IS_GC(tp) * sizeof(PyGC_Head) +
| ^
./Include/internal/pycore_object.h:454:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
454 | _PyType_HasFeature(tp, Py_TPFLAGS_PREHEADER) * 2 * sizeof(PyObject *);
| ^
In file included from Objects/mimalloc/static.c:17,
from Objects/obmalloc.c:15:
./Include/internal/mimalloc/mimalloc/internal.h: In function ‘mi_page_thread_free’:
./Include/internal/mimalloc/mimalloc/internal.h:499:82: warning: unsigned conversion from ‘int’ to ‘mi_thread_free_t’ {aka ‘long unsigned int’} changes value from ‘-4’ to ‘18446744073709551612’ [-Wsign-conversion]
499 | return (mi_block_t*)(mi_atomic_load_relaxed(&((mi_page_t*)page)->xthread_free) & ~3);
| ^
./Include/internal/mimalloc/mimalloc/internal.h: In function ‘mi_tf_block’:
./Include/internal/mimalloc/mimalloc/internal.h:518:27: warning: unsigned conversion from ‘int’ to ‘mi_thread_free_t’ {aka ‘long unsigned int’} changes value from ‘-4’ to ‘18446744073709551612’ [-Wsign-conversion]
518 | return (mi_block_t*)(tf & ~0x03);
| ^
./Include/internal/mimalloc/mimalloc/internal.h: In function ‘mi_clz’:
./Include/internal/mimalloc/mimalloc/internal.h:816:10: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
816 | return __builtin_clzl(x);
| ^~~~~~~~~~~~~~~~~
./Include/internal/mimalloc/mimalloc/internal.h: In function ‘mi_ctz’:
./Include/internal/mimalloc/mimalloc/internal.h:824:10: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
824 | return __builtin_ctzl(x);
| ^~~~~~~~~~~~~~~~~
In file included from Objects/mimalloc/static.c:23:
Objects/mimalloc/alloc.c: In function ‘_mi_page_ptr_unalign’:
Objects/mimalloc/alloc.c:505:25: warning: conversion to ‘size_t’ {aka ‘const long unsigned int’} from ‘long int’ may change the sign of the result [-Wsign-conversion]
505 | const size_t diff = (uint8_t*)p - _mi_page_start(segment, page, NULL);
| ^
Objects/mimalloc/alloc.c: In function ‘mi_page_usable_aligned_size_of’:
Objects/mimalloc/alloc.c:629:16: warning: conversion to ‘long unsigned int’ from ‘ptrdiff_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
629 | return (size - adjust);
| ^
In file included from Objects/mimalloc/static.c:26:
Objects/mimalloc/arena.c: In function ‘mi_manage_os_memory_ex2’:
Objects/mimalloc/arena.c:789:20: warning: conversion to ‘ptrdiff_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
789 | ptrdiff_t post = (fields * MI_BITMAP_FIELD_BITS) - bcount;
| ^
Objects/mimalloc/arena.c:793:89: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘ptrdiff_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
793 | mi_bitmap_index_t postidx = mi_bitmap_index_create(fields - 1, MI_BITMAP_FIELD_BITS - post);
Objects/mimalloc/arena.c:794:51: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘ptrdiff_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
794 | _mi_bitmap_claim(arena->blocks_inuse, fields, post, postidx, NULL);
| ^~~~
Objects/mimalloc/arena.c: In function ‘mi_reserve_huge_os_pages_at_ex’:
Objects/mimalloc/arena.c:878:45: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
878 | if (numa_node >= 0) numa_node = numa_node % _mi_os_numa_node_count();
| ^
Objects/mimalloc/arena.c:878:35: warning: conversion from ‘size_t’ {aka ‘long unsigned int’} to ‘int’ may change value [-Wconversion]
878 | if (numa_node >= 0) numa_node = numa_node % _mi_os_numa_node_count();
| ^~~~~~~~~
Objects/mimalloc/arena.c:882:58: warning: conversion to ‘mi_msecs_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
882 | void* p = _mi_os_alloc_huge_os_pages(pages, numa_node, timeout_msecs, &pages_reserved, &hsize, &memid);
| ^~~~~~~~~~~~~
In file included from Objects/mimalloc/static.c:28:
Objects/mimalloc/heap.c: In function ‘mi_heap_area_visit_blocks’:
Objects/mimalloc/heap.c:545:21: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘long int’ may change the sign of the result [-Wsign-conversion]
545 | size_t offset = (uint8_t*)block - pstart;
| ^
In file included from Objects/mimalloc/static.c:29:
Objects/mimalloc/init.c: In function ‘mi_process_init’:
Objects/mimalloc/init.c:600:20: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘long int’ may change the sign of the result [-Wsign-conversion]
600 | size_t pages = mi_option_get_clamp(mi_option_reserve_huge_os_pages, 0, 128*1024);
| ^~~~~~~~~~~~~~~~~~~
Objects/mimalloc/init.c:603:42: warning: conversion from ‘long int’ to ‘int’ may change value [-Wconversion]
603 | mi_reserve_huge_os_pages_at(pages, reserve_at, pages*500);
| ^~~~~~~~~~
In file included from Objects/mimalloc/static.c:30:
Objects/mimalloc/options.c: In function ‘mi_option_init’:
Objects/mimalloc/options.c:541:39: warning: conversion to ‘long unsigned int’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
541 | else if (*end == 'M') { value *= MI_KiB; end++; }
| ^~
In file included from ./Include/internal/mimalloc/mimalloc/internal.h:17:
./Include/internal/mimalloc/mimalloc/types.h:149:20: warning: conversion to ‘long int’ from ‘long unsigned int’ may change the sign of the result [-Wsign-conversion]
149 | #define MI_KiB (MI_ZU(1024))
| ^
Objects/mimalloc/options.c:541:42: note: in expansion of macro ‘MI_KiB’
541 | else if (*end == 'M') { value *= MI_KiB; end++; }
| ^~~~~~
Objects/mimalloc/options.c:542:39: warning: conversion to ‘long unsigned int’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
542 | else if (*end == 'G') { value *= MI_MiB; end++; }
| ^~
./Include/internal/mimalloc/mimalloc/types.h:150:20: warning: conversion to ‘long int’ from ‘long unsigned int’ may change the sign of the result [-Wsign-conversion]
150 | #define MI_MiB (MI_KiB*MI_KiB)
| ^
Objects/mimalloc/options.c:542:42: note: in expansion of macro ‘MI_MiB’
542 | else if (*end == 'G') { value *= MI_MiB; end++; }
| ^~~~~~
Objects/mimalloc/options.c:543:31: warning: conversion to ‘long unsigned int’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
543 | else { value = (value + MI_KiB - 1) / MI_KiB; }
| ^
Objects/mimalloc/options.c:543:24: warning: conversion to ‘long int’ from ‘long unsigned int’ may change the sign of the result [-Wsign-conversion]
543 | else { value = (value + MI_KiB - 1) / MI_KiB; }
| ^
In file included from Objects/mimalloc/static.c:31:
Objects/mimalloc/os.c: In function ‘_mi_os_free_ex’:
Objects/mimalloc/os.c:164:13: warning: conversion to ‘long unsigned int’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
164 | csize += ((uint8_t*)addr - (uint8_t*)memid.mem.os.base);
| ^~
Objects/mimalloc/os.c: In function ‘mi_os_prim_alloc_aligned’:
Objects/mimalloc/os.c:272:25: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘long int’ may change the sign of the result [-Wsign-conversion]
272 | size_t pre_size = (uint8_t*)aligned_p - (uint8_t*)p;
| ^
Objects/mimalloc/os.c: In function ‘_mi_os_alloc_huge_os_pages’:
Objects/mimalloc/os.c:621:41: warning: conversion to ‘long unsigned int’ from ‘mi_msecs_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
621 | mi_msecs_t estimate = ((elapsed / (page+1)) * pages);
| ^
Objects/mimalloc/os.c:621:31: warning: conversion to ‘mi_msecs_t’ {aka ‘long int’} from ‘long unsigned int’ may change the sign of the result [-Wsign-conversion]
621 | mi_msecs_t estimate = ((elapsed / (page+1)) * pages);
| ^
In file included from Objects/mimalloc/page.c:23,
from Objects/mimalloc/static.c:32:
Objects/mimalloc/page-queue.c: In function ‘mi_bin’:
Objects/mimalloc/page-queue.c:68:30: warning: unsigned conversion from ‘int’ to ‘size_t’ {aka ‘long unsigned int’} changes value from ‘-2’ to ‘18446744073709551614’ [-Wsign-conversion]
68 | bin = (uint8_t)((wsize+1)&~1); // round to double word sizes
| ^
Objects/mimalloc/page-queue.c:88:11: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
88 | bin = ((b << 2) + (uint8_t)((wsize >> (b - 2)) & 0x03)) - 3;
| ^
Objects/mimalloc/page.c: In function ‘_mi_page_retire’:
Objects/mimalloc/page.c:460:28: warning: conversion to ‘size_t’ {aka ‘const long unsigned int’} from ‘long int’ may change the sign of the result [-Wsign-conversion]
460 | const size_t index = pq - heap->pages;
| ^~
In file included from Objects/mimalloc/static.c:33:
Objects/mimalloc/random.c: In function ‘_mi_os_random_weak’:
Objects/mimalloc/random.c:163:5: warning: conversion to ‘long unsigned int’ from ‘mi_msecs_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
163 | x ^= _mi_prim_clock_now();
| ^~
In file included from Objects/mimalloc/static.c:34:
Objects/mimalloc/segment.c: In function ‘mi_slice_start’:
Objects/mimalloc/segment.c:168:57: warning: conversion to ‘long unsigned int’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
168 | return ((uint8_t*)segment + ((slice - segment->slices)*MI_SEGMENT_SLICE_SIZE));
| ^
Objects/mimalloc/segment.c: In function ‘mi_slice_index’:
Objects/mimalloc/segment.c:199:10: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘ptrdiff_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
199 | return index;
| ^~~~~
Objects/mimalloc/segment.c: In function ‘_mi_segment_page_start_from_slice’:
Objects/mimalloc/segment.c:327:35: warning: conversion to ‘long unsigned int’ from ‘ptrdiff_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
327 | return (uint8_t*)segment + ((idx*MI_SEGMENT_SLICE_SIZE) + start_offset);
| ^
Objects/mimalloc/segment.c: In function ‘mi_segments_track_size’:
Objects/mimalloc/segment.c:373:14: warning: unsigned conversion from ‘int’ to ‘size_t’ {aka ‘long unsigned int’} changes the value of ‘-1’ [-Wsign-conversion]
373 | tld->count += (segment_size >= 0 ? 1 : -1);
| ^~
Objects/mimalloc/segment.c:375:21: warning: conversion to ‘long unsigned int’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
375 | tld->current_size += segment_size;
| ^~
Objects/mimalloc/segment.c: In function ‘mi_segment_commit_mask’:
Objects/mimalloc/segment.c:422:19: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘long int’ may change the sign of the result [-Wsign-conversion]
422 | size_t pstart = (p - (uint8_t*)segment);
| ^
Objects/mimalloc/segment.c: In function ‘mi_segment_span_allocate’:
Objects/mimalloc/segment.c:736:56: warning: conversion to ‘long unsigned int’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
736 | last->slice_offset = (uint32_t)(sizeof(mi_slice_t) * (last - slice));
| ^
Objects/mimalloc/segment.c: In function ‘mi_segment_alloc’:
Objects/mimalloc/segment.c:883:55: warning: conversion to ‘long unsigned int’ from ‘ptrdiff_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
883 | size_t prefix = offsetof(mi_segment_t, slices) - ofs;
| ^
Objects/mimalloc/segment.c: In function ‘mi_segment_page_clear’:
Objects/mimalloc/segment.c:1000:51: warning: conversion to ‘long unsigned int’ from ‘ptrdiff_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
1000 | _mi_memzero((uint8_t*)page + ofs, sizeof(*page) - ofs);
| ^
Objects/mimalloc/segment.c: In function ‘mi_segment_huge_page_alloc’:
Objects/mimalloc/segment.c:1538:34: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘ptrdiff_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
1538 | _mi_os_reset(decommit_start, decommit_size, &_mi_stats_main); // note: cannot use segment_decommit on huge segments
| ^~~~~~~~~~~~~
In file included from Objects/mimalloc/static.c:36:
Objects/mimalloc/stats.c: In function ‘_mi_stat_counter_increase’:
Objects/mimalloc/stats.c:62:17: warning: conversion to ‘long unsigned int’ from ‘int64_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
62 | stat->total += amount;
| ^~
Objects/mimalloc/stats.c:62:20: warning: conversion to ‘int64_t’ {aka ‘long int’} from ‘long unsigned int’ may change the sign of the result [-Wsign-conversion]
62 | stat->total += amount;
| ^~~~~~
Objects/mimalloc/stats.c: In function ‘mi_printf_amount’:
Objects/mimalloc/stats.c:149:21: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
149 | snprintf(buf, len, "%d %-3s", (int)n, (n==0 ? "" : suffix));
| ^~~
Objects/mimalloc/stats.c:162:19: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
162 | snprintf(buf, len, "%ld.%ld %-3s", whole, (frac1 < 0 ? -frac1 : frac1), unitdesc);
| ^~~
In file included from Objects/mimalloc/prim/prim.c:22,
from Objects/mimalloc/static.c:37:
Objects/mimalloc/prim/unix/prim.c: In function ‘mi_prim_open’:
Objects/mimalloc/prim/unix/prim.c:67:10: warning: conversion from ‘long int’ to ‘int’ may change value [-Wconversion]
67 | return syscall(SYS_open,fpath,open_flags,0);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Objects/mimalloc/prim/unix/prim.c: In function ‘mi_prim_close’:
Objects/mimalloc/prim/unix/prim.c:73:10: warning: conversion from ‘long int’ to ‘int’ may change value [-Wconversion]
73 | return syscall(SYS_close,fd);
| ^~~~~~~~~~~~~~~~~~~~~
Objects/mimalloc/prim/unix/prim.c: In function ‘mi_prim_access’:
Objects/mimalloc/prim/unix/prim.c:76:10: warning: conversion from ‘long int’ to ‘int’ may change value [-Wconversion]
76 | return syscall(SYS_access,fpath,mode);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Objects/mimalloc/prim/unix/prim.c: In function ‘unix_mmap’:
Objects/mimalloc/prim/unix/prim.c:262:16: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
262 | lflags |= MAP_HUGE_1GB;
| ^~
Objects/mimalloc/prim/unix/prim.c:262:19: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
262 | lflags |= MAP_HUGE_1GB;
| ^~~~~~~~~~~~
Objects/mimalloc/prim/unix/prim.c:268:16: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
268 | lflags |= MAP_HUGE_2MB;
| ^~
Objects/mimalloc/prim/unix/prim.c:268:19: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
268 | lflags |= MAP_HUGE_2MB;
| ^~~~~~~~~~~~
Objects/mimalloc/prim/unix/prim.c:279:34: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
279 | if (p == NULL && (lflags & MAP_HUGE_1GB) != 0) {
| ^
Objects/mimalloc/prim/unix/prim.c:282:29: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
282 | lflags = ((lflags & ~MAP_HUGE_1GB) | MAP_HUGE_2MB);
| ^
Objects/mimalloc/prim/unix/prim.c:282:20: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
282 | lflags = ((lflags & ~MAP_HUGE_1GB) | MAP_HUGE_2MB);
| ^
Objects/mimalloc/prim/unix/prim.c: In function ‘_mi_prim_process_info’:
Objects/mimalloc/prim/unix/prim.c:611:24: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘long int’ may change the sign of the result [-Wsign-conversion]
611 | pinfo->page_faults = rusage.ru_majflt;
| ^~~~~~
Objects/mimalloc/prim/unix/prim.c:640:21: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘long int’ may change the sign of the result [-Wsign-conversion]
640 | pinfo->peak_rss = rusage.ru_maxrss * 1024; // Linux/BSD report in KiB
| ^~~~~~
Objects/mimalloc/prim/unix/prim.c: In function ‘_mi_prim_random_buf’:
Objects/mimalloc/prim/unix/prim.c:798:13: warning: conversion to ‘long unsigned int’ from ‘ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
798 | count += ret;
| ^~
Objects/obmalloc.c: In function ‘_PyInterpreterState_GetAllocatedBlocks’:
Objects/obmalloc.c:1039:16: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
1039 | return allocated_blocks;
| ^~~~~~~~~~~~~~~~
Objects/obmalloc.c: In function ‘get_num_global_allocated_blocks’:
Objects/obmalloc.c:1113:16: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
1113 | return allocated_blocks;
| ^~~~~~~~~~~~~~~~
In file included from ./Include/internal/pycore_interp.h:31:
Objects/obmalloc.c: In function ‘arena_map_get’:
./Include/internal/pycore_obmalloc.h:605:26: warning: conversion from ‘long unsigned int’ to ‘int’ may change value [-Wconversion]
605 | #define MAP_TOP_INDEX(p) ((AS_UINT(p) >> MAP_TOP_SHIFT) & MAP_TOP_MASK)
| ^
Objects/obmalloc.c:1186:14: note: in expansion of macro ‘MAP_TOP_INDEX’
1186 | int i1 = MAP_TOP_INDEX(p);
| ^~~~~~~~~~~~~
Objects/obmalloc.c: In function ‘_PyDebugAllocatorStats’:
Objects/obmalloc.c:2681:42: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
2681 | (void)printone(out, buf2, num_blocks * sizeof_block);
| ^
Objects/obmalloc.c: In function ‘pymalloc_print_stats’:
Objects/obmalloc.c:1174:42: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
1174 | #define arena_map_mid_count (state->usage.arena_map_mid_count)
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
Objects/obmalloc.c:2895:50: note: in expansion of macro ‘arena_map_mid_count’
2895 | (void)printone(out, "# arena map mid nodes", arena_map_mid_count);
| ^~~~~~~~~~~~~~~~~~~
Objects/obmalloc.c:1175:42: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
1175 | #define arena_map_bot_count (state->usage.arena_map_bot_count)
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
Objects/obmalloc.c:2896:50: note: in expansion of macro ‘arena_map_bot_count’
2896 | (void)printone(out, "# arena map bot nodes", arena_map_bot_count);
| ^~~~~~~~~~~~~~~~~~~
Objects/obmalloc.c:2902:47: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
2902 | sizeof(arena_map_mid_t) * arena_map_mid_count);
| ^
Objects/obmalloc.c:2904:47: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
2904 | sizeof(arena_map_bot_t) * arena_map_bot_count);
| ^
Objects/mimalloc/arena.c: In function ‘mi_manage_os_memory_ex2’:
Objects/mimalloc/arena.c:781:62: warning: array subscript 2 is above array bounds of ‘_Atomic mi_bitmap_field_t[1]’ {aka ‘_Atomic long unsigned int[1]’} [-Warray-bounds=]
781 | arena->blocks_committed = (arena->memid.is_pinned ? NULL : &arena->blocks_inuse[2*fields]); // just after dirty bitmap
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Objects/mimalloc/arena.c:58:22: note: while referencing ‘blocks_inuse’
58 | mi_bitmap_field_t blocks_inuse[1]; // in-place bitmap of in-use blocks (of size `field_count`)
| ^~~~~~~~~~~~
Objects/mimalloc/arena.c:782:59: warning: array subscript 3 is above array bounds of ‘_Atomic mi_bitmap_field_t[1]’ {aka ‘_Atomic long unsigned int[1]’} [-Warray-bounds=]
782 | arena->blocks_purge = (arena->memid.is_pinned ? NULL : &arena->blocks_inuse[3*fields]); // just after committed bitmap
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Objects/mimalloc/arena.c:58:22: note: while referencing ‘blocks_inuse’
58 | mi_bitmap_field_t blocks_inuse[1]; // in-place bitmap of in-use blocks (of size `field_count`)
| ^~~~~~~~~~~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Objects/picklebufobject.o Objects/picklebufobject.c
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Objects/rangeobject.o Objects/rangeobject.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_ceval.h:13,
from Objects/rangeobject.c:5:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
In file included from Objects/rangeobject.c:6:
./Include/internal/pycore_long.h: In function ‘_PyLong_DigitCount’:
./Include/internal/pycore_long.h:238:34: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘uintptr_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
238 | return op->long_value.lv_tag >> NON_SIZE_BITS;
| ^
./Include/internal/pycore_long.h: In function ‘_PyLong_SetSignAndDigitCount’:
./Include/internal/pycore_long.h:273:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
273 | #define TAG_FROM_SIGN_AND_SIZE(sign, size) ((1 - (sign)) | ((size) << NON_SIZE_BITS))
| ^
./Include/internal/pycore_long.h:281:29: note: in expansion of macro ‘TAG_FROM_SIGN_AND_SIZE’
281 | op->long_value.lv_tag = TAG_FROM_SIGN_AND_SIZE(sign, (size_t)size);
| ^~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_long.h: In function ‘_PyLong_FlipSign’:
./Include/internal/pycore_long.h:296:27: warning: unsigned conversion from ‘int’ to ‘uintptr_t’ {aka ‘long unsigned int’} changes value from ‘-8’ to ‘18446744073709551608’ [-Wsign-conversion]
296 | op->long_value.lv_tag &= NON_SIZE_MASK;
| ^~
Objects/rangeobject.c: In function ‘get_len_of_range’:
Objects/rangeobject.c:950:26: warning: conversion to ‘long unsigned int’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
950 | return 1UL + (hi - 1UL - lo) / step;
| ^
Objects/rangeobject.c:950:32: warning: conversion to ‘long unsigned int’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
950 | return 1UL + (hi - 1UL - lo) / step;
| ^
Objects/rangeobject.c:950:38: warning: conversion to ‘long unsigned int’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
950 | return 1UL + (hi - 1UL - lo) / step;
| ^
Objects/rangeobject.c:952:26: warning: conversion to ‘long unsigned int’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
952 | return 1UL + (lo - 1UL - hi) / (0UL - step);
| ^
Objects/rangeobject.c:952:32: warning: conversion to ‘long unsigned int’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
952 | return 1UL + (lo - 1UL - hi) / (0UL - step);
| ^
Objects/rangeobject.c:952:45: warning: conversion to ‘long unsigned int’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
952 | return 1UL + (lo - 1UL - hi) / (0UL - step);
| ^
Objects/rangeobject.c: In function ‘range_reverse’:
Objects/rangeobject.c:1235:36: warning: unsigned conversion from ‘long int’ to ‘long unsigned int’ changes value from ‘-9223372036854775808’ to ‘9223372036854775808’ [-Wsign-conversion]
1235 | if ((unsigned long)lstart - LONG_MIN < (unsigned long)lstep)
| ^
Objects/rangeobject.c:1239:52: warning: conversion to ‘long unsigned int’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
1239 | if (LONG_MAX - (unsigned long)lstart < 0UL - lstep)
| ^
Objects/rangeobject.c:1248:40: warning: conversion to ‘long unsigned int’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
1248 | new_start = (long)(new_stop + ulen * lstep);
| ^
Objects/rangeobject.c:1248:33: warning: conversion to ‘long unsigned int’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
1248 | new_start = (long)(new_stop + ulen * lstep);
| ^
In file included from ./Include/tupleobject.h:39,
from ./Include/Python.h:73,
from Objects/rangeobject.c:3:
In function ‘PyTuple_SET_ITEM’,
inlined from ‘range_hash’ at Objects/rangeobject.c:590:9:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘range_hash’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘range_hash’ at Objects/rangeobject.c:598:13:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 2 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘range_hash’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘range_hash’ at Objects/rangeobject.c:595:13:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 2 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘range_hash’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘range_hash’ at Objects/rangeobject.c:586:9:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘range_hash’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘range_hash’ at Objects/rangeobject.c:587:9:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 2 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘range_hash’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Objects/setobject.o Objects/setobject.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_ceval.h:13,
from Objects/setobject.c:35:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
In file included from ./Include/internal/pycore_dict.h:13,
from Objects/setobject.c:36:
./Include/internal/pycore_object.h: In function ‘_PyType_PreHeaderSize’:
./Include/internal/pycore_object.h:453:30: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
453 | return _PyType_IS_GC(tp) * sizeof(PyGC_Head) +
| ^
./Include/internal/pycore_object.h:454:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
454 | _PyType_HasFeature(tp, Py_TPFLAGS_PREHEADER) * 2 * sizeof(PyObject *);
| ^
./Include/internal/pycore_dict.h: In function ‘_PyDict_NotifyEvent’:
./Include/internal/pycore_dict.h:233:42: warning: conversion to ‘uint64_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
233 | return DICT_NEXT_VERSION(interp) | watcher_bits;
| ^
./Include/internal/pycore_dict.h: In function ‘_PyDictValues_AddToInsertionOrder’:
./Include/internal/pycore_dict.h:254:17: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
254 | *size_ptr = size;
| ^~~~
Objects/setobject.c: In function ‘set_lookkey’:
Objects/setobject.c:65:22: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_hash_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
65 | size_t perturb = hash;
| ^~~~
Objects/setobject.c:66:19: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
66 | size_t mask = so->mask;
| ^~
Objects/setobject.c:96:24: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
96 | mask = so->mask;
| ^~
Objects/setobject.c: In function ‘set_add_entry’:
Objects/setobject.c:125:12: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
125 | mask = so->mask;
| ^~
Objects/setobject.c:128:15: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_hash_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
128 | perturb = hash;
| ^~~~
Objects/setobject.c:155:24: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
155 | mask = so->mask;
| ^~
Objects/setobject.c: In function ‘set_insert_clean’:
Objects/setobject.c:205:22: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_hash_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
205 | size_t perturb = hash;
| ^~~~
Objects/setobject.c: In function ‘set_table_resize’:
Objects/setobject.c:289:16: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
289 | so->mask = newsize - 1;
| ^~~~~~~
Objects/setobject.c: In function ‘frozenset_hash’:
Objects/setobject.c:710:36: warning: conversion to ‘Py_uhash_t’ {aka ‘long unsigned int’} from ‘Py_hash_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
710 | hash ^= _shuffle_bits(entry->hash);
| ~~~~~^~~~~~
Objects/setobject.c:718:31: warning: unsigned conversion from ‘int’ to ‘Py_uhash_t’ {aka ‘long unsigned int’} changes value from ‘-1’ to ‘18446744073709551615’ [-Wsign-conversion]
718 | hash ^= _shuffle_bits(-1);
| ^~
Objects/setobject.c:731:16: warning: conversion to ‘Py_hash_t’ {aka ‘long int’} from ‘Py_uhash_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
731 | so->hash = hash;
| ^~~~
Objects/setobject.c:732:12: warning: conversion to ‘Py_hash_t’ {aka ‘long int’} from ‘Py_uhash_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
732 | return hash;
| ^~~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Objects/sliceobject.o Objects/sliceobject.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_runtime.h:17,
from ./Include/internal/pycore_long.h:13,
from Objects/sliceobject.c:18:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
./Include/internal/pycore_long.h: In function ‘_PyLong_DigitCount’:
./Include/internal/pycore_long.h:238:34: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘uintptr_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
238 | return op->long_value.lv_tag >> NON_SIZE_BITS;
| ^
./Include/internal/pycore_long.h: In function ‘_PyLong_SetSignAndDigitCount’:
./Include/internal/pycore_long.h:273:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
273 | #define TAG_FROM_SIGN_AND_SIZE(sign, size) ((1 - (sign)) | ((size) << NON_SIZE_BITS))
| ^
./Include/internal/pycore_long.h:281:29: note: in expansion of macro ‘TAG_FROM_SIGN_AND_SIZE’
281 | op->long_value.lv_tag = TAG_FROM_SIGN_AND_SIZE(sign, (size_t)size);
| ^~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_long.h: In function ‘_PyLong_FlipSign’:
./Include/internal/pycore_long.h:296:27: warning: unsigned conversion from ‘int’ to ‘uintptr_t’ {aka ‘long unsigned int’} changes value from ‘-8’ to ‘18446744073709551608’ [-Wsign-conversion]
296 | op->long_value.lv_tag &= NON_SIZE_MASK;
| ^~
In file included from Objects/sliceobject.c:20:
./Include/internal/pycore_object.h: In function ‘_PyType_PreHeaderSize’:
./Include/internal/pycore_object.h:453:30: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
453 | return _PyType_IS_GC(tp) * sizeof(PyGC_Head) +
| ^
./Include/internal/pycore_object.h:454:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
454 | _PyType_HasFeature(tp, Py_TPFLAGS_PREHEADER) * 2 * sizeof(PyObject *);
| ^
Objects/sliceobject.c: In function ‘slicehash’:
Objects/sliceobject.c:657:23: warning: conversion to ‘Py_uhash_t’ {aka ‘long unsigned int’} from ‘Py_hash_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
657 | Py_uhash_t lane = PyObject_Hash(v->com); \
| ^~~~~~~~~~~~~
Objects/sliceobject.c:665:5: note: in expansion of macro ‘_PyHASH_SLICE_PART’
665 | _PyHASH_SLICE_PART(start);
| ^~~~~~~~~~~~~~~~~~
Objects/sliceobject.c:657:23: warning: conversion to ‘Py_uhash_t’ {aka ‘long unsigned int’} from ‘Py_hash_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
657 | Py_uhash_t lane = PyObject_Hash(v->com); \
| ^~~~~~~~~~~~~
Objects/sliceobject.c:666:5: note: in expansion of macro ‘_PyHASH_SLICE_PART’
666 | _PyHASH_SLICE_PART(stop);
| ^~~~~~~~~~~~~~~~~~
Objects/sliceobject.c:657:23: warning: conversion to ‘Py_uhash_t’ {aka ‘long unsigned int’} from ‘Py_hash_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
657 | Py_uhash_t lane = PyObject_Hash(v->com); \
| ^~~~~~~~~~~~~
Objects/sliceobject.c:667:5: note: in expansion of macro ‘_PyHASH_SLICE_PART’
667 | _PyHASH_SLICE_PART(step);
| ^~~~~~~~~~~~~~~~~~
Objects/sliceobject.c:672:12: warning: conversion to ‘Py_hash_t’ {aka ‘long int’} from ‘Py_uhash_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
672 | return acc;
| ^~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Objects/structseq.o Objects/structseq.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_runtime.h:17,
from ./Include/internal/pycore_emscripten_trampoline.h:4,
from ./Include/internal/pycore_object.h:13,
from Objects/structseq.c:13:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
./Include/internal/pycore_object.h: In function ‘_PyType_PreHeaderSize’:
./Include/internal/pycore_object.h:453:30: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
453 | return _PyType_IS_GC(tp) * sizeof(PyGC_Head) +
| ^
./Include/internal/pycore_object.h:454:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
454 | _PyType_HasFeature(tp, Py_TPFLAGS_PREHEADER) * 2 * sizeof(PyObject *);
| ^
Objects/structseq.c: In function ‘structseq_repr’:
Objects/structseq.c:262:48: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
262 | strlen(typ->tp_name),
| ^~~~~~~~~~~~~~~~~~~~
Objects/structseq.c:300:58: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
300 | PyObject *name = PyUnicode_DecodeUTF8(name_utf8, strlen(name_utf8), NULL);
| ^~~~~~~~~~~~~~~~~
In file included from ./Include/Python.h:53,
from Objects/structseq.c:10:
Objects/structseq.c: In function ‘initialize_members’:
./Include/pymem.h:65:37: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
65 | ( (type *) PyMem_Malloc((n) * sizeof(type)) ) )
| ^
./Include/pymem.h:82:35: note: in expansion of macro ‘PyMem_New’
82 | #define PyMem_NEW(type, n) PyMem_New(type, (n))
| ^~~~~~~~~
Objects/structseq.c:536:15: note: in expansion of macro ‘PyMem_NEW’
536 | members = PyMem_NEW(PyMemberDef, n_members - n_unnamed_members + 1);
| ^~~~~~~~~
Objects/structseq.c:553:15: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
553 | + i * sizeof(PyObject*);
| ^
Objects/structseq.c:552:29: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘long unsigned int’ may change the sign of the result [-Wsign-conversion]
552 | members[k].offset = offsetof(PyStructSequence, ob_item)
| ^~~~~~~~
In file included from ./Include/Python.h:58:
Objects/structseq.c: In function ‘_PyStructSequence_NewType’:
./Include/object.h:664:29: warning: conversion from ‘long unsigned int’ to ‘unsigned int’ may change value [-Wconversion]
664 | #define Py_TPFLAGS_DEFAULT ( \
| ^
Objects/structseq.c:760:18: note: in expansion of macro ‘Py_TPFLAGS_DEFAULT’
760 | spec.flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | tp_flags;
| ^~~~~~~~~~~~~~~~~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Objects/tupleobject.o Objects/tupleobject.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_ceval.h:13,
from Objects/tupleobject.c:6:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
In file included from Objects/tupleobject.c:10:
./Include/internal/pycore_object.h: In function ‘_PyType_PreHeaderSize’:
./Include/internal/pycore_object.h:453:30: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
453 | return _PyType_IS_GC(tp) * sizeof(PyGC_Head) +
| ^
./Include/internal/pycore_object.h:454:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
454 | _PyType_HasFeature(tp, Py_TPFLAGS_PREHEADER) * 2 * sizeof(PyObject *);
| ^
Objects/tupleobject.c: In function ‘tuplehash’:
Objects/tupleobject.c:328:27: warning: conversion to ‘Py_uhash_t’ {aka ‘long unsigned int’} from ‘Py_hash_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
328 | Py_uhash_t lane = PyObject_Hash(item[i]);
| ^~~~~~~~~~~~~
Objects/tupleobject.c:338:16: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
338 | acc += len ^ (_PyHASH_XXPRIME_5 ^ 3527539UL);
| ^
Objects/tupleobject.c:343:12: warning: conversion to ‘Py_hash_t’ {aka ‘long int’} from ‘Py_uhash_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
343 | return acc;
| ^~~
Objects/tupleobject.c: In function ‘tuplerepeat’:
Objects/tupleobject.c:529:66: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
529 | _Py_memory_repeat((char *)np->ob_item, sizeof(PyObject *)*output_size,
| ^
Objects/tupleobject.c:530:45: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
530 | sizeof(PyObject *)*input_size);
| ^
Objects/tupleobject.c:529:66: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘long unsigned int’ may change the sign of the result [-Wsign-conversion]
529 | _Py_memory_repeat((char *)np->ob_item, sizeof(PyObject *)*output_size,
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
Objects/tupleobject.c:530:45: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘long unsigned int’ may change the sign of the result [-Wsign-conversion]
530 | sizeof(PyObject *)*input_size);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
Objects/tupleobject.c: In function ‘tuplesubscript’:
Objects/tupleobject.c:801:24: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
801 | for (cur = start, i = 0; i < slicelength;
| ^~~~~
Objects/tupleobject.c:802:22: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
802 | cur += step, i++) {
| ^~
Objects/tupleobject.c: In function ‘_PyTuple_Resize’:
Objects/tupleobject.c:958:37: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
958 | sizeof(*sv->ob_item) * (newsize - oldsize));
| ^
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Objects/typeobject.o Objects/typeobject.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_runtime.h:17,
from ./Include/internal/pycore_pystate.h:11,
from ./Include/internal/pycore_call.h:12,
from Objects/typeobject.c:5:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
In file included from ./Include/internal/pycore_dict.h:13,
from Objects/typeobject.c:7:
./Include/internal/pycore_object.h: In function ‘_PyType_PreHeaderSize’:
./Include/internal/pycore_object.h:453:30: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
453 | return _PyType_IS_GC(tp) * sizeof(PyGC_Head) +
| ^
./Include/internal/pycore_object.h:454:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
454 | _PyType_HasFeature(tp, Py_TPFLAGS_PREHEADER) * 2 * sizeof(PyObject *);
| ^
./Include/internal/pycore_dict.h: In function ‘_PyDict_NotifyEvent’:
./Include/internal/pycore_dict.h:233:42: warning: conversion to ‘uint64_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
233 | return DICT_NEXT_VERSION(interp) | watcher_bits;
| ^
./Include/internal/pycore_dict.h: In function ‘_PyDictValues_AddToInsertionOrder’:
./Include/internal/pycore_dict.h:254:17: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
254 | *size_ptr = size;
| ^~~~
In file included from Objects/typeobject.c:9:
./Include/internal/pycore_long.h: In function ‘_PyLong_DigitCount’:
./Include/internal/pycore_long.h:238:34: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘uintptr_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
238 | return op->long_value.lv_tag >> NON_SIZE_BITS;
| ^
./Include/internal/pycore_long.h: In function ‘_PyLong_SetSignAndDigitCount’:
./Include/internal/pycore_long.h:273:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
273 | #define TAG_FROM_SIGN_AND_SIZE(sign, size) ((1 - (sign)) | ((size) << NON_SIZE_BITS))
| ^
./Include/internal/pycore_long.h:281:29: note: in expansion of macro ‘TAG_FROM_SIGN_AND_SIZE’
281 | op->long_value.lv_tag = TAG_FROM_SIGN_AND_SIZE(sign, (size_t)size);
| ^~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_long.h: In function ‘_PyLong_FlipSign’:
./Include/internal/pycore_long.h:296:27: warning: unsigned conversion from ‘int’ to ‘uintptr_t’ {aka ‘long unsigned int’} changes value from ‘-8’ to ‘18446744073709551608’ [-Wsign-conversion]
296 | op->long_value.lv_tag &= NON_SIZE_MASK;
| ^~
Objects/typeobject.c: In function ‘PyType_Unwatch’:
Objects/typeobject.c:779:25: warning: conversion from ‘int’ to ‘unsigned char’ may change value [-Wconversion]
779 | type->tp_watched &= ~(1 << watcher_id);
| ^
Objects/typeobject.c: In function ‘vectorcall_unbound’:
Objects/typeobject.c:2254:21: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
2254 | size_t nargsf = nargs;
| ^~~~~
Objects/typeobject.c: In function ‘set_mro_error’:
Objects/typeobject.c:2450:53: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
2450 | off += PyOS_snprintf(buf + off, sizeof(buf) - off, " %s", name_str);
| ^
In file included from ./Include/Python.h:53,
from Objects/typeobject.c:3:
Objects/typeobject.c: In function ‘pmerge’:
./Include/pymem.h:65:37: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
65 | ( (type *) PyMem_Malloc((n) * sizeof(type)) ) )
| ^
Objects/typeobject.c:2472:14: note: in expansion of macro ‘PyMem_New’
2472 | remain = PyMem_New(int, to_merge_size);
| ^~~~~~~~~
Objects/typeobject.c: In function ‘mro_implementation’:
./Include/pymem.h:65:37: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
65 | ( (type *) PyMem_Malloc((n) * sizeof(type)) ) )
| ^
Objects/typeobject.c:2586:27: note: in expansion of macro ‘PyMem_New’
2586 | PyObject **to_merge = PyMem_New(PyObject *, n + 1);
| ^~~~~~~~~
Objects/typeobject.c: In function ‘type_new_set_doc’:
Objects/typeobject.c:3491:23: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
3491 | Py_ssize_t size = strlen(doc_str) + 1;
| ^~~~~~
Objects/typeobject.c:3492:44: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
3492 | char *tp_doc = (char *)PyObject_Malloc(size);
| ^~~~
Objects/typeobject.c:3498:29: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
3498 | memcpy(tp_doc, doc_str, size);
| ^~~~
Objects/typeobject.c: In function ‘type_new_descriptors’:
Objects/typeobject.c:3583:24: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
3583 | slotoffset += sizeof(PyObject *);
| ^~
Objects/typeobject.c:3583:27: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘long unsigned int’ may change the sign of the result [-Wsign-conversion]
3583 | slotoffset += sizeof(PyObject *);
| ^~~~~~
Objects/typeobject.c: In function ‘_PyType_FromMetaclass_impl’:
Objects/typeobject.c:4211:31: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
4211 | Py_ssize_t name_buf_len = strlen(spec->name) + 1;
| ^~~~~~
Objects/typeobject.c:4212:31: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
4212 | _ht_tpname = PyMem_Malloc(name_buf_len);
| ^~~~~~~~~~~~
Objects/typeobject.c:4216:36: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
4216 | memcpy(_ht_tpname, spec->name, name_buf_len);
| ^~~~~~~~~~~~
In file included from ./Include/Python.h:58:
./Include/object.h:300:23: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
300 | # define Py_TYPE(ob) Py_TYPE(_PyObject_CAST(ob))
| ^~~~~~~
Objects/typeobject.c:4382:30: note: in expansion of macro ‘Py_TYPE’
4382 | size_t len = Py_TYPE(type)->tp_itemsize * nmembers;
| ^~~~~~~
Objects/typeobject.c: In function ‘same_slots_added’:
Objects/typeobject.c:5653:14: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
5653 | size += sizeof(PyObject *);
| ^~
Objects/typeobject.c:5653:17: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘long unsigned int’ may change the sign of the result [-Wsign-conversion]
5653 | size += sizeof(PyObject *);
| ^~~~~~
Objects/typeobject.c:5655:14: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
5655 | size += sizeof(PyObject *);
| ^~
Objects/typeobject.c:5655:17: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘long unsigned int’ may change the sign of the result [-Wsign-conversion]
5655 | size += sizeof(PyObject *);
| ^~~~~~
Objects/typeobject.c:5667:36: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
5667 | size += sizeof(PyObject *) * PyTuple_GET_SIZE(slots_a);
| ^
Objects/typeobject.c:5667:14: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
5667 | size += sizeof(PyObject *) * PyTuple_GET_SIZE(slots_a);
| ^~
Objects/typeobject.c:5667:17: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘long unsigned int’ may change the sign of the result [-Wsign-conversion]
5667 | size += sizeof(PyObject *) * PyTuple_GET_SIZE(slots_a);
| ^~~~~~
Objects/typeobject.c: In function ‘object_getstate_default’:
Objects/typeobject.c:5946:23: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
5946 | basicsize += sizeof(PyObject *);
| ^~
Objects/typeobject.c:5946:26: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘long unsigned int’ may change the sign of the result [-Wsign-conversion]
5946 | basicsize += sizeof(PyObject *);
| ^~~~~~
Objects/typeobject.c:5949:23: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
5949 | basicsize += sizeof(PyObject *);
| ^~
Objects/typeobject.c:5949:26: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘long unsigned int’ may change the sign of the result [-Wsign-conversion]
5949 | basicsize += sizeof(PyObject *);
| ^~~~~~
Objects/typeobject.c:5952:45: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
5952 | basicsize += sizeof(PyObject *) * PyList_GET_SIZE(slotnames);
| ^
Objects/typeobject.c:5952:23: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
5952 | basicsize += sizeof(PyObject *) * PyList_GET_SIZE(slotnames);
| ^~
Objects/typeobject.c:5952:26: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘long unsigned int’ may change the sign of the result [-Wsign-conversion]
5952 | basicsize += sizeof(PyObject *) * PyList_GET_SIZE(slotnames);
| ^~~~~~
Objects/typeobject.c: In function ‘slotptr’:
Objects/typeobject.c:9658:16: warning: conversion to ‘long unsigned int’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
9658 | offset -= offsetof(PyHeapTypeObject, as_buffer);
| ^~
Objects/typeobject.c:9658:19: warning: conversion to ‘long int’ from ‘long unsigned int’ may change the sign of the result [-Wsign-conversion]
9658 | offset -= offsetof(PyHeapTypeObject, as_buffer);
| ^~~~~~~~
Objects/typeobject.c:9662:16: warning: conversion to ‘long unsigned int’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
9662 | offset -= offsetof(PyHeapTypeObject, as_sequence);
| ^~
Objects/typeobject.c:9662:19: warning: conversion to ‘long int’ from ‘long unsigned int’ may change the sign of the result [-Wsign-conversion]
9662 | offset -= offsetof(PyHeapTypeObject, as_sequence);
| ^~~~~~~~
Objects/typeobject.c:9666:16: warning: conversion to ‘long unsigned int’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
9666 | offset -= offsetof(PyHeapTypeObject, as_mapping);
| ^~
Objects/typeobject.c:9666:19: warning: conversion to ‘long int’ from ‘long unsigned int’ may change the sign of the result [-Wsign-conversion]
9666 | offset -= offsetof(PyHeapTypeObject, as_mapping);
| ^~~~~~~~
Objects/typeobject.c:9670:16: warning: conversion to ‘long unsigned int’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
9670 | offset -= offsetof(PyHeapTypeObject, as_number);
| ^~
Objects/typeobject.c:9670:19: warning: conversion to ‘long int’ from ‘long unsigned int’ may change the sign of the result [-Wsign-conversion]
9670 | offset -= offsetof(PyHeapTypeObject, as_number);
| ^~~~~~~~
Objects/typeobject.c:9674:16: warning: conversion to ‘long unsigned int’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
9674 | offset -= offsetof(PyHeapTypeObject, as_async);
| ^~
Objects/typeobject.c:9674:19: warning: conversion to ‘long int’ from ‘long unsigned int’ may change the sign of the result [-Wsign-conversion]
9674 | offset -= offsetof(PyHeapTypeObject, as_async);
| ^~~~~~~~
In file included from ./Include/tupleobject.h:39,
from ./Include/Python.h:73:
In function ‘_super_lookup_descr’,
inlined from ‘do_super_lookup’ at Objects/typeobject.c:10278:11:
./Include/cpython/tupleobject.h:27:64: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
27 | #define PyTuple_GET_ITEM(op, index) (_PyTuple_CAST(op)->ob_item[(index)])
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
Objects/typeobject.c:10249:25: note: in expansion of macro ‘PyTuple_GET_ITEM’
10249 | PyObject *obj = PyTuple_GET_ITEM(mro, i);
| ^~~~~~~~~~~~~~~~
./Include/cpython/tupleobject.h: In function ‘do_super_lookup’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘_PyObject_GetNewArguments’,
inlined from ‘reduce_newobj’ at Objects/typeobject.c:6225:9,
inlined from ‘_common_reduce’ at Objects/typeobject.c:6327:16,
inlined from ‘object___reduce_ex___impl’ at Objects/typeobject.c:6401:12,
inlined from ‘object___reduce_ex__’ at Objects/clinic/typeobject.c.h:193:20:
./Include/object.h:1009:26: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
1009 | # define Py_NewRef(obj) _Py_NewRef(_PyObject_CAST(obj))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Objects/typeobject.c:6112:19: note: in expansion of macro ‘Py_NewRef’
6112 | *kwargs = Py_NewRef(PyTuple_GET_ITEM(newargs, 1));
| ^~~~~~~~~
./Include/cpython/tupleobject.h: In function ‘object___reduce_ex__’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘reduce_newobj’ at Objects/typeobject.c:6257:13,
inlined from ‘_common_reduce’ at Objects/typeobject.c:6327:16,
inlined from ‘object___reduce_ex___impl’ at Objects/typeobject.c:6401:12,
inlined from ‘object___reduce_ex__’ at Objects/clinic/typeobject.c.h:193:20:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘object___reduce_ex__’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘check_duplicates’,
inlined from ‘mro_implementation’ at Objects/typeobject.c:2574:9:
./Include/cpython/tupleobject.h:27:64: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
27 | #define PyTuple_GET_ITEM(op, index) (_PyTuple_CAST(op)->ob_item[(index)])
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
Objects/typeobject.c:2381:17: note: in expansion of macro ‘PyTuple_GET_ITEM’
2381 | if (PyTuple_GET_ITEM(tuple, j) == o) {
| ^~~~~~~~~~~~~~~~
./Include/cpython/tupleobject.h: In function ‘mro_implementation’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘mro_implementation’ at Objects/typeobject.c:2568:13:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘mro_implementation’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘type_ready_inherit’,
inlined from ‘type_ready’ at Objects/typeobject.c:7516:13:
./Include/cpython/tupleobject.h:27:64: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
27 | #define PyTuple_GET_ITEM(op, index) (_PyTuple_CAST(op)->ob_item[(index)])
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
Objects/typeobject.c:7295:23: note: in expansion of macro ‘PyTuple_GET_ITEM’
7295 | PyObject *b = PyTuple_GET_ITEM(mro, i);
| ^~~~~~~~~~~~~~~~
./Include/cpython/tupleobject.h: In function ‘type_ready’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Objects/typevarobject.o Objects/typevarobject.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_runtime.h:17,
from ./Include/internal/pycore_emscripten_trampoline.h:4,
from ./Include/internal/pycore_object.h:13,
from Objects/typevarobject.c:3:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
./Include/internal/pycore_object.h: In function ‘_PyType_PreHeaderSize’:
./Include/internal/pycore_object.h:453:30: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
453 | return _PyType_IS_GC(tp) * sizeof(PyGC_Head) +
| ^
./Include/internal/pycore_object.h:454:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
454 | _PyType_HasFeature(tp, Py_TPFLAGS_PREHEADER) * 2 * sizeof(PyObject *);
| ^
In file included from ./Include/tupleobject.h:39,
from ./Include/Python.h:73,
from Objects/typevarobject.c:2:
In function ‘PyTuple_SET_ITEM’,
inlined from ‘call_typing_args_kwargs’ at Objects/typevarobject.c:1575:9:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘call_typing_args_kwargs’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
Objects/typevarobject.c: In function ‘_Py_make_typealias’:
./Include/cpython/tupleobject.h:27:64: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
27 | #define PyTuple_GET_ITEM(op, index) (_PyTuple_CAST(op)->ob_item[(index)])
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
Objects/typevarobject.c:1513:29: note: in expansion of macro ‘PyTuple_GET_ITEM’
1513 | PyObject *type_params = PyTuple_GET_ITEM(args, 1);
| ^~~~~~~~~~~~~~~~
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
./Include/cpython/tupleobject.h:27:64: warning: array subscript 2 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
27 | #define PyTuple_GET_ITEM(op, index) (_PyTuple_CAST(op)->ob_item[(index)])
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
Objects/typevarobject.c:1514:31: note: in expansion of macro ‘PyTuple_GET_ITEM’
1514 | PyObject *compute_value = PyTuple_GET_ITEM(args, 2);
| ^~~~~~~~~~~~~~~~
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Objects/unicodeobject.o Objects/unicodeobject.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_ceval.h:13,
from Objects/unicodeobject.c:45:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
In file included from Objects/unicodeobject.c:50:
./Include/internal/pycore_long.h: In function ‘_PyLong_DigitCount’:
./Include/internal/pycore_long.h:238:34: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘uintptr_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
238 | return op->long_value.lv_tag >> NON_SIZE_BITS;
| ^
./Include/internal/pycore_long.h: In function ‘_PyLong_SetSignAndDigitCount’:
./Include/internal/pycore_long.h:273:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
273 | #define TAG_FROM_SIGN_AND_SIZE(sign, size) ((1 - (sign)) | ((size) << NON_SIZE_BITS))
| ^
./Include/internal/pycore_long.h:281:29: note: in expansion of macro ‘TAG_FROM_SIGN_AND_SIZE’
281 | op->long_value.lv_tag = TAG_FROM_SIGN_AND_SIZE(sign, (size_t)size);
| ^~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_long.h: In function ‘_PyLong_FlipSign’:
./Include/internal/pycore_long.h:296:27: warning: unsigned conversion from ‘int’ to ‘uintptr_t’ {aka ‘long unsigned int’} changes value from ‘-8’ to ‘18446744073709551608’ [-Wsign-conversion]
296 | op->long_value.lv_tag &= NON_SIZE_MASK;
| ^~
In file included from Objects/unicodeobject.c:51:
./Include/internal/pycore_object.h: In function ‘_PyType_PreHeaderSize’:
./Include/internal/pycore_object.h:453:30: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
453 | return _PyType_IS_GC(tp) * sizeof(PyGC_Head) +
| ^
./Include/internal/pycore_object.h:454:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
454 | _PyType_HasFeature(tp, Py_TPFLAGS_PREHEADER) * 2 * sizeof(PyObject *);
| ^
In file included from Objects/unicodeobject.c:60:
Objects/stringlib/eq.h: In function ‘unicode_eq’:
Objects/stringlib/eq.h:16:43: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
16 | PyUnicode_GET_LENGTH(a) * PyUnicode_KIND(a)) == 0;
Objects/unicodeobject.c: In function ‘_PyUnicode_InternedSize’:
Objects/unicodeobject.c:233:48: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
233 | return _Py_hashtable_len(INTERNED_STRINGS) + PyDict_GET_SIZE(dict);
| ^
Objects/unicodeobject.c:233:48: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘long unsigned int’ may change the sign of the result [-Wsign-conversion]
233 | return _Py_hashtable_len(INTERNED_STRINGS) + PyDict_GET_SIZE(dict);
Objects/unicodeobject.c: In function ‘hashtable_unicode_hash’:
Objects/unicodeobject.c:242:12: warning: conversion to ‘Py_uhash_t’ {aka ‘long unsigned int’} from ‘Py_hash_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
242 | return unicode_hash((PyObject *)key);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Objects/unicodeobject.c: In function ‘unicode_fill’:
Objects/unicodeobject.c:314:24: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
314 | memset(to, ch, length);
| ^~~~~~
In file included from Objects/unicodeobject.c:881:
Objects/stringlib/fastsearch.h: In function ‘asciilib_find_char’:
Objects/stringlib/fastsearch.h:58:42: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
58 | p = STRINGLIB_FAST_MEMCHR(s, ch, n);
| ^
Objects/stringlib/fastsearch.h: In function ‘asciilib_rfind_char’:
Objects/stringlib/fastsearch.h:127:28: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
127 | p = memrchr(s, ch, n);
| ^
Objects/stringlib/fastsearch.h: In function ‘asciilib__preprocess’:
Objects/stringlib/fastsearch.h:336:42: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
336 | p->cut * STRINGLIB_SIZEOF_CHAR));
In file included from Objects/unicodeobject.c:890:
Objects/stringlib/fastsearch.h: In function ‘ucs1lib_find_char’:
Objects/stringlib/fastsearch.h:58:42: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
58 | p = STRINGLIB_FAST_MEMCHR(s, ch, n);
| ^
Objects/stringlib/fastsearch.h: In function ‘ucs1lib_rfind_char’:
Objects/stringlib/fastsearch.h:127:28: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
127 | p = memrchr(s, ch, n);
| ^
Objects/stringlib/fastsearch.h: In function ‘ucs1lib__preprocess’:
Objects/stringlib/fastsearch.h:336:42: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
336 | p->cut * STRINGLIB_SIZEOF_CHAR));
In file included from Objects/unicodeobject.c:895:
Objects/stringlib/replace.h: In function ‘ucs1lib_replace_1char_inplace’:
Objects/stringlib/replace.h:11:10: warning: conversion from ‘Py_UCS4’ {aka ‘unsigned int’} to ‘Py_UCS1’ {aka ‘unsigned char’} may change value [-Wconversion]
11 | *s = u2;
| ^~
Objects/stringlib/replace.h:34:50: warning: conversion to ‘int’ from ‘Py_UCS4’ {aka ‘unsigned int’} may change the sign of the result [-Wsign-conversion]
34 | s = STRINGLIB_FAST_MEMCHR(s, u1, end - s);
| ^~
Objects/stringlib/replace.h:34:58: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘long int’ may change the sign of the result [-Wsign-conversion]
34 | s = STRINGLIB_FAST_MEMCHR(s, u1, end - s);
| ~~~~^~~
Objects/stringlib/replace.h:51:14: warning: conversion from ‘Py_UCS4’ {aka ‘unsigned int’} to ‘Py_UCS1’ {aka ‘unsigned char’} may change value [-Wconversion]
51 | *s = u2;
| ^~
In file included from Objects/unicodeobject.c:900:
Objects/stringlib/fastsearch.h: In function ‘ucs2lib_find_char’:
Objects/stringlib/fastsearch.h:66:32: warning: conversion from ‘int’ to ‘unsigned char’ may change value [-Wconversion]
66 | unsigned char needle = ch & 0xff;
| ^~
Objects/stringlib/fastsearch.h:73:50: warning: conversion to ‘long unsigned int’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
73 | (e - p) * sizeof(STRINGLIB_CHAR));
| ^
Objects/stringlib/fastsearch.h: In function ‘ucs2lib_rfind_char’:
Objects/stringlib/fastsearch.h:136:32: warning: conversion from ‘int’ to ‘unsigned char’ may change value [-Wconversion]
136 | unsigned char needle = ch & 0xff;
| ^~
Objects/stringlib/fastsearch.h:143:45: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
143 | n * sizeof(STRINGLIB_CHAR));
| ^
Objects/stringlib/fastsearch.h: In function ‘ucs2lib__preprocess’:
Objects/stringlib/fastsearch.h:336:42: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
336 | p->cut * STRINGLIB_SIZEOF_CHAR));
In file included from Objects/unicodeobject.c:905:
Objects/stringlib/replace.h: In function ‘ucs2lib_replace_1char_inplace’:
Objects/stringlib/replace.h:11:10: warning: conversion from ‘Py_UCS4’ {aka ‘unsigned int’} to ‘Py_UCS2’ {aka ‘short unsigned int’} may change value [-Wconversion]
11 | *s = u2;
| ^~
Objects/stringlib/replace.h:51:14: warning: conversion from ‘Py_UCS4’ {aka ‘unsigned int’} to ‘Py_UCS2’ {aka ‘short unsigned int’} may change value [-Wconversion]
51 | *s = u2;
| ^~
In file included from Objects/unicodeobject.c:909:
Objects/stringlib/fastsearch.h: In function ‘ucs4lib_find_char’:
Objects/stringlib/fastsearch.h:58:38: warning: conversion to ‘wchar_t’ {aka ‘int’} from ‘Py_UCS4’ {aka ‘unsigned int’} may change the sign of the result [-Wsign-conversion]
58 | p = STRINGLIB_FAST_MEMCHR(s, ch, n);
| ^~
Objects/stringlib/ucs4lib.h:26:46: note: in definition of macro ‘STRINGLIB_FAST_MEMCHR’
26 | (Py_UCS4 *)wmemchr((const wchar_t *)(s), c, n)
| ^
Objects/stringlib/fastsearch.h:58:42: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
58 | p = STRINGLIB_FAST_MEMCHR(s, ch, n);
| ^
Objects/stringlib/ucs4lib.h:26:49: note: in definition of macro ‘STRINGLIB_FAST_MEMCHR’
26 | (Py_UCS4 *)wmemchr((const wchar_t *)(s), c, n)
| ^
In file included from Objects/unicodeobject.c:910:
Objects/stringlib/fastsearch.h: In function ‘ucs4lib_rfind_char’:
Objects/stringlib/fastsearch.h:143:45: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
143 | n * sizeof(STRINGLIB_CHAR));
| ^
Objects/stringlib/fastsearch.h: In function ‘ucs4lib__preprocess’:
Objects/stringlib/fastsearch.h:336:42: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
336 | p->cut * STRINGLIB_SIZEOF_CHAR));
Objects/stringlib/replace.h: In function ‘ucs4lib_replace_1char_inplace’:
Objects/stringlib/replace.h:34:50: warning: conversion to ‘wchar_t’ {aka ‘int’} from ‘Py_UCS4’ {aka ‘unsigned int’} may change the sign of the result [-Wsign-conversion]
34 | s = STRINGLIB_FAST_MEMCHR(s, u1, end - s);
| ^~
Objects/stringlib/ucs4lib.h:26:46: note: in definition of macro ‘STRINGLIB_FAST_MEMCHR’
26 | (Py_UCS4 *)wmemchr((const wchar_t *)(s), c, n)
| ^
Objects/stringlib/replace.h:34:58: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘long int’ may change the sign of the result [-Wsign-conversion]
34 | s = STRINGLIB_FAST_MEMCHR(s, u1, end - s);
| ~~~~^~~
Objects/stringlib/ucs4lib.h:26:49: note: in definition of macro ‘STRINGLIB_FAST_MEMCHR’
26 | (Py_UCS4 *)wmemchr((const wchar_t *)(s), c, n)
| ^
Objects/unicodeobject.c: In function ‘resize_compact’:
Objects/unicodeobject.c:1007:57: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
1007 | new_unicode = (PyObject *)PyObject_Realloc(unicode, new_size);
| ^~~~~~~~
Objects/unicodeobject.c: In function ‘resize_inplace’:
Objects/unicodeobject.c:1057:47: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
1057 | data = (PyObject *)PyObject_Realloc(data, new_size);
| ^~~~~~~~
Objects/unicodeobject.c: In function ‘PyUnicode_New’:
Objects/unicodeobject.c:1238:52: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
1238 | obj = (PyObject *) PyObject_Malloc(struct_size + (size + 1) * char_size);
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
Objects/unicodeobject.c:1252:38: warning: conversion from ‘int’ to ‘unsigned char:3’ may change value [-Wconversion]
1252 | _PyUnicode_STATE(unicode).kind = kind;
| ^~~~
Objects/unicodeobject.c:1254:39: warning: conversion from ‘int’ to ‘unsigned char:1’ may change value [-Wconversion]
1254 | _PyUnicode_STATE(unicode).ascii = is_ascii;
| ^~~~~~~~
Objects/unicodeobject.c: In function ‘_copy_characters’:
Objects/unicodeobject.c:1384:27: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
1384 | to_kind * how_many);
| ~~~~~~~~^~~~~~~~~~
Objects/unicodeobject.c: In function ‘find_maxchar_surrogates’:
Objects/unicodeobject.c:1558:18: warning: conversion to ‘Py_UCS4’ {aka ‘unsigned int’} from ‘wchar_t’ {aka ‘int’} may change the sign of the result [-Wsign-conversion]
1558 | ch = *iter;
| ^
Objects/unicodeobject.c: In function ‘unicode_write_cstr’:
Objects/unicodeobject.c:1722:44: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
1722 | memcpy((char *) data + index, str, len);
| ^~~
Objects/unicodeobject.c: In function ‘unicode_char’:
Objects/unicodeobject.c:1766:32: warning: conversion from ‘Py_UCS4’ {aka ‘unsigned int’} to ‘Py_UCS1’ {aka ‘unsigned char’} may change value [-Wconversion]
1766 | return get_latin1_char(ch);
| ^~
Objects/unicodeobject.c: In function ‘PyUnicode_FromWideChar’:
Objects/unicodeobject.c:1797:16: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
1797 | size = wcslen(u);
| ^~~~~~
Objects/unicodeobject.c:1856:55: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
1856 | memcpy(PyUnicode_4BYTE_DATA(unicode), u, size * 4);
| ~~~~~^~~
Objects/unicodeobject.c: In function ‘_PyUnicode_FromId’:
Objects/unicodeobject.c:1930:52: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
1930 | obj = PyUnicode_DecodeUTF8Stateful(id->string, strlen(id->string),
| ^~~~~~~~~~~~~~~~~~
Objects/unicodeobject.c:1941:67: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
1941 | PyObject **new_array = PyMem_Realloc(ids->array, new_size * item_size);
| ~~~~~~~~~^~~~~~~~~~~
Objects/unicodeobject.c:1946:65: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
1946 | memset(&new_array[ids->size], 0, (new_size - ids->size) * item_size);
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
Objects/unicodeobject.c: In function ‘_PyUnicode_FromASCII’:
Objects/unicodeobject.c:1990:46: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
1990 | memcpy(PyUnicode_1BYTE_DATA(unicode), s, size);
| ^~~~
Objects/unicodeobject.c: In function ‘_PyUnicode_FromUCS1’:
Objects/unicodeobject.c:2024:16: warning: conversion from ‘Py_UCS4’ {aka ‘unsigned int’} to ‘unsigned char’ may change value [-Wconversion]
2024 | max_char = ucs1lib_find_max_char(u, u + size);
| ^~~~~~~~~~~~~~~~~~~~~
Objects/unicodeobject.c:2028:42: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
2028 | memcpy(PyUnicode_1BYTE_DATA(res), u, size);
| ^~~~
Objects/unicodeobject.c: In function ‘_PyUnicode_FromUCS2’:
Objects/unicodeobject.c:2045:16: warning: conversion from ‘Py_UCS4’ {aka ‘unsigned int’} to ‘Py_UCS2’ {aka ‘short unsigned int’} may change value [-Wconversion]
2045 | max_char = ucs2lib_find_max_char(u, u + size);
| ^~~~~~~~~~~~~~~~~~~~~
Objects/unicodeobject.c:2050:61: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
2050 | memcpy(PyUnicode_2BYTE_DATA(res), u, sizeof(Py_UCS2)*size);
| ^
Objects/unicodeobject.c: In function ‘_PyUnicode_FromUCS4’:
Objects/unicodeobject.c:2082:61: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
2082 | memcpy(PyUnicode_4BYTE_DATA(res), u, sizeof(Py_UCS4)*size);
| ^
Objects/unicodeobject.c: In function ‘_PyUnicode_Copy’:
Objects/unicodeobject.c:2206:22: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
2206 | length * PyUnicode_KIND(unicode));
In file included from ./Include/Python.h:53,
from Objects/unicodeobject.c:41:
Objects/unicodeobject.c: In function ‘unicode_askind’:
./Include/pymem.h:65:37: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
65 | ( (type *) PyMem_Malloc((n) * sizeof(type)) ) )
| ^
Objects/unicodeobject.c:2223:18: note: in expansion of macro ‘PyMem_New’
2223 | result = PyMem_New(Py_UCS2, len);
| ^~~~~~~~~
./Include/pymem.h:65:37: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
65 | ( (type *) PyMem_Malloc((n) * sizeof(type)) ) )
| ^
Objects/unicodeobject.c:2234:18: note: in expansion of macro ‘PyMem_New’
2234 | result = PyMem_New(Py_UCS4, len);
| ^~~~~~~~~
Objects/unicodeobject.c: In function ‘as_ucs4’:
./Include/pymem.h:65:37: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
65 | ( (type *) PyMem_Malloc((n) * sizeof(type)) ) )
| ^
Objects/unicodeobject.c:2273:18: note: in expansion of macro ‘PyMem_New’
2273 | target = PyMem_New(Py_UCS4, targetlen);
| ^~~~~~~~~
Objects/unicodeobject.c:2297:34: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
2297 | memcpy(target, data, len * sizeof(Py_UCS4));
| ^
Objects/unicodeobject.c: In function ‘unicode_fromformat_write_cstr’:
Objects/unicodeobject.c:2384:18: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
2384 | length = strlen(str);
| ^~~~~~
Objects/unicodeobject.c: In function ‘unicode_fromformat_write_wcstr’:
Objects/unicodeobject.c:2411:18: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
2411 | length = wcslen(str);
| ^~~~~~
Objects/unicodeobject.c: In function ‘unicode_fromformat_arg’:
Objects/unicodeobject.c:2570:54: warning: conversion to ‘Py_UCS4’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
2570 | if (_PyUnicodeWriter_WriteCharInline(writer, ordinal) < 0)
| ^~~~~~~
Objects/unicodeobject.c:2592:21: warning: format not a string literal, argument types not checked [-Wformat-nonliteral]
2592 | sprintf(buffer, fmt, va_arg(*vargs, long)) :
| ^~~~~~~
Objects/unicodeobject.c:2593:21: warning: format not a string literal, argument types not checked [-Wformat-nonliteral]
2593 | sprintf(buffer, fmt, va_arg(*vargs, unsigned long));
| ^~~~~~~
Objects/unicodeobject.c:2597:21: warning: format not a string literal, argument types not checked [-Wformat-nonliteral]
2597 | sprintf(buffer, fmt, va_arg(*vargs, long long)) :
| ^~~~~~~
Objects/unicodeobject.c:2598:21: warning: format not a string literal, argument types not checked [-Wformat-nonliteral]
2598 | sprintf(buffer, fmt, va_arg(*vargs, unsigned long long));
| ^~~~~~~
Objects/unicodeobject.c:2602:21: warning: format not a string literal, argument types not checked [-Wformat-nonliteral]
2602 | sprintf(buffer, fmt, va_arg(*vargs, Py_ssize_t)) :
| ^~~~~~~
Objects/unicodeobject.c:2603:21: warning: format not a string literal, argument types not checked [-Wformat-nonliteral]
2603 | sprintf(buffer, fmt, va_arg(*vargs, size_t));
| ^~~~~~~
Objects/unicodeobject.c:2606:17: warning: format not a string literal, argument types not checked [-Wformat-nonliteral]
2606 | len = sprintf(buffer, fmt, va_arg(*vargs, ptrdiff_t));
| ^~~
Objects/unicodeobject.c:2610:21: warning: format not a string literal, argument types not checked [-Wformat-nonliteral]
2610 | sprintf(buffer, fmt, va_arg(*vargs, intmax_t)) :
| ^~~~~~~
Objects/unicodeobject.c:2611:21: warning: format not a string literal, argument types not checked [-Wformat-nonliteral]
2611 | sprintf(buffer, fmt, va_arg(*vargs, uintmax_t));
| ^~~~~~~
Objects/unicodeobject.c:2615:21: warning: format not a string literal, argument types not checked [-Wformat-nonliteral]
2615 | sprintf(buffer, fmt, va_arg(*vargs, int)) :
| ^~~~~~~
Objects/unicodeobject.c:2616:21: warning: format not a string literal, argument types not checked [-Wformat-nonliteral]
2616 | sprintf(buffer, fmt, va_arg(*vargs, unsigned int));
| ^~~~~~~
Objects/unicodeobject.c: In function ‘PyUnicode_FromFormatV’:
Objects/unicodeobject.c:2808:25: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
2808 | writer.min_length = strlen(format) + 100;
| ^~~~~~
Objects/unicodeobject.c: In function ‘unicode_copy_as_widechar’:
Objects/unicodeobject.c:2899:49: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
2899 | memcpy(w, PyUnicode_DATA(unicode), size * sizeof(wchar_t));
| ^
Objects/unicodeobject.c: In function ‘PyUnicode_AsWideCharString’:
./Include/pymem.h:65:37: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
65 | ( (type *) PyMem_Malloc((n) * sizeof(type)) ) )
| ^
Objects/unicodeobject.c:3006:26: note: in expansion of macro ‘PyMem_New’
3006 | buffer = (wchar_t *) PyMem_New(wchar_t, (buflen + 1));
| ^~~~~~~~~
In file included from ./Include/Python.h:115:
Objects/unicodeobject.c: In function ‘_Py_normalize_encoding’:
./Include/cpython/pyctype.h:32:23: warning: conversion to ‘char’ from ‘unsigned char’ may change the sign of the result [-Wsign-conversion]
32 | #define Py_TOLOWER(c) (_Py_ctype_tolower[Py_CHARMASK(c)])
| ^
Objects/unicodeobject.c:3206:20: note: in expansion of macro ‘Py_TOLOWER’
3206 | *l++ = Py_TOLOWER(c);
| ^~~~~~~~~~
Objects/unicodeobject.c: In function ‘unicode_decode_locale’:
Objects/unicodeobject.c:3667:54: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
3667 | PyObject *unicode = PyUnicode_FromWideChar(wstr, wlen);
| ^~~~
Objects/unicodeobject.c: In function ‘PyUnicode_DecodeUTF7Stateful’:
Objects/unicodeobject.c:4331:34: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
4331 | base64buffer &= (1 << base64bits) - 1; /* clear high bits */
| ^~
In file included from Objects/unicodeobject.c:4599:
Objects/stringlib/codecs.h: In function ‘asciilib_utf8_decode’:
Objects/stringlib/codecs.h:92:24: warning: conversion from ‘Py_UCS4’ {aka ‘unsigned int’} to ‘Py_UCS1’ {aka ‘unsigned char’} may change value [-Wconversion]
92 | *p++ = ch;
| ^~
Objects/stringlib/codecs.h:123:20: warning: conversion from ‘Py_UCS4’ {aka ‘unsigned int’} to ‘Py_UCS1’ {aka ‘unsigned char’} may change value [-Wconversion]
123 | *p++ = ch;
| ^~
Objects/stringlib/codecs.h:173:20: warning: conversion from ‘Py_UCS4’ {aka ‘unsigned int’} to ‘Py_UCS1’ {aka ‘unsigned char’} may change value [-Wconversion]
173 | *p++ = ch;
| ^~
Objects/stringlib/codecs.h:230:20: warning: conversion from ‘Py_UCS4’ {aka ‘unsigned int’} to ‘Py_UCS1’ {aka ‘unsigned char’} may change value [-Wconversion]
230 | *p++ = ch;
| ^~
In file included from Objects/unicodeobject.c:4603:
Objects/stringlib/codecs.h: In function ‘ucs1lib_utf8_decode’:
Objects/stringlib/codecs.h:92:24: warning: conversion from ‘Py_UCS4’ {aka ‘unsigned int’} to ‘Py_UCS1’ {aka ‘unsigned char’} may change value [-Wconversion]
92 | *p++ = ch;
| ^~
Objects/stringlib/codecs.h:123:20: warning: conversion from ‘Py_UCS4’ {aka ‘unsigned int’} to ‘Py_UCS1’ {aka ‘unsigned char’} may change value [-Wconversion]
123 | *p++ = ch;
| ^~
Objects/stringlib/codecs.h:173:20: warning: conversion from ‘Py_UCS4’ {aka ‘unsigned int’} to ‘Py_UCS1’ {aka ‘unsigned char’} may change value [-Wconversion]
173 | *p++ = ch;
| ^~
Objects/stringlib/codecs.h:230:20: warning: conversion from ‘Py_UCS4’ {aka ‘unsigned int’} to ‘Py_UCS1’ {aka ‘unsigned char’} may change value [-Wconversion]
230 | *p++ = ch;
| ^~
Objects/stringlib/codecs.h: In function ‘ucs1lib_utf32_encode’:
Objects/stringlib/codecs.h:818:39: warning: conversion from ‘Py_UCS4’ {aka ‘unsigned int’} to ‘Py_UCS1’ {aka ‘unsigned char’} may change value [-Wconversion]
818 | *out++ = STRINGLIB(SWAB4)(ch);
| ^~
In file included from Objects/unicodeobject.c:4607:
Objects/stringlib/codecs.h: In function ‘ucs2lib_utf8_decode’:
Objects/stringlib/codecs.h:92:24: warning: conversion from ‘Py_UCS4’ {aka ‘unsigned int’} to ‘Py_UCS2’ {aka ‘short unsigned int’} may change value [-Wconversion]
92 | *p++ = ch;
| ^~
Objects/stringlib/codecs.h:123:20: warning: conversion from ‘Py_UCS4’ {aka ‘unsigned int’} to ‘Py_UCS2’ {aka ‘short unsigned int’} may change value [-Wconversion]
123 | *p++ = ch;
| ^~
Objects/stringlib/codecs.h:173:20: warning: conversion from ‘Py_UCS4’ {aka ‘unsigned int’} to ‘Py_UCS2’ {aka ‘short unsigned int’} may change value [-Wconversion]
173 | *p++ = ch;
| ^~
Objects/stringlib/codecs.h:230:20: warning: conversion from ‘Py_UCS4’ {aka ‘unsigned int’} to ‘Py_UCS2’ {aka ‘short unsigned int’} may change value [-Wconversion]
230 | *p++ = ch;
| ^~
Objects/stringlib/codecs.h: In function ‘ucs2lib_utf8_encoder’:
Objects/stringlib/codecs.h:332:39: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
332 | memset(p, '?', endpos - startpos);
| ~~~~~~~^~~~~~~~~~
Objects/stringlib/codecs.h: In function ‘ucs2lib_utf16_encode’:
Objects/stringlib/codecs.h:681:26: warning: conversion from ‘Py_UCS4’ {aka ‘unsigned int’} to ‘short unsigned int’ may change value [-Wconversion]
681 | *out++ = ch;
| ^~
Objects/stringlib/codecs.h:693:26: warning: conversion from ‘Py_UCS4’ {aka ‘unsigned int’} to ‘short unsigned int’ may change value [-Wconversion]
693 | *out++ = ch;
| ^~
Objects/stringlib/codecs.h: In function ‘ucs2lib_utf32_encode’:
Objects/stringlib/codecs.h:818:39: warning: conversion from ‘Py_UCS4’ {aka ‘unsigned int’} to ‘Py_UCS2’ {aka ‘short unsigned int’} may change value [-Wconversion]
818 | *out++ = STRINGLIB(SWAB4)(ch);
| ^~
In file included from Objects/unicodeobject.c:4611:
Objects/stringlib/codecs.h: In function ‘ucs4lib_utf8_encoder’:
Objects/stringlib/codecs.h:332:39: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
332 | memset(p, '?', endpos - startpos);
| ~~~~~~~^~~~~~~~~~
Objects/stringlib/codecs.h: In function ‘ucs4lib_utf16_encode’:
Objects/stringlib/codecs.h:681:26: warning: conversion from ‘Py_UCS4’ {aka ‘unsigned int’} to ‘short unsigned int’ may change value [-Wconversion]
681 | *out++ = ch;
| ^~
Objects/stringlib/codecs.h:687:26: warning: conversion from ‘Py_UCS4’ {aka ‘unsigned int’} to ‘short unsigned int’ may change value [-Wconversion]
687 | out[0] = Py_UNICODE_HIGH_SURROGATE(ch);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
Objects/stringlib/codecs.h:688:26: warning: conversion from ‘Py_UCS4’ {aka ‘unsigned int’} to ‘short unsigned int’ may change value [-Wconversion]
688 | out[1] = Py_UNICODE_LOW_SURROGATE(ch);
| ^~~~~~~~~~~~~~~~~~~~~~~~
Objects/stringlib/codecs.h:693:26: warning: conversion from ‘Py_UCS4’ {aka ‘unsigned int’} to ‘short unsigned int’ may change value [-Wconversion]
693 | *out++ = ch;
| ^~
Objects/stringlib/codecs.h:722:31: warning: conversion from ‘Py_UCS4’ {aka ‘unsigned int’} to ‘Py_UCS2’ {aka ‘short unsigned int’} may change value [-Wconversion]
722 | Py_UCS2 ch1 = Py_UNICODE_HIGH_SURROGATE(ch);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
Objects/stringlib/codecs.h:723:31: warning: conversion from ‘Py_UCS4’ {aka ‘unsigned int’} to ‘Py_UCS2’ {aka ‘short unsigned int’} may change value [-Wconversion]
723 | Py_UCS2 ch2 = Py_UNICODE_LOW_SURROGATE(ch);
| ^~~~~~~~~~~~~~~~~~~~~~~~
Objects/unicodeobject.c: In function ‘ascii_decode’:
Objects/unicodeobject.c:4649:20: warning: conversion to ‘Py_UCS1’ {aka ‘unsigned char’} from ‘char’ may change the sign of the result [-Wsign-conversion]
4649 | *q++ = *p++;
| ^
Objects/unicodeobject.c:4674:27: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘long int’ may change the sign of the result [-Wsign-conversion]
4674 | memcpy(dest, start, p - start);
| ~~^~~~~~~
Objects/unicodeobject.c: In function ‘_Py_DecodeUTF8Ex’:
Objects/unicodeobject.c:4881:42: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
4881 | unicode = PyMem_RawMalloc((size + 1) * sizeof(wchar_t));
| ^
Objects/unicodeobject.c:4922:26: warning: conversion to ‘Py_UCS4’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
4922 | ch = ((s[0] & 0x0f) << 12) + ((s[1] & 0x3f) << 6) + (s[2] & 0x3f);
| ^
Objects/unicodeobject.c:4924:41: warning: conversion to ‘wchar_t’ {aka ‘int’} from ‘Py_UCS4’ {aka ‘unsigned int’} may change the sign of the result [-Wsign-conversion]
4924 | unicode[outpos++] = ch;
| ^~
Objects/unicodeobject.c:4943:33: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘long int’ may change the sign of the result [-Wsign-conversion]
4943 | *wlen = s - orig_s;
| ^
Objects/unicodeobject.c:4952:17: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
4952 | *wlen = outpos;
| ^~~~~~
Objects/unicodeobject.c: In function ‘_Py_EncodeUTF8Ex’:
Objects/unicodeobject.c:4994:22: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
4994 | Py_ssize_t len = wcslen(text);
| ^~~~~~
Objects/unicodeobject.c:5019:43: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
5019 | bytes = PyMem_RawMalloc((len + 1) * max_char_size);
| ~~~~~~~~~~^~~~~~~~~~~~~~~
Objects/unicodeobject.c:5022:40: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
5022 | bytes = PyMem_Malloc((len + 1) * max_char_size);
| ~~~~~~~~~~^~~~~~~~~~~~~~~
Objects/unicodeobject.c:5032:22: warning: conversion to ‘Py_UCS4’ {aka ‘unsigned int’} from ‘wchar_t’ {aka ‘int’} may change the sign of the result [-Wsign-conversion]
5032 | Py_UCS4 ch = text[i];
| ^~~~
Objects/unicodeobject.c:5089:25: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘long int’ may change the sign of the result [-Wsign-conversion]
5089 | size_t final_size = (p - bytes);
| ^
Objects/unicodeobject.c: In function ‘unicode_fill_utf8’:
Objects/unicodeobject.c:5202:39: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
5202 | char *cache = PyObject_Malloc(len + 1);
| ~~~~^~~
Objects/unicodeobject.c:5210:26: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
5210 | memcpy(cache, start, len);
| ^~~
Objects/unicodeobject.c: In function ‘_PyUnicode_EncodeUTF32’:
Objects/unicodeobject.c:5501:49: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
5501 | memcpy(out, PyBytes_AS_STRING(rep), repsize);
| ^~~~~~~
Objects/unicodeobject.c: In function ‘_PyUnicode_EncodeUTF16’:
Objects/unicodeobject.c:5836:49: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
5836 | memcpy(out, PyBytes_AS_STRING(rep), repsize);
| ^~~~~~~
Objects/unicodeobject.c: In function ‘_PyUnicode_DecodeUnicodeEscapeInternal’:
Objects/unicodeobject.c:5972:30: warning: conversion to ‘Py_UCS4’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
5972 | ch = (ch<<3) + *s++ - '0';
| ^
Objects/unicodeobject.c:5974:34: warning: conversion to ‘Py_UCS4’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
5974 | ch = (ch<<3) + *s++ - '0';
| ^
Objects/unicodeobject.c:6063:27: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘long int’ may change the sign of the result [-Wsign-conversion]
6063 | namelen = s - start;
| ^
Objects/unicodeobject.c: In function ‘_PyUnicode_DecodeUnicodeEscapeStateful’:
Objects/unicodeobject.c:6135:27: warning: conversion to ‘unsigned char’ from ‘char’ may change the sign of the result [-Wsign-conversion]
6135 | unsigned char c = *first_invalid_escape;
| ^
Objects/unicodeobject.c: In function ‘unicode_encode_ucs1’:
Objects/unicodeobject.c:6682:42: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
6682 | memset(str, '?', collend - collstart);
| ~~~~~~~~^~~~~~~~~~~
Objects/unicodeobject.c: In function ‘charmap_decode_string’:
Objects/unicodeobject.c:7677:18: warning: conversion to ‘unsigned char’ from ‘char’ may change the sign of the result [-Wsign-conversion]
7677 | ch = *s;
| ^
Objects/unicodeobject.c:7685:36: warning: conversion from ‘Py_UCS4’ {aka ‘unsigned int’} to ‘Py_UCS1’ {aka ‘unsigned char’} may change value [-Wconversion]
7685 | outdata[writer->pos] = x;
| ^
Objects/unicodeobject.c:7700:26: warning: conversion to ‘unsigned char’ from ‘char’ may change the sign of the result [-Wsign-conversion]
7700 | ch = *s;
| ^
Objects/unicodeobject.c:7704:44: warning: conversion from ‘Py_UCS4’ {aka ‘unsigned int’} to ‘Py_UCS1’ {aka ‘unsigned char’} may change value [-Wconversion]
7704 | outdata[writer->pos] = x;
| ^
Objects/unicodeobject.c:7713:26: warning: conversion to ‘unsigned char’ from ‘char’ may change the sign of the result [-Wsign-conversion]
7713 | ch = *s;
| ^
Objects/unicodeobject.c:7717:44: warning: conversion from ‘Py_UCS4’ {aka ‘unsigned int’} to ‘Py_UCS2’ {aka ‘short unsigned int’} may change value [-Wconversion]
7717 | outdata[writer->pos] = x;
| ^
Objects/unicodeobject.c:7724:14: warning: conversion to ‘unsigned char’ from ‘char’ may change the sign of the result [-Wsign-conversion]
7724 | ch = *s;
| ^
Objects/unicodeobject.c: In function ‘charmap_decode_mapping’:
Objects/unicodeobject.c:7777:14: warning: conversion to ‘unsigned char’ from ‘char’ may change the sign of the result [-Wsign-conversion]
7777 | ch = *s;
| ^
Objects/unicodeobject.c:7809:58: warning: conversion from ‘long int’ to ‘Py_UCS4’ {aka ‘unsigned int’} may change value [-Wconversion]
7809 | if (_PyUnicodeWriter_WriteCharInline(writer, value) < 0)
| ^~~~~
Objects/unicodeobject.c: In function ‘EncodingMap_size_impl’:
Objects/unicodeobject.c:7918:48: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
7918 | return PyLong_FromLong((sizeof(*self) - 1) + 16*self->count2 +
| ^
Objects/unicodeobject.c:7918:66: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
7918 | return PyLong_FromLong((sizeof(*self) - 1) + 16*self->count2 +
| ^
Objects/unicodeobject.c:7918:66: warning: conversion to ‘long int’ from ‘long unsigned int’ may change the sign of the result [-Wsign-conversion]
7918 | return PyLong_FromLong((sizeof(*self) - 1) + 16*self->count2 +
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
7919 | 128*self->count3);
| ~~~~~~~~~~~~~~~~
Objects/unicodeobject.c: In function ‘PyUnicode_BuildEncodingMap’:
Objects/unicodeobject.c:7978:14: warning: conversion to ‘int’ from ‘Py_UCS4’ {aka ‘unsigned int’} may change the sign of the result [-Wsign-conversion]
7978 | l1 = ch >> 11;
| ^~
Objects/unicodeobject.c:7979:14: warning: conversion to ‘int’ from ‘Py_UCS4’ {aka ‘unsigned int’} may change the sign of the result [-Wsign-conversion]
7979 | l2 = ch >> 7;
| ^~
Objects/unicodeobject.c:7981:26: warning: conversion from ‘int’ to ‘unsigned char’ may change value [-Wconversion]
7981 | level1[l1] = count2++;
| ^~~~~~
Objects/unicodeobject.c:7983:26: warning: conversion from ‘int’ to ‘unsigned char’ may change value [-Wconversion]
7983 | level2[l2] = count3++;
| ^~~~~~
Objects/unicodeobject.c:8018:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
8018 | result = PyObject_Malloc(sizeof(struct encoding_map) +
| ^
Objects/unicodeobject.c:8019:40: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
8019 | 16*count2 + 128*count3 - 1);
| ^
Objects/unicodeobject.c:8032:29: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
8032 | memset(mlevel2, 0xFF, 16*count2);
| ~~^~~~~~~
Objects/unicodeobject.c:8033:27: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
8033 | memset(mlevel3, 0, 128*count3);
| ~~~^~~~~~~
Objects/unicodeobject.c:8041:14: warning: conversion to ‘int’ from ‘Py_UCS4’ {aka ‘unsigned int’} may change the sign of the result [-Wsign-conversion]
8041 | o1 = ch>>11;
| ^~
Objects/unicodeobject.c:8045:27: warning: conversion from ‘int’ to ‘unsigned char’ may change value [-Wconversion]
8045 | mlevel2[i2] = count3++;
| ^~~~~~
Objects/unicodeobject.c:8048:23: warning: conversion from ‘int’ to ‘unsigned char’ may change value [-Wconversion]
8048 | mlevel3[i3] = i;
| ^
Objects/unicodeobject.c: In function ‘encoding_map_lookup’:
Objects/unicodeobject.c:8057:14: warning: conversion to ‘int’ from ‘Py_UCS4’ {aka ‘unsigned int’} may change the sign of the result [-Wsign-conversion]
8057 | int l1 = c>>11;
| ^
Objects/unicodeobject.c: In function ‘charmapencode_output’:
Objects/unicodeobject.c:8198:50: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
8198 | memcpy(outstart + *outpos, repchars, repsize);
| ^~~~~~~
Objects/unicodeobject.c: In function ‘charmap_encoding_error’:
Objects/unicodeobject.c:8288:42: warning: conversion to ‘Py_UCS4’ {aka ‘unsigned int’} from ‘char’ may change the sign of the result [-Wsign-conversion]
8288 | x = charmapencode_output(*cp, mapping, res, respos);
| ^~~
Objects/unicodeobject.c:8319:51: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
8319 | PyBytes_AsString(repunicode), repsize);
| ^~~~~~~
Objects/unicodeobject.c: In function ‘charmaptranslate_output’:
Objects/unicodeobject.c:8588:54: warning: conversion from ‘long int’ to ‘Py_UCS4’ {aka ‘unsigned int’} may change value [-Wconversion]
8588 | if (_PyUnicodeWriter_WriteCharInline(writer, ch) < 0) {
| ^~
Objects/unicodeobject.c: In function ‘_PyUnicode_TransformDecimalAndSpaceToASCII’:
Objects/unicodeobject.c:8868:22: warning: conversion from ‘Py_UCS4’ {aka ‘unsigned int’} to ‘Py_UCS1’ {aka ‘unsigned char’} may change value [-Wconversion]
8868 | out[i] = ch;
| ^~
Objects/unicodeobject.c:8881:22: warning: conversion from ‘int’ to ‘Py_UCS1’ {aka ‘unsigned char’} may change value [-Wconversion]
8881 | out[i] = '0' + decimal;
| ^~~
Objects/unicodeobject.c: In function ‘tailmatch’:
Objects/unicodeobject.c:9282:61: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
9282 | PyUnicode_GET_LENGTH(substring) *
Objects/unicodeobject.c: In function ‘case_operation’:
Objects/unicodeobject.c:9519:44: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
9519 | tmp = PyMem_Malloc(sizeof(Py_UCS4) * 3 * length);
| ^
Objects/unicodeobject.c:9537:46: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
9537 | memcpy(outdata, tmp, sizeof(Py_UCS4) * newlength);
| ^
In file included from ./Include/unicodeobject.h:1014,
from ./Include/Python.h:65:
Objects/unicodeobject.c: In function ‘_PyUnicode_JoinArray’:
./Include/cpython/unicodeobject.h:282:34: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
282 | #define PyUnicode_GET_LENGTH(op) PyUnicode_GET_LENGTH(_PyObject_CAST(op))
| ^~~~~~~~~~~~~~~~~~~~
Objects/unicodeobject.c:9650:18: note: in expansion of macro ‘PyUnicode_GET_LENGTH’
9650 | add_sz = PyUnicode_GET_LENGTH(item);
| ^~~~~~~~~~~~~~~~~~~~
Objects/unicodeobject.c:9654:20: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
9654 | add_sz += seplen;
| ^~
Objects/unicodeobject.c:9661:12: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
9661 | sz += add_sz;
| ^~
Objects/unicodeobject.c:9661:15: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘long unsigned int’ may change the sign of the result [-Wsign-conversion]
9661 | sz += add_sz;
| ^~~~~~
Objects/unicodeobject.c:9693:32: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
9693 | kind * seplen);
| ~~~~~^~~~~~~~
Objects/unicodeobject.c:9701:32: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
9701 | kind * itemlen);
| ~~~~~^~~~~~~~~
Objects/unicodeobject.c: In function ‘replace’:
Objects/unicodeobject.c:10205:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
10205 | memcpy(res, sbuf, rkind * slen);
| ~~~~~~^~~~~~
Objects/unicodeobject.c:10209:26: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
10209 | rkind * len2);
| ~~~~~~^~~~~~
Objects/unicodeobject.c:10220:30: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
10220 | rkind * len2);
| ~~~~~~^~~~~~
Objects/unicodeobject.c:10297:34: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
10297 | rkind * (j-i));
| ~~~~~~^~~~~~~
Objects/unicodeobject.c:10304:34: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
10304 | rkind * len2);
| ~~~~~~^~~~~~
Objects/unicodeobject.c:10313:30: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
10313 | rkind * (slen-i));
| ~~~~~~^~~~~~~~~~
Objects/unicodeobject.c:10320:30: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
10320 | rkind * len2);
| ~~~~~~^~~~~~
Objects/unicodeobject.c:10326:24: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
10326 | rkind);
| ^~~~~
Objects/unicodeobject.c:10332:26: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
10332 | rkind * (slen-i));
| ~~~~~~^~~~~~~~~~
Objects/unicodeobject.c: In function ‘unicode_compare’:
Objects/unicodeobject.c:10520:44: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
10520 | int cmp = memcmp(data1, data2, len);
| ^~~
Objects/unicodeobject.c:10570:67: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
10570 | int cmp = wmemcmp((wchar_t *)data1, (wchar_t *)data2, len);
| ^~~
Objects/unicodeobject.c: In function ‘unicode_compare_eq’:
Objects/unicodeobject.c:10617:36: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
10617 | cmp = memcmp(data1, data2, len * kind);
| ~~~~^~~~~~
Objects/unicodeobject.c: In function ‘PyUnicode_EqualToUTF8’:
Objects/unicodeobject.c:10698:55: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
10698 | return PyUnicode_EqualToUTF8AndSize(unicode, str, strlen(str));
| ^~~~~~~~~~~
Objects/unicodeobject.c: In function ‘PyUnicode_EqualToUTF8AndSize’:
Objects/unicodeobject.c:10710:56: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
10710 | memcmp(PyUnicode_1BYTE_DATA(unicode), str, len) == 0;
| ^~~
Objects/unicodeobject.c:10715:50: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
10715 | memcmp(PyUnicode_UTF8(unicode), str, len) == 0;
| ^~~
Objects/unicodeobject.c: In function ‘unicode_hash’:
Objects/unicodeobject.c:11276:9: warning: conversion to ‘Py_uhash_t’ {aka ‘long unsigned int’} from ‘Py_hash_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
11276 | x = _Py_HashBytes(PyUnicode_DATA(self),
| ^~~~~~~~~~~~~
Objects/unicodeobject.c:11278:29: warning: conversion to ‘Py_hash_t’ {aka ‘long int’} from ‘Py_uhash_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
11278 | _PyUnicode_HASH(self) = x;
| ^
Objects/unicodeobject.c:11279:12: warning: conversion to ‘Py_hash_t’ {aka ‘long int’} from ‘Py_uhash_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
11279 | return x;
| ^
Objects/unicodeobject.c: In function ‘unicode_repeat’:
Objects/unicodeobject.c:12116:50: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
12116 | memset(to, (unsigned char)fill_char, len);
| ^~~
Objects/unicodeobject.c:12121:27: warning: conversion from ‘Py_UCS4’ {aka ‘unsigned int’} to ‘Py_UCS2’ {aka ‘short unsigned int’} may change value [-Wconversion]
12121 | ucs2[n] = fill_char;
| ^~~~~~~~~
Objects/unicodeobject.c: In function ‘_PyUnicodeWriter_WriteASCIIString’:
Objects/unicodeobject.c:13283:15: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
13283 | len = strlen(ascii);
| ^~~~~~
Objects/unicodeobject.c:13311:41: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
13311 | memcpy(data + writer->pos, str, len);
| ^~~
Objects/unicodeobject.c: In function ‘unicode_sizeof_impl’:
Objects/unicodeobject.c:13448:38: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
13448 | size = sizeof(PyASCIIObject) + PyUnicode_GET_LENGTH(self) + 1;
| ^
Objects/unicodeobject.c:13448:16: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘long unsigned int’ may change the sign of the result [-Wsign-conversion]
13448 | size = sizeof(PyASCIIObject) + PyUnicode_GET_LENGTH(self) + 1;
| ^~~~~~
Objects/unicodeobject.c:13451:47: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
13451 | size = sizeof(PyCompactUnicodeObject) +
| ^
Objects/unicodeobject.c:13451:16: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘long unsigned int’ may change the sign of the result [-Wsign-conversion]
13451 | size = sizeof(PyCompactUnicodeObject) +
| ^~~~~~
Objects/unicodeobject.c: In function ‘unicode_subscript’:
Objects/unicodeobject.c:13597:24: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
13597 | for (cur = start, i = 0; i < slicelength; cur += step, i++) {
| ^~~~~
Objects/unicodeobject.c:13597:59: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
13597 | for (cur = start, i = 0; i < slicelength; cur += step, i++) {
| ^~
./Include/cpython/unicodeobject.h:329:20: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
329 | (index))
| ^~~~~~~
Objects/unicodeobject.c:13598:22: note: in expansion of macro ‘PyUnicode_READ’
13598 | ch = PyUnicode_READ(src_kind, src_data, cur);
| ^~~~~~~~~~~~~~
Objects/unicodeobject.c:13614:20: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
13614 | for (cur = start, i = 0; i < slicelength; cur += step, i++) {
| ^~~~~
Objects/unicodeobject.c:13614:55: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
13614 | for (cur = start, i = 0; i < slicelength; cur += step, i++) {
| ^~
./Include/cpython/unicodeobject.h:329:20: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
329 | (index))
| ^~~~~~~
Objects/unicodeobject.c:13615:26: note: in expansion of macro ‘PyUnicode_READ’
13615 | Py_UCS4 ch = PyUnicode_READ(src_kind, src_data, cur);
| ^~~~~~~~~~~~~~
Objects/unicodeobject.c: In function ‘formatfloat’:
Objects/unicodeobject.c:13702:37: warning: conversion from ‘Py_UCS4’ {aka ‘unsigned int’} to ‘char’ may change value [-Wconversion]
13702 | p = PyOS_double_to_string(x, arg->ch, prec, dtoa_flags, NULL);
| ~~~^~~~
Objects/unicodeobject.c:13705:11: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
13705 | len = strlen(p);
| ^~~~~~
Objects/unicodeobject.c: In function ‘unicode_format_arg_parse’:
Objects/unicodeobject.c:14139:25: warning: conversion to ‘int’ from ‘Py_UCS4’ {aka ‘unsigned int’} may change the sign of the result [-Wsign-conversion]
14139 | arg->prec = arg->ch - '0';
| ^~~
Objects/unicodeobject.c:14150:42: warning: conversion to ‘Py_UCS4’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
14150 | arg->prec = arg->prec*10 + (arg->ch - '0');
| ^
Objects/unicodeobject.c:14150:29: warning: conversion to ‘int’ from ‘Py_UCS4’ {aka ‘unsigned int’} may change the sign of the result [-Wsign-conversion]
14150 | arg->prec = arg->prec*10 + (arg->ch - '0');
| ^~~
Objects/unicodeobject.c: In function ‘unicode_format_arg_format’:
Objects/unicodeobject.c:14273:40: warning: conversion to ‘int’ from ‘Py_UCS4’ {aka ‘unsigned int’} may change the sign of the result [-Wsign-conversion]
14273 | *p_str = PyUnicode_FromOrdinal(ch);
| ^~
Objects/unicodeobject.c: In function ‘unicode_subtype_new’:
Objects/unicodeobject.c:14634:35: warning: conversion from ‘int’ to ‘unsigned char:3’ may change value [-Wconversion]
14634 | _PyUnicode_STATE(self).kind = kind;
| ^~~~
Objects/unicodeobject.c:14661:41: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
14661 | data = PyObject_Malloc((length + 1) * char_size);
| ~~~~~~~~~~~~~^~~~~~~~~~~
Objects/unicodeobject.c:14673:48: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
14673 | memcpy(data, PyUnicode_DATA(unicode), kind * (length + 1));
| ~~~~~^~~~~~~~~~~~~~
In file included from ./Include/tupleobject.h:39,
from ./Include/Python.h:73:
In function ‘PyTuple_SET_ITEM’,
inlined from ‘ucs4lib_partition’ at Objects/stringlib/partition.h:57:5,
inlined from ‘PyUnicode_Partition’ at Objects/unicodeobject.c:12561:15:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘PyUnicode_Partition’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘ucs4lib_partition’ at Objects/stringlib/partition.h:59:5,
inlined from ‘PyUnicode_Partition’ at Objects/unicodeobject.c:12561:15:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 2 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘PyUnicode_Partition’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘ucs4lib_partition’ at Objects/stringlib/partition.h:48:9,
inlined from ‘PyUnicode_Partition’ at Objects/unicodeobject.c:12561:15:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘PyUnicode_Partition’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘ucs4lib_partition’ at Objects/stringlib/partition.h:50:9,
inlined from ‘PyUnicode_Partition’ at Objects/unicodeobject.c:12561:15:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 2 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘PyUnicode_Partition’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘ucs2lib_partition’ at Objects/stringlib/partition.h:57:5,
inlined from ‘PyUnicode_Partition’ at Objects/unicodeobject.c:12558:15:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘PyUnicode_Partition’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘ucs2lib_partition’ at Objects/stringlib/partition.h:59:5,
inlined from ‘PyUnicode_Partition’ at Objects/unicodeobject.c:12558:15:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 2 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘PyUnicode_Partition’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘ucs2lib_partition’ at Objects/stringlib/partition.h:48:9,
inlined from ‘PyUnicode_Partition’ at Objects/unicodeobject.c:12558:15:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘PyUnicode_Partition’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘ucs2lib_partition’ at Objects/stringlib/partition.h:50:9,
inlined from ‘PyUnicode_Partition’ at Objects/unicodeobject.c:12558:15:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 2 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘PyUnicode_Partition’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘asciilib_partition’ at Objects/stringlib/partition.h:57:5,
inlined from ‘PyUnicode_Partition’ at Objects/unicodeobject.c:12553:19:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘PyUnicode_Partition’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘asciilib_partition’ at Objects/stringlib/partition.h:59:5,
inlined from ‘PyUnicode_Partition’ at Objects/unicodeobject.c:12553:19:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 2 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘PyUnicode_Partition’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘asciilib_partition’ at Objects/stringlib/partition.h:48:9,
inlined from ‘PyUnicode_Partition’ at Objects/unicodeobject.c:12553:19:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘PyUnicode_Partition’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘asciilib_partition’ at Objects/stringlib/partition.h:50:9,
inlined from ‘PyUnicode_Partition’ at Objects/unicodeobject.c:12553:19:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 2 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘PyUnicode_Partition’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘ucs1lib_partition’ at Objects/stringlib/partition.h:57:5,
inlined from ‘PyUnicode_Partition’ at Objects/unicodeobject.c:12555:19:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘PyUnicode_Partition’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘ucs1lib_partition’ at Objects/stringlib/partition.h:59:5,
inlined from ‘PyUnicode_Partition’ at Objects/unicodeobject.c:12555:19:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 2 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘PyUnicode_Partition’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘ucs1lib_partition’ at Objects/stringlib/partition.h:48:9,
inlined from ‘PyUnicode_Partition’ at Objects/unicodeobject.c:12555:19:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘PyUnicode_Partition’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘ucs1lib_partition’ at Objects/stringlib/partition.h:50:9,
inlined from ‘PyUnicode_Partition’ at Objects/unicodeobject.c:12555:19:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 2 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘PyUnicode_Partition’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘ucs4lib_rpartition’ at Objects/stringlib/partition.h:114:5,
inlined from ‘PyUnicode_RPartition’ at Objects/unicodeobject.c:12613:15:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘PyUnicode_RPartition’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘ucs4lib_rpartition’ at Objects/stringlib/partition.h:116:5,
inlined from ‘PyUnicode_RPartition’ at Objects/unicodeobject.c:12613:15:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 2 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘PyUnicode_RPartition’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘ucs4lib_rpartition’ at Objects/stringlib/partition.h:105:9,
inlined from ‘PyUnicode_RPartition’ at Objects/unicodeobject.c:12613:15:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘PyUnicode_RPartition’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘ucs4lib_rpartition’ at Objects/stringlib/partition.h:107:9,
inlined from ‘PyUnicode_RPartition’ at Objects/unicodeobject.c:12613:15:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 2 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘PyUnicode_RPartition’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘ucs2lib_rpartition’ at Objects/stringlib/partition.h:114:5,
inlined from ‘PyUnicode_RPartition’ at Objects/unicodeobject.c:12610:15:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘PyUnicode_RPartition’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘ucs2lib_rpartition’ at Objects/stringlib/partition.h:116:5,
inlined from ‘PyUnicode_RPartition’ at Objects/unicodeobject.c:12610:15:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 2 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘PyUnicode_RPartition’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘ucs2lib_rpartition’ at Objects/stringlib/partition.h:105:9,
inlined from ‘PyUnicode_RPartition’ at Objects/unicodeobject.c:12610:15:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘PyUnicode_RPartition’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘ucs2lib_rpartition’ at Objects/stringlib/partition.h:107:9,
inlined from ‘PyUnicode_RPartition’ at Objects/unicodeobject.c:12610:15:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 2 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘PyUnicode_RPartition’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘asciilib_rpartition’ at Objects/stringlib/partition.h:114:5,
inlined from ‘PyUnicode_RPartition’ at Objects/unicodeobject.c:12605:19:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘PyUnicode_RPartition’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘asciilib_rpartition’ at Objects/stringlib/partition.h:116:5,
inlined from ‘PyUnicode_RPartition’ at Objects/unicodeobject.c:12605:19:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 2 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘PyUnicode_RPartition’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘asciilib_rpartition’ at Objects/stringlib/partition.h:105:9,
inlined from ‘PyUnicode_RPartition’ at Objects/unicodeobject.c:12605:19:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘PyUnicode_RPartition’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘asciilib_rpartition’ at Objects/stringlib/partition.h:107:9,
inlined from ‘PyUnicode_RPartition’ at Objects/unicodeobject.c:12605:19:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 2 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘PyUnicode_RPartition’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘ucs1lib_rpartition’ at Objects/stringlib/partition.h:114:5,
inlined from ‘PyUnicode_RPartition’ at Objects/unicodeobject.c:12607:19:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘PyUnicode_RPartition’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘ucs1lib_rpartition’ at Objects/stringlib/partition.h:116:5,
inlined from ‘PyUnicode_RPartition’ at Objects/unicodeobject.c:12607:19:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 2 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘PyUnicode_RPartition’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘ucs1lib_rpartition’ at Objects/stringlib/partition.h:105:9,
inlined from ‘PyUnicode_RPartition’ at Objects/unicodeobject.c:12607:19:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘PyUnicode_RPartition’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘ucs1lib_rpartition’ at Objects/stringlib/partition.h:107:9,
inlined from ‘PyUnicode_RPartition’ at Objects/unicodeobject.c:12607:19:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 2 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘PyUnicode_RPartition’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Objects/unicodectype.o Objects/unicodectype.c
Objects/unicodectype.c: In function ‘gettyperecord’:
Objects/unicodectype.c:53:38: warning: conversion to ‘Py_UCS4’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
53 | index = index2[(index<<SHIFT)+(code&((1<<SHIFT)-1))];
| ^
Objects/unicodectype.c: In function ‘_PyUnicode_ToTitlecase’:
Objects/unicodectype.c:68:15: warning: conversion to ‘Py_UCS4’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
68 | return ch + ctype->title;
| ^
Objects/unicodectype.c: In function ‘_PyUnicode_ToUppercase’:
Objects/unicodectype.c:194:15: warning: conversion to ‘Py_UCS4’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
194 | return ch + ctype->upper;
| ^
Objects/unicodectype.c: In function ‘_PyUnicode_ToLowercase’:
Objects/unicodectype.c:206:15: warning: conversion to ‘Py_UCS4’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
206 | return ch + ctype->lower;
| ^
Objects/unicodectype.c: In function ‘_PyUnicode_ToLowerFull’:
Objects/unicodectype.c:221:17: warning: conversion to ‘Py_UCS4’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
221 | res[0] = ch + ctype->lower;
| ^
Objects/unicodectype.c: In function ‘_PyUnicode_ToTitleFull’:
Objects/unicodectype.c:237:17: warning: conversion to ‘Py_UCS4’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
237 | res[0] = ch + ctype->title;
| ^
Objects/unicodectype.c: In function ‘_PyUnicode_ToUpperFull’:
Objects/unicodectype.c:253:17: warning: conversion to ‘Py_UCS4’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
253 | res[0] = ch + ctype->upper;
| ^
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Objects/unionobject.o Objects/unionobject.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_runtime.h:17,
from ./Include/internal/pycore_emscripten_trampoline.h:4,
from ./Include/internal/pycore_object.h:13,
from Objects/unionobject.c:3:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
./Include/internal/pycore_object.h: In function ‘_PyType_PreHeaderSize’:
./Include/internal/pycore_object.h:453:30: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
453 | return _PyType_IS_GC(tp) * sizeof(PyGC_Head) +
| ^
./Include/internal/pycore_object.h:454:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
454 | _PyType_HasFeature(tp, Py_TPFLAGS_PREHEADER) * 2 * sizeof(PyObject *);
| ^
In file included from ./Include/tupleobject.h:39,
from ./Include/Python.h:73,
from Objects/unionobject.c:2:
Objects/unionobject.c: In function ‘union_getitem’:
./Include/cpython/tupleobject.h:27:64: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
27 | #define PyTuple_GET_ITEM(op, index) (_PyTuple_CAST(op)->ob_item[(index)])
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
Objects/unionobject.c:298:29: note: in expansion of macro ‘PyTuple_GET_ITEM’
298 | PyObject *arg = PyTuple_GET_ITEM(newargs, iarg);
| ^~~~~~~~~~~~~~~~
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Objects/weakrefobject.o Objects/weakrefobject.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_runtime.h:17,
from ./Include/internal/pycore_emscripten_trampoline.h:4,
from ./Include/internal/pycore_object.h:13,
from Objects/weakrefobject.c:3:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
./Include/internal/pycore_object.h: In function ‘_PyType_PreHeaderSize’:
./Include/internal/pycore_object.h:453:30: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
453 | return _PyType_IS_GC(tp) * sizeof(PyGC_Head) +
| ^
./Include/internal/pycore_object.h:454:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
454 | _PyType_HasFeature(tp, Py_TPFLAGS_PREHEADER) * 2 * sizeof(PyObject *);
| ^
In file included from ./Include/tupleobject.h:39,
from ./Include/Python.h:73,
from Objects/weakrefobject.c:1:
Objects/weakrefobject.c: In function ‘PyObject_ClearWeakRefs’:
./Include/cpython/tupleobject.h:27:64: warning: array subscript [-2, 0] is outside array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
27 | #define PyTuple_GET_ITEM(op, index) (_PyTuple_CAST(op)->ob_item[(index)])
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
Objects/weakrefobject.c:1017:38: note: in expansion of macro ‘PyTuple_GET_ITEM’
1017 | PyObject *callback = PyTuple_GET_ITEM(tuple, i * 2 + 1);
| ^~~~~~~~~~~~~~~~
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘PyTuple_SET_ITEM’,
inlined from ‘PyObject_ClearWeakRefs’ at Objects/weakrefobject.c:1007:21:
./Include/cpython/tupleobject.h:35:19: warning: array subscript [-2, 0] is outside array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘PyObject_ClearWeakRefs’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Python/asm_trampoline.o Python/asm_trampoline.S
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Python/_warnings.o Python/_warnings.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_runtime.h:17,
from ./Include/internal/pycore_emscripten_trampoline.h:4,
from ./Include/internal/pycore_object.h:13,
from ./Include/internal/pycore_dict.h:13,
from Python/_warnings.c:2:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
./Include/internal/pycore_object.h: In function ‘_PyType_PreHeaderSize’:
./Include/internal/pycore_object.h:453:30: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
453 | return _PyType_IS_GC(tp) * sizeof(PyGC_Head) +
| ^
./Include/internal/pycore_object.h:454:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
454 | _PyType_HasFeature(tp, Py_TPFLAGS_PREHEADER) * 2 * sizeof(PyObject *);
| ^
./Include/internal/pycore_dict.h: In function ‘_PyDict_NotifyEvent’:
./Include/internal/pycore_dict.h:233:42: warning: conversion to ‘uint64_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
233 | return DICT_NEXT_VERSION(interp) | watcher_bits;
| ^
./Include/internal/pycore_dict.h: In function ‘_PyDictValues_AddToInsertionOrder’:
./Include/internal/pycore_dict.h:254:17: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
254 | *size_ptr = size;
| ^~~~
In file included from Python/_warnings.c:4:
./Include/internal/pycore_long.h: In function ‘_PyLong_DigitCount’:
./Include/internal/pycore_long.h:238:34: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘uintptr_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
238 | return op->long_value.lv_tag >> NON_SIZE_BITS;
| ^
./Include/internal/pycore_long.h: In function ‘_PyLong_SetSignAndDigitCount’:
./Include/internal/pycore_long.h:273:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
273 | #define TAG_FROM_SIGN_AND_SIZE(sign, size) ((1 - (sign)) | ((size) << NON_SIZE_BITS))
| ^
./Include/internal/pycore_long.h:281:29: note: in expansion of macro ‘TAG_FROM_SIGN_AND_SIZE’
281 | op->long_value.lv_tag = TAG_FROM_SIGN_AND_SIZE(sign, (size_t)size);
| ^~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_long.h: In function ‘_PyLong_FlipSign’:
./Include/internal/pycore_long.h:296:27: warning: unsigned conversion from ‘int’ to ‘uintptr_t’ {aka ‘long unsigned int’} changes value from ‘-8’ to ‘18446744073709551608’ [-Wsign-conversion]
296 | op->long_value.lv_tag &= NON_SIZE_MASK;
| ^~
In file included from ./Include/listobject.h:45,
from ./Include/Python.h:74,
from Python/_warnings.c:1:
Python/_warnings.c: In function ‘init_filters’:
Python/_warnings.c:109:33: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
109 | PyList_SET_ITEM(filters, pos++, \
./Include/cpython/listobject.h:46:42: note: in definition of macro ‘PyList_SET_ITEM’
46 | PyList_SET_ITEM(_PyObject_CAST(op), (index), _PyObject_CAST(value))
| ^~~~~
Python/_warnings.c:111:5: note: in expansion of macro ‘ADD’
111 | ADD(PyExc_DeprecationWarning, default, "__main__");
| ^~~
Python/_warnings.c:109:33: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
109 | PyList_SET_ITEM(filters, pos++, \
./Include/cpython/listobject.h:46:42: note: in definition of macro ‘PyList_SET_ITEM’
46 | PyList_SET_ITEM(_PyObject_CAST(op), (index), _PyObject_CAST(value))
| ^~~~~
Python/_warnings.c:112:5: note: in expansion of macro ‘ADD’
112 | ADD(PyExc_DeprecationWarning, ignore, NULL);
| ^~~
Python/_warnings.c:109:33: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
109 | PyList_SET_ITEM(filters, pos++, \
./Include/cpython/listobject.h:46:42: note: in definition of macro ‘PyList_SET_ITEM’
46 | PyList_SET_ITEM(_PyObject_CAST(op), (index), _PyObject_CAST(value))
| ^~~~~
Python/_warnings.c:113:5: note: in expansion of macro ‘ADD’
113 | ADD(PyExc_PendingDeprecationWarning, ignore, NULL);
| ^~~
Python/_warnings.c:109:33: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
109 | PyList_SET_ITEM(filters, pos++, \
./Include/cpython/listobject.h:46:42: note: in definition of macro ‘PyList_SET_ITEM’
46 | PyList_SET_ITEM(_PyObject_CAST(op), (index), _PyObject_CAST(value))
| ^~~~~
Python/_warnings.c:114:5: note: in expansion of macro ‘ADD’
114 | ADD(PyExc_ImportWarning, ignore, NULL);
| ^~~
Python/_warnings.c:109:33: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
109 | PyList_SET_ITEM(filters, pos++, \
./Include/cpython/listobject.h:46:42: note: in definition of macro ‘PyList_SET_ITEM’
46 | PyList_SET_ITEM(_PyObject_CAST(op), (index), _PyObject_CAST(value))
| ^~~~~
Python/_warnings.c:115:5: note: in expansion of macro ‘ADD’
115 | ADD(PyExc_ResourceWarning, ignore, NULL);
| ^~~
In file included from ./Include/tupleobject.h:39,
from ./Include/Python.h:73:
In function ‘get_filter’,
inlined from ‘warn_explicit’ at Python/_warnings.c:696:14:
./Include/cpython/tupleobject.h:27:64: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
27 | #define PyTuple_GET_ITEM(op, index) (_PyTuple_CAST(op)->ob_item[(index)])
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
Python/_warnings.c:341:15: note: in expansion of macro ‘PyTuple_GET_ITEM’
341 | msg = PyTuple_GET_ITEM(tmp_item, 1);
| ^~~~~~~~~~~~~~~~
./Include/cpython/tupleobject.h: In function ‘warn_explicit’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘get_filter’,
inlined from ‘warn_explicit’ at Python/_warnings.c:696:14:
./Include/cpython/tupleobject.h:27:64: warning: array subscript 2 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
27 | #define PyTuple_GET_ITEM(op, index) (_PyTuple_CAST(op)->ob_item[(index)])
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
Python/_warnings.c:342:15: note: in expansion of macro ‘PyTuple_GET_ITEM’
342 | cat = PyTuple_GET_ITEM(tmp_item, 2);
| ^~~~~~~~~~~~~~~~
./Include/cpython/tupleobject.h: In function ‘warn_explicit’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘get_filter’,
inlined from ‘warn_explicit’ at Python/_warnings.c:696:14:
./Include/cpython/tupleobject.h:27:64: warning: array subscript 3 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
27 | #define PyTuple_GET_ITEM(op, index) (_PyTuple_CAST(op)->ob_item[(index)])
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
Python/_warnings.c:343:15: note: in expansion of macro ‘PyTuple_GET_ITEM’
343 | mod = PyTuple_GET_ITEM(tmp_item, 3);
| ^~~~~~~~~~~~~~~~
./Include/cpython/tupleobject.h: In function ‘warn_explicit’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘get_filter’,
inlined from ‘warn_explicit’ at Python/_warnings.c:696:14:
./Include/cpython/tupleobject.h:27:64: warning: array subscript 4 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
27 | #define PyTuple_GET_ITEM(op, index) (_PyTuple_CAST(op)->ob_item[(index)])
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
Python/_warnings.c:344:18: note: in expansion of macro ‘PyTuple_GET_ITEM’
344 | ln_obj = PyTuple_GET_ITEM(tmp_item, 4);
| ^~~~~~~~~~~~~~~~
./Include/cpython/tupleobject.h: In function ‘warn_explicit’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Python/Python-ast.o Python/Python-ast.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_ceval.h:13,
from Python/Python-ast.c:6:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
In file included from ./Include/internal/pycore_ast.h:13,
from Python/Python-ast.c:4:
Python/Python-ast.c: In function ‘_Py_asdl_mod_seq_new’:
./Include/internal/pycore_asdl.h:63:33: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
63 | n = (size ? (sizeof(TYPE *) * (size - 1)) : 0); \
| ^
Python/Python-ast.c:371:1: note: in expansion of macro ‘GENERATE_ASDL_SEQ_CONSTRUCTOR’
371 | GENERATE_ASDL_SEQ_CONSTRUCTOR(mod, mod_ty)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Python/Python-ast.c: In function ‘_Py_asdl_stmt_seq_new’:
./Include/internal/pycore_asdl.h:63:33: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
63 | n = (size ? (sizeof(TYPE *) * (size - 1)) : 0); \
| ^
Python/Python-ast.c:372:1: note: in expansion of macro ‘GENERATE_ASDL_SEQ_CONSTRUCTOR’
372 | GENERATE_ASDL_SEQ_CONSTRUCTOR(stmt, stmt_ty)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Python/Python-ast.c: In function ‘_Py_asdl_expr_seq_new’:
./Include/internal/pycore_asdl.h:63:33: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
63 | n = (size ? (sizeof(TYPE *) * (size - 1)) : 0); \
| ^
Python/Python-ast.c:373:1: note: in expansion of macro ‘GENERATE_ASDL_SEQ_CONSTRUCTOR’
373 | GENERATE_ASDL_SEQ_CONSTRUCTOR(expr, expr_ty)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Python/Python-ast.c: In function ‘_Py_asdl_comprehension_seq_new’:
./Include/internal/pycore_asdl.h:63:33: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
63 | n = (size ? (sizeof(TYPE *) * (size - 1)) : 0); \
| ^
Python/Python-ast.c:374:1: note: in expansion of macro ‘GENERATE_ASDL_SEQ_CONSTRUCTOR’
374 | GENERATE_ASDL_SEQ_CONSTRUCTOR(comprehension, comprehension_ty)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Python/Python-ast.c: In function ‘_Py_asdl_excepthandler_seq_new’:
./Include/internal/pycore_asdl.h:63:33: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
63 | n = (size ? (sizeof(TYPE *) * (size - 1)) : 0); \
| ^
Python/Python-ast.c:375:1: note: in expansion of macro ‘GENERATE_ASDL_SEQ_CONSTRUCTOR’
375 | GENERATE_ASDL_SEQ_CONSTRUCTOR(excepthandler, excepthandler_ty)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Python/Python-ast.c: In function ‘_Py_asdl_arguments_seq_new’:
./Include/internal/pycore_asdl.h:63:33: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
63 | n = (size ? (sizeof(TYPE *) * (size - 1)) : 0); \
| ^
Python/Python-ast.c:376:1: note: in expansion of macro ‘GENERATE_ASDL_SEQ_CONSTRUCTOR’
376 | GENERATE_ASDL_SEQ_CONSTRUCTOR(arguments, arguments_ty)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Python/Python-ast.c: In function ‘_Py_asdl_arg_seq_new’:
./Include/internal/pycore_asdl.h:63:33: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
63 | n = (size ? (sizeof(TYPE *) * (size - 1)) : 0); \
| ^
Python/Python-ast.c:377:1: note: in expansion of macro ‘GENERATE_ASDL_SEQ_CONSTRUCTOR’
377 | GENERATE_ASDL_SEQ_CONSTRUCTOR(arg, arg_ty)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Python/Python-ast.c: In function ‘_Py_asdl_keyword_seq_new’:
./Include/internal/pycore_asdl.h:63:33: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
63 | n = (size ? (sizeof(TYPE *) * (size - 1)) : 0); \
| ^
Python/Python-ast.c:378:1: note: in expansion of macro ‘GENERATE_ASDL_SEQ_CONSTRUCTOR’
378 | GENERATE_ASDL_SEQ_CONSTRUCTOR(keyword, keyword_ty)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Python/Python-ast.c: In function ‘_Py_asdl_alias_seq_new’:
./Include/internal/pycore_asdl.h:63:33: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
63 | n = (size ? (sizeof(TYPE *) * (size - 1)) : 0); \
| ^
Python/Python-ast.c:379:1: note: in expansion of macro ‘GENERATE_ASDL_SEQ_CONSTRUCTOR’
379 | GENERATE_ASDL_SEQ_CONSTRUCTOR(alias, alias_ty)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Python/Python-ast.c: In function ‘_Py_asdl_withitem_seq_new’:
./Include/internal/pycore_asdl.h:63:33: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
63 | n = (size ? (sizeof(TYPE *) * (size - 1)) : 0); \
| ^
Python/Python-ast.c:380:1: note: in expansion of macro ‘GENERATE_ASDL_SEQ_CONSTRUCTOR’
380 | GENERATE_ASDL_SEQ_CONSTRUCTOR(withitem, withitem_ty)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Python/Python-ast.c: In function ‘_Py_asdl_match_case_seq_new’:
./Include/internal/pycore_asdl.h:63:33: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
63 | n = (size ? (sizeof(TYPE *) * (size - 1)) : 0); \
| ^
Python/Python-ast.c:381:1: note: in expansion of macro ‘GENERATE_ASDL_SEQ_CONSTRUCTOR’
381 | GENERATE_ASDL_SEQ_CONSTRUCTOR(match_case, match_case_ty)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Python/Python-ast.c: In function ‘_Py_asdl_pattern_seq_new’:
./Include/internal/pycore_asdl.h:63:33: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
63 | n = (size ? (sizeof(TYPE *) * (size - 1)) : 0); \
| ^
Python/Python-ast.c:382:1: note: in expansion of macro ‘GENERATE_ASDL_SEQ_CONSTRUCTOR’
382 | GENERATE_ASDL_SEQ_CONSTRUCTOR(pattern, pattern_ty)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Python/Python-ast.c: In function ‘_Py_asdl_type_ignore_seq_new’:
./Include/internal/pycore_asdl.h:63:33: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
63 | n = (size ? (sizeof(TYPE *) * (size - 1)) : 0); \
| ^
Python/Python-ast.c:383:1: note: in expansion of macro ‘GENERATE_ASDL_SEQ_CONSTRUCTOR’
383 | GENERATE_ASDL_SEQ_CONSTRUCTOR(type_ignore, type_ignore_ty)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Python/Python-ast.c: In function ‘_Py_asdl_type_param_seq_new’:
./Include/internal/pycore_asdl.h:63:33: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
63 | n = (size ? (sizeof(TYPE *) * (size - 1)) : 0); \
| ^
Python/Python-ast.c:384:1: note: in expansion of macro ‘GENERATE_ASDL_SEQ_CONSTRUCTOR’
384 | GENERATE_ASDL_SEQ_CONSTRUCTOR(type_param, type_param_ty)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Python/Python-tokenize.o Python/Python-tokenize.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_runtime.h:17,
from Python/Python-tokenize.c:22:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Python/asdl.o Python/asdl.c
In file included from Python/asdl.c:2:
Python/asdl.c: In function ‘_Py_asdl_generic_seq_new’:
./Include/internal/pycore_asdl.h:63:33: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
63 | n = (size ? (sizeof(TYPE *) * (size - 1)) : 0); \
| ^
Python/asdl.c:4:1: note: in expansion of macro ‘GENERATE_ASDL_SEQ_CONSTRUCTOR’
4 | GENERATE_ASDL_SEQ_CONSTRUCTOR(generic, void*);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Python/asdl.c: In function ‘_Py_asdl_identifier_seq_new’:
./Include/internal/pycore_asdl.h:63:33: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
63 | n = (size ? (sizeof(TYPE *) * (size - 1)) : 0); \
| ^
Python/asdl.c:5:1: note: in expansion of macro ‘GENERATE_ASDL_SEQ_CONSTRUCTOR’
5 | GENERATE_ASDL_SEQ_CONSTRUCTOR(identifier, PyObject*);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Python/asdl.c: In function ‘_Py_asdl_int_seq_new’:
./Include/internal/pycore_asdl.h:63:33: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
63 | n = (size ? (sizeof(TYPE *) * (size - 1)) : 0); \
| ^
Python/asdl.c:6:1: note: in expansion of macro ‘GENERATE_ASDL_SEQ_CONSTRUCTOR’
6 | GENERATE_ASDL_SEQ_CONSTRUCTOR(int, int);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Python/assemble.o Python/assemble.c
In file included from Python/assemble.c:4:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
Python/assemble.c: In function ‘write_except_byte’:
Python/assemble.c:99:34: warning: conversion from ‘int’ to ‘unsigned char’ may change value [-Wconversion]
99 | p[a->a_except_table_off++] = byte;
| ^~~~
Python/assemble.c: In function ‘write_location_byte’:
Python/assemble.c:197:60: warning: conversion from ‘int’ to ‘char’ may change value [-Wconversion]
197 | PyBytes_AS_STRING(a->a_linetable)[a->a_location_off] = val&255;
| ^~~
Python/assemble.c: In function ‘write_location_info_long_form’:
Python/assemble.c:263:45: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
263 | write_location_varint(a, loc.end_lineno - loc.lineno);
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~
Python/assemble.c:264:45: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
264 | write_location_varint(a, loc.col_offset + 1);
| ~~~~~~~~~~~~~~~^~~
Python/assemble.c:265:49: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
265 | write_location_varint(a, loc.end_col_offset + 1);
| ~~~~~~~~~~~~~~~~~~~^~~
Python/assemble.c: In function ‘write_instr’:
Python/assemble.c:368:31: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
368 | codestr->op.arg = (oparg >> 24) & 0xFF;
| ^
Python/assemble.c:373:31: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
373 | codestr->op.arg = (oparg >> 16) & 0xFF;
| ^
Python/assemble.c:378:31: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
378 | codestr->op.arg = (oparg >> 8) & 0xFF;
| ^
Python/assemble.c:382:32: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
382 | codestr->op.code = opcode;
| ^~~~~~
Python/assemble.c:383:31: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
383 | codestr->op.arg = oparg & 0xFF;
| ^~~~~
Python/assemble.c: In function ‘assemble_emit’:
Python/assemble.c:441:65: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
441 | RETURN_IF_ERROR(_PyBytes_Resize(&a->a_bytecode, a->a_offset * sizeof(_Py_CODEUNIT)));
| ^
Python/assemble.c:20:10: note: in definition of macro ‘RETURN_IF_ERROR’
20 | if ((X) < 0) { \
| ^
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Python/ast.o Python/ast.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_runtime.h:17,
from ./Include/internal/pycore_pystate.h:11,
from Python/ast.c:7:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Python/ast_opt.o Python/ast_opt.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_runtime.h:17,
from ./Include/internal/pycore_long.h:13,
from Python/ast_opt.c:5:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
./Include/internal/pycore_long.h: In function ‘_PyLong_DigitCount’:
./Include/internal/pycore_long.h:238:34: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘uintptr_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
238 | return op->long_value.lv_tag >> NON_SIZE_BITS;
| ^
./Include/internal/pycore_long.h: In function ‘_PyLong_SetSignAndDigitCount’:
./Include/internal/pycore_long.h:273:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
273 | #define TAG_FROM_SIGN_AND_SIZE(sign, size) ((1 - (sign)) | ((size) << NON_SIZE_BITS))
| ^
./Include/internal/pycore_long.h:281:29: note: in expansion of macro ‘TAG_FROM_SIGN_AND_SIZE’
281 | op->long_value.lv_tag = TAG_FROM_SIGN_AND_SIZE(sign, (size_t)size);
| ^~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_long.h: In function ‘_PyLong_FlipSign’:
./Include/internal/pycore_long.h:296:27: warning: unsigned conversion from ‘int’ to ‘uintptr_t’ {aka ‘long unsigned int’} changes value from ‘-8’ to ‘18446744073709551608’ [-Wsign-conversion]
296 | op->long_value.lv_tag &= NON_SIZE_MASK;
| ^~
Python/ast_opt.c: In function ‘simple_format_arg_parse’:
Python/ast_opt.c:325:34: warning: conversion to ‘Py_UCS4’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
325 | *width = *width * 10 + (ch - '0');
| ^
Python/ast_opt.c:325:22: warning: conversion to ‘int’ from ‘Py_UCS4’ {aka ‘unsigned int’} may change the sign of the result [-Wsign-conversion]
325 | *width = *width * 10 + (ch - '0');
| ^
Python/ast_opt.c:339:36: warning: conversion to ‘Py_UCS4’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
339 | *prec = *prec * 10 + (ch - '0');
| ^
Python/ast_opt.c:339:25: warning: conversion to ‘int’ from ‘Py_UCS4’ {aka ‘unsigned int’} may change the sign of the result [-Wsign-conversion]
339 | *prec = *prec * 10 + (ch - '0');
| ^
Python/ast_opt.c:347:13: warning: conversion to ‘int’ from ‘Py_UCS4’ {aka ‘unsigned int’} may change the sign of the result [-Wsign-conversion]
347 | *spec = ch;
| ^~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Python/ast_unparse.o Python/ast_unparse.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_runtime.h:17,
from ./Include/internal/pycore_pystate.h:11,
from Python/ast_unparse.c:3:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Python/bltinmodule.o Python/bltinmodule.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_runtime.h:17,
from ./Include/internal/pycore_pystate.h:11,
from ./Include/internal/pycore_call.h:12,
from Python/bltinmodule.c:5:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
In file included from ./Include/internal/pycore_dict.h:13,
from Python/bltinmodule.c:8:
./Include/internal/pycore_object.h: In function ‘_PyType_PreHeaderSize’:
./Include/internal/pycore_object.h:453:30: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
453 | return _PyType_IS_GC(tp) * sizeof(PyGC_Head) +
| ^
./Include/internal/pycore_object.h:454:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
454 | _PyType_HasFeature(tp, Py_TPFLAGS_PREHEADER) * 2 * sizeof(PyObject *);
| ^
./Include/internal/pycore_dict.h: In function ‘_PyDict_NotifyEvent’:
./Include/internal/pycore_dict.h:233:42: warning: conversion to ‘uint64_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
233 | return DICT_NEXT_VERSION(interp) | watcher_bits;
| ^
./Include/internal/pycore_dict.h: In function ‘_PyDictValues_AddToInsertionOrder’:
./Include/internal/pycore_dict.h:254:17: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
254 | *size_ptr = size;
| ^~~~
In file included from Python/bltinmodule.c:9:
./Include/internal/pycore_long.h: In function ‘_PyLong_DigitCount’:
./Include/internal/pycore_long.h:238:34: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘uintptr_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
238 | return op->long_value.lv_tag >> NON_SIZE_BITS;
| ^
./Include/internal/pycore_long.h: In function ‘_PyLong_SetSignAndDigitCount’:
./Include/internal/pycore_long.h:273:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
273 | #define TAG_FROM_SIGN_AND_SIZE(sign, size) ((1 - (sign)) | ((size) << NON_SIZE_BITS))
| ^
./Include/internal/pycore_long.h:281:29: note: in expansion of macro ‘TAG_FROM_SIGN_AND_SIZE’
281 | op->long_value.lv_tag = TAG_FROM_SIGN_AND_SIZE(sign, (size_t)size);
| ^~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_long.h: In function ‘_PyLong_FlipSign’:
./Include/internal/pycore_long.h:296:27: warning: unsigned conversion from ‘int’ to ‘uintptr_t’ {aka ‘long unsigned int’} changes value from ‘-8’ to ‘18446744073709551608’ [-Wsign-conversion]
296 | op->long_value.lv_tag &= NON_SIZE_MASK;
| ^~
Python/bltinmodule.c: In function ‘builtin_breakpoint’:
Python/bltinmodule.c:478:56: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
478 | PyObject *retval = PyObject_Vectorcall(hook, args, nargs, keywords);
| ^~~~~
Python/bltinmodule.c: In function ‘map_next’:
Python/bltinmodule.c:1400:37: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
1400 | stack = PyMem_Malloc(niters * sizeof(stack[0]));
| ^
Python/bltinmodule.c:1418:66: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
1418 | result = _PyObject_VectorcallTstate(tstate, lz->func, stack, nargs, NULL);
| ^~~~~
Python/bltinmodule.c: In function ‘builtin_input_impl’:
Python/bltinmodule.c:2172:45: warning: conversion from ‘long int’ to ‘int’ may change value [-Wconversion]
2172 | tty = fd == fileno(stdin) && isatty(fd);
| ^~
Python/bltinmodule.c:2185:50: warning: conversion from ‘long int’ to ‘int’ may change value [-Wconversion]
2185 | tty = fd == fileno(stdout) && isatty(fd);
| ^~
Python/bltinmodule.c:2296:46: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
2296 | result = PyUnicode_Decode(s, len, stdin_encoding_str,
| ^~~
Python/bltinmodule.c: In function ‘builtin_sorted’:
Python/bltinmodule.c:2447:55: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
2447 | v = PyObject_Vectorcall(callable, args + 1, nargs - 1, kwnames);
| ~~~~~~^~~
In file included from ./Include/tupleobject.h:39,
from ./Include/Python.h:73,
from Python/bltinmodule.c:3:
In function ‘PyTuple_SET_ITEM’,
inlined from ‘map_reduce’ at Python/bltinmodule.c:1441:9:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘map_reduce’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
Python/bltinmodule.c: In function ‘map_new’:
Python/bltinmodule.c:1308:14: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
1308 | it = PyObject_GetIter(PyTuple_GET_ITEM(args, i));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
Python/bltinmodule.c: In function ‘zip_next’:
./Include/cpython/tupleobject.h:27:64: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
27 | #define PyTuple_GET_ITEM(op, index) (_PyTuple_CAST(op)->ob_item[(index)])
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
Python/bltinmodule.c:2912:14: note: in expansion of macro ‘PyTuple_GET_ITEM’
2912 | it = PyTuple_GET_ITEM(lz->ittuple, i);
| ^~~~~~~~~~~~~~~~
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Python/ceval.o Python/ceval.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_runtime.h:17,
from ./Include/internal/pycore_pystate.h:11,
from ./Include/internal/pycore_call.h:12,
from Python/ceval.c:7:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
In file included from Python/ceval.c:14:
./Include/internal/pycore_long.h: In function ‘_PyLong_DigitCount’:
./Include/internal/pycore_long.h:238:34: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘uintptr_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
238 | return op->long_value.lv_tag >> NON_SIZE_BITS;
| ^
./Include/internal/pycore_long.h: In function ‘_PyLong_SetSignAndDigitCount’:
./Include/internal/pycore_long.h:273:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
273 | #define TAG_FROM_SIGN_AND_SIZE(sign, size) ((1 - (sign)) | ((size) << NON_SIZE_BITS))
| ^
./Include/internal/pycore_long.h:281:29: note: in expansion of macro ‘TAG_FROM_SIGN_AND_SIZE’
281 | op->long_value.lv_tag = TAG_FROM_SIGN_AND_SIZE(sign, (size_t)size);
| ^~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_long.h: In function ‘_PyLong_FlipSign’:
./Include/internal/pycore_long.h:296:27: warning: unsigned conversion from ‘int’ to ‘uintptr_t’ {aka ‘long unsigned int’} changes value from ‘-8’ to ‘18446744073709551608’ [-Wsign-conversion]
296 | op->long_value.lv_tag &= NON_SIZE_MASK;
| ^~
In file included from Python/ceval.c:16:
./Include/internal/pycore_object.h: In function ‘_PyType_PreHeaderSize’:
./Include/internal/pycore_object.h:453:30: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
453 | return _PyType_IS_GC(tp) * sizeof(PyGC_Head) +
| ^
./Include/internal/pycore_object.h:454:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
454 | _PyType_HasFeature(tp, Py_TPFLAGS_PREHEADER) * 2 * sizeof(PyObject *);
| ^
In file included from Python/ceval.c:30:
./Include/internal/pycore_dict.h: In function ‘_PyDict_NotifyEvent’:
./Include/internal/pycore_dict.h:233:42: warning: conversion to ‘uint64_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
233 | return DICT_NEXT_VERSION(interp) | watcher_bits;
| ^
./Include/internal/pycore_dict.h: In function ‘_PyDictValues_AddToInsertionOrder’:
./Include/internal/pycore_dict.h:254:17: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
254 | *size_ptr = size;
| ^~~~
In file included from Python/ceval.c:783:
Python/generated_cases.c.h: In function ‘_PyEval_EvalFrameDefault’:
Python/generated_cases.c.h:28:86: warning: unsigned conversion from ‘int’ to ‘uintptr_t’ {aka ‘long unsigned int’} changes value from ‘-256’ to ‘18446744073709551360’ [-Wsign-conversion]
28 | _Py_atomic_load_uintptr_relaxed(&tstate->interp->ceval.eval_breaker) &
| ^
Python/generated_cases.c.h:65:109: warning: unsigned conversion from ‘int’ to ‘uintptr_t’ {aka ‘long unsigned int’} changes value from ‘-256’ to ‘18446744073709551360’ [-Wsign-conversion]
65 | uintptr_t global_version = _Py_atomic_load_uintptr_relaxed(&tstate->interp->ceval.eval_breaker) & ~_PY_EVAL_EVENTS_MASK;
| ^
Python/generated_cases.c.h:136:31: warning: conversion to ‘uint32_t’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
136 | uint32_t oparg1 = oparg >> 4;
| ^~~~~
Python/generated_cases.c.h:178:31: warning: conversion to ‘uint32_t’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
178 | uint32_t oparg1 = oparg >> 4;
| ^~~~~
Python/generated_cases.c.h:195:31: warning: conversion to ‘uint32_t’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
195 | uint32_t oparg1 = oparg >> 4;
| ^~~~~
Python/generated_cases.c.h:1501:35: warning: conversion from ‘int’ to ‘int8_t’ {aka ‘signed char’} may change value [-Wconversion]
1501 | gen->gi_frame_state = FRAME_SUSPENDED + oparg;
| ^~~~~~~~~~~~~~~
Python/generated_cases.c.h:1534:35: warning: conversion from ‘int’ to ‘int8_t’ {aka ‘signed char’} may change value [-Wconversion]
1534 | gen->gi_frame_state = FRAME_SUSPENDED + oparg;
| ^~~~~~~~~~~~~~~
Python/generated_cases.c.h:3407:43: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
3407 | this_instr[1].cache = ((1 << 16) - ((1 << OPTIMIZER_BITS_IN_COUNTER) << backoff)) | backoff;
| ^
Python/generated_cases.c.h:4331:31: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
4331 | args, total_args, NULL
| ^~~~~~~~~~
Python/generated_cases.c.h:4346:32: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
4346 | total_args | PY_VECTORCALL_ARGUMENTS_OFFSET,
| ^
Python/generated_cases.c.h:4773:59: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
4773 | res = tp->tp_vectorcall((PyObject *)tp, args, total_args, NULL);
| ^~~~~~~~~~
Python/generated_cases.c.h:5252:27: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
5252 | args, positional_args, kwnames
| ^~~~~~~~~~~~~~~
Python/generated_cases.c.h:5269:33: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
5269 | positional_args | PY_VECTORCALL_ARGUMENTS_OFFSET,
| ^
Python/generated_cases.c.h:5643:22: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
5643 | opcode = next_opcode;
| ^~~~~~~~~~~
Python/ceval.c:815:18: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
815 | opcode = original_opcode;
| ^~~~~~~~~~~~~~~
In file included from Python/ceval.c:1019:
Python/executor_cases.c.h:2761:59: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
2761 | res = tp->tp_vectorcall((PyObject *)tp, args, total_args, NULL);
| ^~~~~~~~~~
Python/executor_cases.c.h:3356:36: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
3356 | frame->return_offset = oparg;
| ^~~~~
Python/executor_cases.c.h:3372:79: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
3372 | memmove(&stack_pointer[-1 - oparg], &stack_pointer[-oparg], oparg * sizeof(stack_pointer[0]));
| ^
Python/ceval.c: In function ‘_PyEvalFramePushAndInit’:
Python/ceval.c:1689:71: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
1689 | _PyInterpreterFrame *frame = _PyThreadState_PushFrame(tstate, code->co_framesize);
| ~~~~^~~~~~~~~~~~~~
Python/ceval.c:1694:66: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
1694 | if (initialize_locals(tstate, func, frame->localsplus, args, argcount, kwnames)) {
| ^~~~~~~~
In file included from ./Include/Python.h:50,
from Python/ceval.c:5:
Python/ceval.c:1708:29: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
1708 | Py_DECREF(args[i+argcount]);
| ^
./Include/pyport.h:19:38: note: in definition of macro ‘_Py_CAST’
19 | #define _Py_CAST(type, expr) ((type)(expr))
| ^~~~
Python/ceval.c:60:24: note: in expansion of macro ‘_PyObject_CAST’
60 | PyObject *op = _PyObject_CAST(arg); \
| ^~~~~~~~~~~~~~
Python/ceval.c:1708:13: note: in expansion of macro ‘Py_DECREF’
1708 | Py_DECREF(args[i+argcount]);
| ^~~~~~~~~
Python/ceval.c: In function ‘_PyEvalFramePushAndInit_Ex’:
Python/ceval.c:1741:18: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
1741 | newargs, nargs, kwnames
| ^~~~~
Python/ceval.c: In function ‘_PyEval_Vector’:
Python/ceval.c:1774:29: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
1774 | Py_INCREF(args[i+argcount]);
| ^
./Include/pyport.h:19:38: note: in definition of macro ‘_Py_CAST’
19 | #define _Py_CAST(type, expr) ((type)(expr))
| ^~~~
./Include/object.h:783:35: note: in expansion of macro ‘_PyObject_CAST’
783 | # define Py_INCREF(op) Py_INCREF(_PyObject_CAST(op))
| ^~~~~~~~~~~~~~
Python/ceval.c:1774:13: note: in expansion of macro ‘Py_INCREF’
1774 | Py_INCREF(args[i+argcount]);
| ^~~~~~~~~
Python/ceval.c: In function ‘PyEval_EvalCodeEx’:
Python/ceval.c:1820:50: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
1820 | newargs = PyMem_Malloc(sizeof(PyObject *)*(kwcount+argcount));
| ^
Python/ceval.c:1849:35: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
1849 | allargs, argcount,
| ^~~~~~~~
In file included from ./Include/Python.h:58:
Python/ceval.c: In function ‘_PyEval_ExceptionGroupMatch’:
./Include/object.h:1009:26: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
1009 | # define Py_NewRef(obj) _Py_NewRef(_PyObject_CAST(obj))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Python/ceval.c:2004:17: note: in expansion of macro ‘Py_NewRef’
2004 | *rest = Py_NewRef(PyTuple_GET_ITEM(pair, 1));
| ^~~~~~~~~
In file included from ./Include/tupleobject.h:39,
from ./Include/Python.h:73:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
Python/generated_cases.c.h: In function ‘_PyEval_EvalFrameDefault’:
Python/generated_cases.c.h:4719:39: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
4719 | init_frame->localsplus[i+1] = args[i];
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~
In file included from ./Include/internal/pycore_instruments.h:8,
from ./Include/internal/pycore_interp.h:28:
./Include/internal/pycore_frame.h:70:15: note: while referencing ‘localsplus’
70 | PyObject *localsplus[1];
| ^~~~~~~~~~
./Include/object.h:1009:26: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
1009 | # define Py_NewRef(obj) _Py_NewRef(_PyObject_CAST(obj))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Python/executor_cases.c.h:904:25: note: in expansion of macro ‘Py_NewRef’
904 | values[0] = Py_NewRef(PyTuple_GET_ITEM(seq, 1));
| ^~~~~~~~~
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
Python/generated_cases.c.h:2984:34: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
2984 | new_frame->localsplus[1] = Py_NewRef(name);
| ~~~~~~~~~~~~~~~~~~~~~^~~
./Include/internal/pycore_frame.h:70:15: note: while referencing ‘localsplus’
70 | PyObject *localsplus[1];
| ^~~~~~~~~~
In function ‘_PyFrame_Initialize’,
inlined from ‘_PyFrame_PushUnchecked’ at ./Include/internal/pycore_frame.h:272:5,
inlined from ‘_PyEval_EvalFrameDefault’ at Python/generated_cases.c.h:2980:46:
./Include/internal/pycore_frame.h:136:26: warning: array subscript 2 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
136 | frame->localsplus[i] = NULL;
| ~~~~~~~~~~~~~~~~~^~~
./Include/internal/pycore_frame.h: In function ‘_PyEval_EvalFrameDefault’:
./Include/internal/pycore_frame.h:70:15: note: while referencing ‘localsplus’
70 | PyObject *localsplus[1];
| ^~~~~~~~~~
In function ‘_PyFrame_Initialize’,
inlined from ‘_PyFrame_PushUnchecked’ at ./Include/internal/pycore_frame.h:272:5,
inlined from ‘_PyEval_EvalFrameDefault’ at Python/generated_cases.c.h:2947:46:
./Include/internal/pycore_frame.h:136:26: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
136 | frame->localsplus[i] = NULL;
| ~~~~~~~~~~~~~~~~~^~~
./Include/internal/pycore_frame.h: In function ‘_PyEval_EvalFrameDefault’:
./Include/internal/pycore_frame.h:70:15: note: while referencing ‘localsplus’
70 | PyObject *localsplus[1];
| ^~~~~~~~~~
./Include/object.h:1009:26: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
1009 | # define Py_NewRef(obj) _Py_NewRef(_PyObject_CAST(obj))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Python/generated_cases.c.h:1771:25: note: in expansion of macro ‘Py_NewRef’
1771 | values[0] = Py_NewRef(PyTuple_GET_ITEM(seq, 1));
| ^~~~~~~~~
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
Python/generated_cases.c.h:937:34: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
937 | new_frame->localsplus[1] = sub;
| ~~~~~~~~~~~~~~~~~~~~~^~~
./Include/internal/pycore_frame.h:70:15: note: while referencing ‘localsplus’
70 | PyObject *localsplus[1];
| ^~~~~~~~~~
In function ‘_PyFrame_Initialize’,
inlined from ‘_PyFrame_PushUnchecked’ at ./Include/internal/pycore_frame.h:272:5,
inlined from ‘_PyEval_EvalFrameDefault’ at Python/generated_cases.c.h:934:46:
./Include/internal/pycore_frame.h:136:26: warning: array subscript 2 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
136 | frame->localsplus[i] = NULL;
| ~~~~~~~~~~~~~~~~~^~~
./Include/internal/pycore_frame.h: In function ‘_PyEval_EvalFrameDefault’:
./Include/internal/pycore_frame.h:70:15: note: while referencing ‘localsplus’
70 | PyObject *localsplus[1];
| ^~~~~~~~~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Python/codecs.o Python/codecs.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_runtime.h:17,
from ./Include/internal/pycore_pystate.h:11,
from ./Include/internal/pycore_call.h:12,
from Python/codecs.c:12:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
Python/codecs.c: In function ‘PyCodec_XMLCharRefReplaceErrors’:
Python/codecs.c:811:35: warning: conversion to ‘Py_UCS4’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
811 | *outp++ = '0' + ch/base;
| ^
Python/codecs.c:811:27: warning: conversion from ‘Py_UCS4’ {aka ‘unsigned int’} to ‘Py_UCS1’ {aka ‘unsigned char’} may change value [-Wconversion]
811 | *outp++ = '0' + ch/base;
| ^~~
Python/codecs.c:812:20: warning: conversion to ‘Py_UCS4’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
812 | ch %= base;
| ^~
Python/codecs.c: In function ‘PyCodec_BackslashReplaceErrors’:
Python/codecs.c:858:23: warning: conversion to ‘Py_UCS1’ {aka ‘unsigned char’} from ‘char’ may change the sign of the result [-Wsign-conversion]
858 | outp[2] = Py_hexdigits[(c>>4)&0xf];
| ^~~~~~~~~~~~
Python/codecs.c:859:23: warning: conversion to ‘Py_UCS1’ {aka ‘unsigned char’} from ‘char’ may change the sign of the result [-Wsign-conversion]
859 | outp[3] = Py_hexdigits[c&0xf];
| ^~~~~~~~~~~~
Python/codecs.c:912:23: warning: conversion to ‘Py_UCS1’ {aka ‘unsigned char’} from ‘char’ may change the sign of the result [-Wsign-conversion]
912 | *outp++ = Py_hexdigits[(c>>28)&0xf];
| ^~~~~~~~~~~~
Python/codecs.c:913:23: warning: conversion to ‘Py_UCS1’ {aka ‘unsigned char’} from ‘char’ may change the sign of the result [-Wsign-conversion]
913 | *outp++ = Py_hexdigits[(c>>24)&0xf];
| ^~~~~~~~~~~~
Python/codecs.c:914:23: warning: conversion to ‘Py_UCS1’ {aka ‘unsigned char’} from ‘char’ may change the sign of the result [-Wsign-conversion]
914 | *outp++ = Py_hexdigits[(c>>20)&0xf];
| ^~~~~~~~~~~~
Python/codecs.c:915:23: warning: conversion to ‘Py_UCS1’ {aka ‘unsigned char’} from ‘char’ may change the sign of the result [-Wsign-conversion]
915 | *outp++ = Py_hexdigits[(c>>16)&0xf];
| ^~~~~~~~~~~~
Python/codecs.c:916:23: warning: conversion to ‘Py_UCS1’ {aka ‘unsigned char’} from ‘char’ may change the sign of the result [-Wsign-conversion]
916 | *outp++ = Py_hexdigits[(c>>12)&0xf];
| ^~~~~~~~~~~~
Python/codecs.c:917:23: warning: conversion to ‘Py_UCS1’ {aka ‘unsigned char’} from ‘char’ may change the sign of the result [-Wsign-conversion]
917 | *outp++ = Py_hexdigits[(c>>8)&0xf];
| ^~~~~~~~~~~~
Python/codecs.c:921:23: warning: conversion to ‘Py_UCS1’ {aka ‘unsigned char’} from ‘char’ may change the sign of the result [-Wsign-conversion]
921 | *outp++ = Py_hexdigits[(c>>12)&0xf];
| ^~~~~~~~~~~~
Python/codecs.c:922:23: warning: conversion to ‘Py_UCS1’ {aka ‘unsigned char’} from ‘char’ may change the sign of the result [-Wsign-conversion]
922 | *outp++ = Py_hexdigits[(c>>8)&0xf];
| ^~~~~~~~~~~~
Python/codecs.c:926:19: warning: conversion to ‘Py_UCS1’ {aka ‘unsigned char’} from ‘char’ may change the sign of the result [-Wsign-conversion]
926 | *outp++ = Py_hexdigits[(c>>4)&0xf];
| ^~~~~~~~~~~~
Python/codecs.c:927:19: warning: conversion to ‘Py_UCS1’ {aka ‘unsigned char’} from ‘char’ may change the sign of the result [-Wsign-conversion]
927 | *outp++ = Py_hexdigits[c&0xf];
| ^~~~~~~~~~~~
Python/codecs.c: In function ‘PyCodec_NameReplaceErrors’:
Python/codecs.c:1001:27: warning: conversion to ‘Py_UCS1’ {aka ‘unsigned char’} from ‘char’ may change the sign of the result [-Wsign-conversion]
1001 | *outp++ = Py_hexdigits[(c>>28)&0xf];
| ^~~~~~~~~~~~
Python/codecs.c:1002:27: warning: conversion to ‘Py_UCS1’ {aka ‘unsigned char’} from ‘char’ may change the sign of the result [-Wsign-conversion]
1002 | *outp++ = Py_hexdigits[(c>>24)&0xf];
| ^~~~~~~~~~~~
Python/codecs.c:1003:27: warning: conversion to ‘Py_UCS1’ {aka ‘unsigned char’} from ‘char’ may change the sign of the result [-Wsign-conversion]
1003 | *outp++ = Py_hexdigits[(c>>20)&0xf];
| ^~~~~~~~~~~~
Python/codecs.c:1004:27: warning: conversion to ‘Py_UCS1’ {aka ‘unsigned char’} from ‘char’ may change the sign of the result [-Wsign-conversion]
1004 | *outp++ = Py_hexdigits[(c>>16)&0xf];
| ^~~~~~~~~~~~
Python/codecs.c:1005:27: warning: conversion to ‘Py_UCS1’ {aka ‘unsigned char’} from ‘char’ may change the sign of the result [-Wsign-conversion]
1005 | *outp++ = Py_hexdigits[(c>>12)&0xf];
| ^~~~~~~~~~~~
Python/codecs.c:1006:27: warning: conversion to ‘Py_UCS1’ {aka ‘unsigned char’} from ‘char’ may change the sign of the result [-Wsign-conversion]
1006 | *outp++ = Py_hexdigits[(c>>8)&0xf];
| ^~~~~~~~~~~~
Python/codecs.c:1010:27: warning: conversion to ‘Py_UCS1’ {aka ‘unsigned char’} from ‘char’ may change the sign of the result [-Wsign-conversion]
1010 | *outp++ = Py_hexdigits[(c>>12)&0xf];
| ^~~~~~~~~~~~
Python/codecs.c:1011:27: warning: conversion to ‘Py_UCS1’ {aka ‘unsigned char’} from ‘char’ may change the sign of the result [-Wsign-conversion]
1011 | *outp++ = Py_hexdigits[(c>>8)&0xf];
| ^~~~~~~~~~~~
Python/codecs.c:1015:23: warning: conversion to ‘Py_UCS1’ {aka ‘unsigned char’} from ‘char’ may change the sign of the result [-Wsign-conversion]
1015 | *outp++ = Py_hexdigits[(c>>4)&0xf];
| ^~~~~~~~~~~~
Python/codecs.c:1016:23: warning: conversion to ‘Py_UCS1’ {aka ‘unsigned char’} from ‘char’ may change the sign of the result [-Wsign-conversion]
1016 | *outp++ = Py_hexdigits[c&0xf];
| ^~~~~~~~~~~~
Python/codecs.c: In function ‘PyCodec_SurrogatePassErrors’:
Python/codecs.c:1228:26: warning: conversion to ‘Py_UCS4’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
1228 | ch = ((p[0] & 0x0f) << 12) + ((p[1] & 0x3f) << 6) + (p[2] & 0x3f);
| ^
Python/codecs.c:1252:37: warning: conversion to ‘int’ from ‘Py_UCS4’ {aka ‘unsigned int’} may change the sign of the result [-Wsign-conversion]
1252 | res = PyUnicode_FromOrdinal(ch);
| ^~
Python/codecs.c: In function ‘PyCodec_SurrogateEscapeErrors’:
Python/codecs.c:1297:23: warning: conversion from ‘Py_UCS4’ {aka ‘unsigned int’} to ‘char’ may change value [-Wconversion]
1297 | *outp++ = ch - 0xdc00;
| ^~
In file included from ./Include/tupleobject.h:39,
from ./Include/Python.h:73,
from Python/codecs.c:11:
In function ‘PyTuple_SET_ITEM’,
inlined from ‘args_tuple’ at Python/codecs.c:247:9:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘args_tuple’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘codec_getstreamcodec’,
inlined from ‘PyCodec_StreamWriter’ at Python/codecs.c:382:12:
./Include/cpython/tupleobject.h:27:64: warning: array subscript 3 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
27 | #define PyTuple_GET_ITEM(op, index) (_PyTuple_CAST(op)->ob_item[(index)])
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
Python/codecs.c:316:16: note: in expansion of macro ‘PyTuple_GET_ITEM’
316 | codeccls = PyTuple_GET_ITEM(codecs, index);
| ^~~~~~~~~~~~~~~~
./Include/cpython/tupleobject.h: In function ‘PyCodec_StreamWriter’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘codec_getitem’,
inlined from ‘PyCodec_Decoder’ at Python/codecs.c:356:12:
./Include/cpython/tupleobject.h:27:64: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
27 | #define PyTuple_GET_ITEM(op, index) (_PyTuple_CAST(op)->ob_item[(index)])
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
Python/codecs.c:263:9: note: in expansion of macro ‘PyTuple_GET_ITEM’
263 | v = PyTuple_GET_ITEM(codecs, index);
| ^~~~~~~~~~~~~~~~
./Include/cpython/tupleobject.h: In function ‘PyCodec_Decoder’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘codec_getstreamcodec’,
inlined from ‘PyCodec_StreamReader’ at Python/codecs.c:375:12:
./Include/cpython/tupleobject.h:27:64: warning: array subscript 2 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
27 | #define PyTuple_GET_ITEM(op, index) (_PyTuple_CAST(op)->ob_item[(index)])
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
Python/codecs.c:316:16: note: in expansion of macro ‘PyTuple_GET_ITEM’
316 | codeccls = PyTuple_GET_ITEM(codecs, index);
| ^~~~~~~~~~~~~~~~
./Include/cpython/tupleobject.h: In function ‘PyCodec_StreamReader’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Python/compile.o Python/compile.c
In file included from Python/compile.c:32:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29,
from ./Include/internal/pycore_runtime.h:17,
from ./Include/internal/pycore_long.h:13,
from Python/compile.c:36:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
./Include/internal/pycore_long.h: In function ‘_PyLong_DigitCount’:
./Include/internal/pycore_long.h:238:34: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘uintptr_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
238 | return op->long_value.lv_tag >> NON_SIZE_BITS;
| ^
./Include/internal/pycore_long.h: In function ‘_PyLong_SetSignAndDigitCount’:
./Include/internal/pycore_long.h:273:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
273 | #define TAG_FROM_SIGN_AND_SIZE(sign, size) ((1 - (sign)) | ((size) << NON_SIZE_BITS))
| ^
./Include/internal/pycore_long.h:281:29: note: in expansion of macro ‘TAG_FROM_SIGN_AND_SIZE’
281 | op->long_value.lv_tag = TAG_FROM_SIGN_AND_SIZE(sign, (size_t)size);
| ^~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_long.h: In function ‘_PyLong_FlipSign’:
./Include/internal/pycore_long.h:296:27: warning: unsigned conversion from ‘int’ to ‘uintptr_t’ {aka ‘long unsigned int’} changes value from ‘-8’ to ‘18446744073709551608’ [-Wsign-conversion]
296 | op->long_value.lv_tag &= NON_SIZE_MASK;
| ^~
Python/compile.c: In function ‘_PyCompile_EnsureArrayLargeEnough’:
Python/compile.c:163:31: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
163 | arr = PyObject_Calloc(new_alloc, item_size);
| ^~~~~~~~~
Python/compile.c:171:33: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
171 | size_t oldsize = *alloc * item_size;
| ^
Python/compile.c:176:36: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
176 | size_t newsize = new_alloc * item_size;
| ^
Python/compile.c: In function ‘instr_sequence_to_cfg’:
Python/compile.c:303:48: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
303 | int *offset2lbl = PyMem_Malloc(seq->s_used * sizeof(int));
| ^
In file included from ./Include/Python.h:66,
from Python/compile.c:26:
Python/compile.c: In function ‘compiler_lookup_arg’:
./Include/longobject.h:37:28: warning: conversion from ‘long int’ to ‘int’ may change value [-Wconversion]
37 | #define PyLong_AS_LONG(op) PyLong_AsLong(op)
| ^~~~~~~~~~~~~~~~~
Python/compile.c:1842:12: note: in expansion of macro ‘PyLong_AS_LONG’
1842 | return PyLong_AS_LONG(v);
| ^~~~~~~~~~~~~~
Python/compile.c: In function ‘ensure_fail_pop’:
Python/compile.c:6668:51: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
6668 | Py_ssize_t needed = sizeof(jump_target_label) * size;
| ^
Python/compile.c:6668:25: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘long unsigned int’ may change the sign of the result [-Wsign-conversion]
6668 | Py_ssize_t needed = sizeof(jump_target_label) * size;
| ^~~~~~
Python/compile.c:6669:65: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
6669 | jump_target_label *resized = PyObject_Realloc(pc->fail_pop, needed);
| ^~~~~~
Python/compile.c: In function ‘instructions_to_instr_sequence’:
Python/compile.c:7658:36: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
7658 | bool *is_target = PyMem_Calloc(num_insts, sizeof(bool));
| ^~~~~~~~~
Python/compile.c:7668:22: warning: conversion from ‘long int’ to ‘int’ may change value [-Wconversion]
7668 | int opcode = PyLong_AsLong(PyTuple_GET_ITEM(item, 0));
| ^~~~~~~~~~~~~
Python/compile.c:7673:25: warning: conversion from ‘long int’ to ‘int’ may change value [-Wconversion]
7673 | int oparg = PyLong_AsLong(PyTuple_GET_ITEM(item, 1));
| ^~~~~~~~~~~~~
Python/compile.c:7696:22: warning: conversion from ‘long int’ to ‘int’ may change value [-Wconversion]
7696 | int opcode = PyLong_AsLong(PyTuple_GET_ITEM(item, 0));
| ^~~~~~~~~~~~~
Python/compile.c:7702:21: warning: conversion from ‘long int’ to ‘int’ may change value [-Wconversion]
7702 | oparg = PyLong_AsLong(PyTuple_GET_ITEM(item, 1));
| ^~~~~~~~~~~~~
Python/compile.c:7711:22: warning: conversion from ‘long int’ to ‘int’ may change value [-Wconversion]
7711 | loc.lineno = PyLong_AsLong(PyTuple_GET_ITEM(item, 2));
| ^~~~~~~~~~~~~
Python/compile.c:7715:26: warning: conversion from ‘long int’ to ‘int’ may change value [-Wconversion]
7715 | loc.end_lineno = PyLong_AsLong(PyTuple_GET_ITEM(item, 3));
| ^~~~~~~~~~~~~
Python/compile.c:7719:26: warning: conversion from ‘long int’ to ‘int’ may change value [-Wconversion]
7719 | loc.col_offset = PyLong_AsLong(PyTuple_GET_ITEM(item, 4));
| ^~~~~~~~~~~~~
Python/compile.c:7723:30: warning: conversion from ‘long int’ to ‘int’ may change value [-Wconversion]
7723 | loc.end_col_offset = PyLong_AsLong(PyTuple_GET_ITEM(item, 5));
| ^~~~~~~~~~~~~
Python/compile.c: In function ‘_PyCompile_CleanDoc’:
Python/compile.c:7858:31: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
7858 | char *buff = PyMem_Malloc(doc_size);
| ^~~~~~~~
In file included from ./Include/tupleobject.h:39,
from ./Include/Python.h:73:
In function ‘PyTuple_SET_ITEM’,
inlined from ‘merge_consts_recursive’ at Python/compile.c:1070:9:
./Include/cpython/tupleobject.h:35:19: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
35 | tuple->ob_item[index] = value;
| ~~~~~~~~~~~~~~^~~~~~~
./Include/cpython/tupleobject.h: In function ‘merge_consts_recursive’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In file included from ./Include/Python.h:58:
./Include/object.h:1009:26: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
1009 | # define Py_NewRef(obj) _Py_NewRef(_PyObject_CAST(obj))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Python/compile.c:1050:21: note: in expansion of macro ‘Py_NewRef’
1050 | u = Py_NewRef(PyTuple_GET_ITEM(k, 1));
| ^~~~~~~~~
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
./Include/cpython/tupleobject.h:27:64: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
27 | #define PyTuple_GET_ITEM(op, index) (_PyTuple_CAST(op)->ob_item[(index)])
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
Python/compile.c:1009:21: note: in expansion of macro ‘PyTuple_GET_ITEM’
1009 | v = PyTuple_GET_ITEM(u, 1);
| ^~~~~~~~~~~~~~~~
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In file included from ./Include/Python.h:51:
Python/compile.c: In function ‘can_optimize_super_call’:
./Include/pymacro.h:165:34: warning: array subscript 1 is above array bounds of ‘struct _expr *[1]’ [-Warray-bounds=]
165 | #define _Py_RVALUE(EXPR) ((void)0, (EXPR))
| ~~~~~~~~^~~~~~~~~
./Include/internal/pycore_asdl.h:82:28: note: in expansion of macro ‘_Py_RVALUE’
82 | #define asdl_seq_GET(S, I) _Py_RVALUE((S)->typed_elements[(I)])
| ^~~~~~~~~~
Python/compile.c:4825:27: note: in expansion of macro ‘asdl_seq_GET’
4825 | expr_ty elt = asdl_seq_GET(e->v.Call.args, i);
| ^~~~~~~~~~~~
In file included from Python/compile.c:28:
./Include/internal/pycore_ast.h:73:13: note: while referencing ‘typed_elements’
73 | expr_ty typed_elements[1];
| ^~~~~~~~~~~~~~
Python/compile.c: In function ‘consts_dict_keys_inorder’:
./Include/cpython/tupleobject.h:27:64: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
27 | #define PyTuple_GET_ITEM(op, index) (_PyTuple_CAST(op)->ob_item[(index)])
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
Python/compile.c:7487:17: note: in expansion of macro ‘PyTuple_GET_ITEM’
7487 | k = PyTuple_GET_ITEM(k, 1);
| ^~~~~~~~~~~~~~~~
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
Python/compile.c: In function ‘validate_keywords’:
./Include/internal/pycore_asdl.h:82:58: warning: array subscript 1 is above array bounds of ‘struct _keyword *[1]’ [-Warray-bounds=]
82 | #define asdl_seq_GET(S, I) _Py_RVALUE((S)->typed_elements[(I)])
./Include/pymacro.h:165:37: note: in definition of macro ‘_Py_RVALUE’
165 | #define _Py_RVALUE(EXPR) ((void)0, (EXPR))
| ^~~~
Python/compile.c:4996:45: note: in expansion of macro ‘asdl_seq_GET’
4996 | keyword_ty other = ((keyword_ty)asdl_seq_GET(keywords, j));
| ^~~~~~~~~~~~
./Include/internal/pycore_ast.h:110:16: note: while referencing ‘typed_elements’
110 | keyword_ty typed_elements[1];
| ^~~~~~~~~~~~~~
In function ‘instructions_to_instr_sequence’,
inlined from ‘instructions_to_cfg’ at Python/compile.c:7745:9:
Python/compile.c:7702:21: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
7702 | oparg = PyLong_AsLong(PyTuple_GET_ITEM(item, 1));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/cpython/tupleobject.h: In function ‘instructions_to_cfg’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘instructions_to_instr_sequence’,
inlined from ‘instructions_to_cfg’ at Python/compile.c:7745:9:
Python/compile.c:7711:22: warning: array subscript 2 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
7711 | loc.lineno = PyLong_AsLong(PyTuple_GET_ITEM(item, 2));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/cpython/tupleobject.h: In function ‘instructions_to_cfg’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘instructions_to_instr_sequence’,
inlined from ‘instructions_to_cfg’ at Python/compile.c:7745:9:
Python/compile.c:7715:26: warning: array subscript 3 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
7715 | loc.end_lineno = PyLong_AsLong(PyTuple_GET_ITEM(item, 3));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/cpython/tupleobject.h: In function ‘instructions_to_cfg’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘instructions_to_instr_sequence’,
inlined from ‘instructions_to_cfg’ at Python/compile.c:7745:9:
Python/compile.c:7719:26: warning: array subscript 4 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
7719 | loc.col_offset = PyLong_AsLong(PyTuple_GET_ITEM(item, 4));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/cpython/tupleobject.h: In function ‘instructions_to_cfg’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘instructions_to_instr_sequence’,
inlined from ‘instructions_to_cfg’ at Python/compile.c:7745:9:
Python/compile.c:7723:30: warning: array subscript 5 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
7723 | loc.end_col_offset = PyLong_AsLong(PyTuple_GET_ITEM(item, 5));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/cpython/tupleobject.h: In function ‘instructions_to_cfg’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘instructions_to_instr_sequence’,
inlined from ‘instructions_to_cfg’ at Python/compile.c:7745:9:
Python/compile.c:7673:25: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
7673 | int oparg = PyLong_AsLong(PyTuple_GET_ITEM(item, 1));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/cpython/tupleobject.h: In function ‘instructions_to_cfg’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
In function ‘compiler_compare’,
inlined from ‘compiler_visit_expr1’ at Python/compile.c:6227:16:
./Include/internal/pycore_asdl.h:82:58: warning: array subscript [0, 0] is outside array bounds of ‘struct _expr *[1]’ [-Warray-bounds=]
82 | #define asdl_seq_GET(S, I) _Py_RVALUE((S)->typed_elements[(I)])
Python/compile.c:65:10: note: in definition of macro ‘RETURN_IF_ERROR’
65 | if ((X) == -1) { \
| ^
Python/compile.c:4649:9: note: in expansion of macro ‘VISIT’
4649 | VISIT(c, expr, (expr_ty)asdl_seq_GET(e->v.Compare.comparators, n));
| ^~~~~
./Include/internal/pycore_asdl.h:82:28: note: in expansion of macro ‘_Py_RVALUE’
82 | #define asdl_seq_GET(S, I) _Py_RVALUE((S)->typed_elements[(I)])
| ^~~~~~~~~~
Python/compile.c:4649:33: note: in expansion of macro ‘asdl_seq_GET’
4649 | VISIT(c, expr, (expr_ty)asdl_seq_GET(e->v.Compare.comparators, n));
| ^~~~~~~~~~~~
./Include/internal/pycore_ast.h: In function ‘compiler_visit_expr1’:
./Include/internal/pycore_ast.h:73:13: note: while referencing ‘typed_elements’
73 | expr_ty typed_elements[1];
| ^~~~~~~~~~~~~~
In function ‘compiler_compare’,
inlined from ‘compiler_visit_expr1’ at Python/compile.c:6227:16:
./Include/internal/pycore_asdl.h:82:58: warning: array subscript [0, 0] is outside array bounds of ‘int[1]’ [-Warray-bounds=]
82 | #define asdl_seq_GET(S, I) _Py_RVALUE((S)->typed_elements[(I)])
Python/compile.c:65:10: note: in definition of macro ‘RETURN_IF_ERROR’
65 | if ((X) == -1) { \
| ^
Python/compile.c:4650:9: note: in expansion of macro ‘ADDOP_COMPARE’
4650 | ADDOP_COMPARE(c, loc, asdl_seq_GET(e->v.Compare.ops, n));
| ^~~~~~~~~~~~~
./Include/internal/pycore_asdl.h:82:28: note: in expansion of macro ‘_Py_RVALUE’
82 | #define asdl_seq_GET(S, I) _Py_RVALUE((S)->typed_elements[(I)])
| ^~~~~~~~~~
Python/compile.c:4650:31: note: in expansion of macro ‘asdl_seq_GET’
4650 | ADDOP_COMPARE(c, loc, asdl_seq_GET(e->v.Compare.ops, n));
| ^~~~~~~~~~~~
In file included from ./Include/internal/pycore_ast.h:13:
./Include/internal/pycore_asdl.h: In function ‘compiler_visit_expr1’:
./Include/internal/pycore_asdl.h:44:9: note: while referencing ‘typed_elements’
44 | int typed_elements[1];
| ^~~~~~~~~~~~~~
In function ‘validate_kwd_attrs’,
inlined from ‘compiler_pattern_class’ at Python/compile.c:6941:9,
inlined from ‘compiler_pattern’ at Python/compile.c:7368:20:
Python/compile.c:6909:33: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
6909 | identifier other = ((identifier)asdl_seq_GET(attrs, j));
| ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_asdl.h: In function ‘compiler_pattern’:
./Include/internal/pycore_asdl.h:39:15: note: while referencing ‘typed_elements’
39 | PyObject *typed_elements[1];
| ^~~~~~~~~~~~~~
In file included from ./Include/compile.h:15,
from ./Include/Python.h:105:
In function ‘validate_kwd_attrs’,
inlined from ‘compiler_pattern_class’ at Python/compile.c:6941:9,
inlined from ‘compiler_pattern’ at Python/compile.c:7368:20:
./Include/internal/pycore_asdl.h:82:58: warning: array subscript 1 is above array bounds of ‘struct _pattern *[1]’ [-Warray-bounds=]
82 | #define asdl_seq_GET(S, I) _Py_RVALUE((S)->typed_elements[(I)])
./Include/cpython/compile.h:45:27: note: in definition of macro ‘SRC_LOCATION_FROM_AST’
45 | .lineno = (n)->lineno, \
| ^
Python/compile.c:6911:32: note: in expansion of macro ‘LOC’
6911 | location loc = LOC((pattern_ty) asdl_seq_GET(patterns, j));
| ^~~
./Include/internal/pycore_asdl.h:82:28: note: in expansion of macro ‘_Py_RVALUE’
82 | #define asdl_seq_GET(S, I) _Py_RVALUE((S)->typed_elements[(I)])
| ^~~~~~~~~~
Python/compile.c:6911:49: note: in expansion of macro ‘asdl_seq_GET’
6911 | location loc = LOC((pattern_ty) asdl_seq_GET(patterns, j));
| ^~~~~~~~~~~~
./Include/internal/pycore_ast.h: In function ‘compiler_pattern’:
./Include/internal/pycore_ast.h:139:16: note: while referencing ‘typed_elements’
139 | pattern_ty typed_elements[1];
| ^~~~~~~~~~~~~~
Python/compile.c: In function ‘load_args_for_super’:
Python/compile.c:1253:21: warning: array subscript 1 is above array bounds of ‘struct _expr *[1]’ [-Warray-bounds=]
1253 | RETURN_IF_ERROR(compiler_visit_ ## TYPE((C), (V)));
| ^
Python/compile.c:65:10: note: in definition of macro ‘RETURN_IF_ERROR’
65 | if ((X) == -1) { \
| ^
Python/compile.c:4862:9: note: in expansion of macro ‘VISIT’
4862 | VISIT(c, expr, asdl_seq_GET(e->v.Call.args, 1));
| ^~~~~
./Include/internal/pycore_ast.h:73:13: note: while referencing ‘typed_elements’
73 | expr_ty typed_elements[1];
| ^~~~~~~~~~~~~~
Python/compile.c: In function ‘compiler_jump_if.isra’:
./Include/internal/pycore_asdl.h:82:58: warning: array subscript 1 is above array bounds of ‘struct _expr *[1]’ [-Warray-bounds=]
82 | #define asdl_seq_GET(S, I) _Py_RVALUE((S)->typed_elements[(I)])
Python/compile.c:65:10: note: in definition of macro ‘RETURN_IF_ERROR’
65 | if ((X) == -1) { \
| ^
Python/compile.c:2947:13: note: in expansion of macro ‘VISIT’
2947 | VISIT(c, expr, (expr_ty)asdl_seq_GET(e->v.Compare.comparators, n));
| ^~~~~
./Include/internal/pycore_asdl.h:82:28: note: in expansion of macro ‘_Py_RVALUE’
82 | #define asdl_seq_GET(S, I) _Py_RVALUE((S)->typed_elements[(I)])
| ^~~~~~~~~~
Python/compile.c:2947:37: note: in expansion of macro ‘asdl_seq_GET’
2947 | VISIT(c, expr, (expr_ty)asdl_seq_GET(e->v.Compare.comparators, n));
| ^~~~~~~~~~~~
./Include/internal/pycore_ast.h:73:13: note: while referencing ‘typed_elements’
73 | expr_ty typed_elements[1];
| ^~~~~~~~~~~~~~
./Include/internal/pycore_asdl.h:82:58: warning: array subscript 1 is above array bounds of ‘int[1]’ [-Warray-bounds=]
82 | #define asdl_seq_GET(S, I) _Py_RVALUE((S)->typed_elements[(I)])
Python/compile.c:65:10: note: in definition of macro ‘RETURN_IF_ERROR’
65 | if ((X) == -1) { \
| ^
Python/compile.c:2948:13: note: in expansion of macro ‘ADDOP_COMPARE’
2948 | ADDOP_COMPARE(c, LOC(e), asdl_seq_GET(e->v.Compare.ops, n));
| ^~~~~~~~~~~~~
./Include/internal/pycore_asdl.h:82:28: note: in expansion of macro ‘_Py_RVALUE’
82 | #define asdl_seq_GET(S, I) _Py_RVALUE((S)->typed_elements[(I)])
| ^~~~~~~~~~
Python/compile.c:2948:38: note: in expansion of macro ‘asdl_seq_GET’
2948 | ADDOP_COMPARE(c, LOC(e), asdl_seq_GET(e->v.Compare.ops, n));
| ^~~~~~~~~~~~
./Include/internal/pycore_asdl.h:44:9: note: while referencing ‘typed_elements’
44 | int typed_elements[1];
| ^~~~~~~~~~~~~~
Python/compile.c: In function ‘_PyCompile_ConstCacheMergeOne’:
./Include/cpython/tupleobject.h:27:64: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
27 | #define PyTuple_GET_ITEM(op, index) (_PyTuple_CAST(op)->ob_item[(index)])
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
Python/compile.c:7552:13: note: in expansion of macro ‘PyTuple_GET_ITEM’
7552 | t = PyTuple_GET_ITEM(t, 1);
| ^~~~~~~~~~~~~~~~
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Python/context.o Python/context.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_runtime.h:17,
from ./Include/internal/pycore_pystate.h:11,
from ./Include/internal/pycore_call.h:12,
from Python/context.c:2:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
In file included from Python/context.c:7:
./Include/internal/pycore_object.h: In function ‘_PyType_PreHeaderSize’:
./Include/internal/pycore_object.h:453:30: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
453 | return _PyType_IS_GC(tp) * sizeof(PyGC_Head) +
| ^
./Include/internal/pycore_object.h:454:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
454 | _PyType_HasFeature(tp, Py_TPFLAGS_PREHEADER) * 2 * sizeof(PyObject *);
| ^
Python/context.c: In function ‘context_run’:
Python/context.c:669:38: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
669 | ts, args[0], args + 1, nargs - 1, kwnames);
| ~~~~~~^~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Python/critical_section.o Python/critical_section.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_runtime.h:17,
from ./Include/internal/pycore_pystate.h:11,
from ./Include/internal/pycore_critical_section.h:9,
from Python/critical_section.c:4:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
Python/critical_section.c: In function ‘untag_critical_section’:
Python/critical_section.c:42:39: warning: unsigned conversion from ‘int’ to ‘uintptr_t’ {aka ‘long unsigned int’} changes value from ‘-4’ to ‘18446744073709551612’ [-Wsign-conversion]
42 | return (_PyCriticalSection *)(tag & ~_Py_CRITICAL_SECTION_MASK);
| ^
Python/critical_section.c: In function ‘_PyCriticalSection_Resume’:
Python/critical_section.c:99:30: warning: unsigned conversion from ‘int’ to ‘uintptr_t’ {aka ‘long unsigned int’} changes value from ‘-2’ to ‘18446744073709551614’ [-Wsign-conversion]
99 | tstate->critical_section &= ~_Py_CRITICAL_SECTION_INACTIVE;
| ^~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Python/crossinterp.o Python/crossinterp.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_ceval.h:13,
from Python/crossinterp.c:5:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
Python/crossinterp.c: In function ‘_tuple_shared’:
Python/crossinterp.c:775:68: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
775 | shared->data = (_PyCrossInterpreterData **) PyMem_Calloc(shared->len, sizeof(_PyCrossInterpreterData *));
| ~~~~~~^~~~~
Python/crossinterp.c: In function ‘_sharedns_init’:
Python/crossinterp.c:1441:59: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
1441 | PyMem_RawCalloc(sizeof(struct _sharednsitem), len);
| ^~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Python/dynamic_annotations.o Python/dynamic_annotations.c
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Python/errors.o Python/errors.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_runtime.h:17,
from ./Include/internal/pycore_pystate.h:11,
from ./Include/internal/pycore_call.h:12,
from Python/errors.c:5:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
Python/errors.c: In function ‘err_programtext’:
Python/errors.c:1888:45: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
1888 | res = PyUnicode_Decode(linebuf, strlen(linebuf), encoding, "replace");
| ^~~~~~~~~~~~~~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Python/flowgraph.o Python/flowgraph.c
Python/flowgraph.c: In function ‘translate_jump_labels_to_targets’:
Python/flowgraph.c:595:43: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
595 | size_t mapsize = sizeof(basicblock *) * (max_label + 1);
| ^
Python/flowgraph.c: In function ‘make_cfg_traversal_stack’:
Python/flowgraph.c:708:75: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
708 | basicblock **stack = (basicblock **)PyMem_Malloc(sizeof(basicblock *) * nblocks);
| ^
Python/flowgraph.c: In function ‘swaptimize’:
Python/flowgraph.c:1304:37: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
1304 | int *stack = PyMem_Malloc(depth * sizeof(int));
| ^
Python/flowgraph.c: In function ‘fast_scan_many_locals’:
Python/flowgraph.c:1885:47: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
1885 | Py_ssize_t *states = PyMem_Calloc(nlocals - 64, sizeof(Py_ssize_t));
| ~~~~~~~~^~~~
Python/flowgraph.c: In function ‘remove_unused_consts’:
Python/flowgraph.c:1941:38: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
1941 | index_map = PyMem_Malloc(nconsts * sizeof(Py_ssize_t));
| ^
Python/flowgraph.c:1992:46: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
1992 | reverse_index_map = PyMem_Malloc(nconsts * sizeof(Py_ssize_t));
| ^
In file included from ./Include/Python.h:53,
from Python/flowgraph.c:4:
Python/flowgraph.c: In function ‘build_cellfixedoffsets’:
./Include/pymem.h:65:37: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
65 | ( (type *) PyMem_Malloc((n) * sizeof(type)) ) )
| ^
Python/flowgraph.c:2439:18: note: in expansion of macro ‘PyMem_New’
2439 | int *fixed = PyMem_New(int, noffsets);
| ^~~~~~~~~
Python/flowgraph.c: In function ‘insert_prefix_instructions’:
Python/flowgraph.c:2518:39: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
2518 | int *sorted = PyMem_RawCalloc(nvars, sizeof(int));
| ^~~~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Python/frame.o Python/frame.c
In file included from Python/frame.c:6:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29,
from ./Include/internal/pycore_runtime.h:17,
from ./Include/internal/pycore_emscripten_trampoline.h:4,
from ./Include/internal/pycore_object.h:13,
from Python/frame.c:8:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
./Include/internal/pycore_object.h: In function ‘_PyType_PreHeaderSize’:
./Include/internal/pycore_object.h:453:30: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
453 | return _PyType_IS_GC(tp) * sizeof(PyGC_Head) +
| ^
./Include/internal/pycore_object.h:454:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
454 | _PyType_HasFeature(tp, Py_TPFLAGS_PREHEADER) * 2 * sizeof(PyObject *);
| ^
Python/frame.c: In function ‘_PyFrame_Copy’:
Python/frame.c:70:23: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
70 | memcpy(dest, src, size);
| ^~~~
Python/frame.c: In function ‘take_ownership’:
Python/frame.c:85:60: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
85 | memcpy((_PyInterpreterFrame *)f->_f_frame_data, frame, size);
| ^~~~
Python/frame.c: In function ‘PyUnstable_InterpreterFrame_GetLasti’:
Python/frame.c:160:45: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
160 | return _PyInterpreterFrame_LASTI(frame) * sizeof(_Py_CODEUNIT);
| ^
Python/frame.c: In function ‘PyUnstable_InterpreterFrame_GetLine’:
Python/frame.c:166:49: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
166 | int addr = _PyInterpreterFrame_LASTI(frame) * sizeof(_Py_CODEUNIT);
| ^
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Python/frozenmain.o Python/frozenmain.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_runtime.h:17,
from ./Include/internal/pycore_pystate.h:11,
from Python/frozenmain.c:4:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Python/future.o Python/future.c
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Python/getargs.o Python/getargs.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_runtime.h:17,
from ./Include/internal/pycore_emscripten_trampoline.h:4,
from ./Include/internal/pycore_object.h:13,
from ./Include/internal/pycore_dict.h:13,
from Python/getargs.c:6:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
./Include/internal/pycore_object.h: In function ‘_PyType_PreHeaderSize’:
./Include/internal/pycore_object.h:453:30: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
453 | return _PyType_IS_GC(tp) * sizeof(PyGC_Head) +
| ^
./Include/internal/pycore_object.h:454:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
454 | _PyType_HasFeature(tp, Py_TPFLAGS_PREHEADER) * 2 * sizeof(PyObject *);
| ^
./Include/internal/pycore_dict.h: In function ‘_PyDict_NotifyEvent’:
./Include/internal/pycore_dict.h:233:42: warning: conversion to ‘uint64_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
233 | return DICT_NEXT_VERSION(interp) | watcher_bits;
| ^
./Include/internal/pycore_dict.h: In function ‘_PyDictValues_AddToInsertionOrder’:
./Include/internal/pycore_dict.h:254:17: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
254 | *size_ptr = size;
| ^~~~
In file included from ./Include/Python.h:53,
from Python/getargs.c:4:
Python/getargs.c: In function ‘vgetargs1_impl’:
./Include/pymem.h:65:37: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
65 | ( (type *) PyMem_Malloc((n) * sizeof(type)) ) )
| ^
./Include/pymem.h:82:35: note: in expansion of macro ‘PyMem_New’
82 | #define PyMem_NEW(type, n) PyMem_New(type, (n))
| ^~~~~~~~~
Python/getargs.c:288:28: note: in expansion of macro ‘PyMem_NEW’
288 | freelist.entries = PyMem_NEW(freelistentry_t, max);
| ^~~~~~~~~
Python/getargs.c: In function ‘seterror’:
Python/getargs.c:410:42: warning: conversion to ‘long unsigned int’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
410 | PyOS_snprintf(p, sizeof(buf) - (p - buf),
| ^
Python/getargs.c:415:46: warning: conversion to ‘long unsigned int’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
415 | PyOS_snprintf(p, sizeof(buf) - (p - buf),
| ^
Python/getargs.c:422:42: warning: conversion to ‘long unsigned int’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
422 | PyOS_snprintf(p, sizeof(buf) - (p - buf), "argument");
| ^
Python/getargs.c:425:38: warning: conversion to ‘long unsigned int’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
425 | PyOS_snprintf(p, sizeof(buf) - (p - buf), " %.256s", msg);
| ^
Python/getargs.c: In function ‘convertsimple’:
Python/getargs.c:628:18: warning: conversion to ‘char’ from ‘unsigned char’ may change the sign of the result [-Wsign-conversion]
628 | *p = (unsigned char) ival;
| ^
Python/getargs.c:639:18: warning: conversion to ‘char’ from ‘unsigned char’ may change the sign of the result [-Wsign-conversion]
639 | *p = (unsigned char) ival;
| ^
Python/getargs.c:690:18: warning: conversion from ‘long int’ to ‘int’ may change value [-Wconversion]
690 | *p = ival;
| ^~~~
In file included from ./Include/unicodeobject.h:1014,
from ./Include/Python.h:65:
./Include/cpython/unicodeobject.h:327:5: warning: conversion to ‘int’ from ‘Py_UCS4’ {aka ‘unsigned int’} may change the sign of the result [-Wsign-conversion]
327 | PyUnicode_READ(_Py_STATIC_CAST(int, kind), \
| ^~~~~~~~~~~~~~
Python/getargs.c:817:14: note: in expansion of macro ‘PyUnicode_READ’
817 | *p = PyUnicode_READ(kind, data, 0);
| ^~~~~~~~~~~~~~
./Include/pymem.h:65:37: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
65 | ( (type *) PyMem_Malloc((n) * sizeof(type)) ) )
| ^
./Include/pymem.h:82:35: note: in expansion of macro ‘PyMem_New’
82 | #define PyMem_NEW(type, n) PyMem_New(type, (n))
| ^~~~~~~~~
Python/getargs.c:1045:27: note: in expansion of macro ‘PyMem_NEW’
1045 | *buffer = PyMem_NEW(char, size + 1);
| ^~~~~~~~~
Python/getargs.c:1067:38: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
1067 | memcpy(*buffer, ptr, size+1);
| ~~~~^~
./Include/pymem.h:65:37: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
65 | ( (type *) PyMem_Malloc((n) * sizeof(type)) ) )
| ^
./Include/pymem.h:82:35: note: in expansion of macro ‘PyMem_New’
82 | #define PyMem_NEW(type, n) PyMem_New(type, (n))
| ^~~~~~~~~
Python/getargs.c:1091:23: note: in expansion of macro ‘PyMem_NEW’
1091 | *buffer = PyMem_NEW(char, size + 1);
| ^~~~~~~~~
Python/getargs.c:1102:38: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
1102 | memcpy(*buffer, ptr, size+1);
| ~~~~^~
Python/getargs.c: In function ‘vgetargskeywords’:
./Include/pymem.h:65:37: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
65 | ( (type *) PyMem_Malloc((n) * sizeof(type)) ) )
| ^
./Include/pymem.h:82:35: note: in expansion of macro ‘PyMem_New’
82 | #define PyMem_NEW(type, n) PyMem_New(type, (n))
| ^~~~~~~~~
Python/getargs.c:1511:28: note: in expansion of macro ‘PyMem_NEW’
1511 | freelist.entries = PyMem_NEW(freelistentry_t, len);
| ^~~~~~~~~
Python/getargs.c: In function ‘vgetargskeywordsfast_impl’:
./Include/pymem.h:65:37: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
65 | ( (type *) PyMem_Malloc((n) * sizeof(type)) ) )
| ^
./Include/pymem.h:82:35: note: in expansion of macro ‘PyMem_New’
82 | #define PyMem_NEW(type, n) PyMem_New(type, (n))
| ^~~~~~~~~
Python/getargs.c:2015:28: note: in expansion of macro ‘PyMem_NEW’
2015 | freelist.entries = PyMem_NEW(freelistentry_t, len);
| ^~~~~~~~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Python/getcompiler.o Python/getcompiler.c
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Python/getcopyright.o Python/getcopyright.c
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -DPLATFORM='"linux"' -o Python/getplatform.o ./Python/getplatform.c
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Python/getversion.o Python/getversion.c
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Python/ceval_gil.o Python/ceval_gil.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_ceval.h:13,
from Python/ceval_gil.c:3:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
Python/ceval_gil.c: In function ‘take_gil’:
Python/ceval_gil.c:151:51: warning: conversion to ‘long long int’ from ‘long unsigned int’ may change the sign of the result [-Wsign-conversion]
151 | int r = PyCOND_TIMEDWAIT(&(cond), &(mut), (microseconds)); \
| ^~~~~~~~~~~~~~
Python/ceval_gil.c:320:9: note: in expansion of macro ‘COND_TIMED_WAIT’
320 | COND_TIMED_WAIT(gil->cond, gil->mutex, interval, timed_out);
| ^~~~~~~~~~~~~~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Python/hamt.o Python/hamt.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_runtime.h:17,
from ./Include/internal/pycore_long.h:13,
from Python/hamt.c:5:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
./Include/internal/pycore_long.h: In function ‘_PyLong_DigitCount’:
./Include/internal/pycore_long.h:238:34: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘uintptr_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
238 | return op->long_value.lv_tag >> NON_SIZE_BITS;
| ^
./Include/internal/pycore_long.h: In function ‘_PyLong_SetSignAndDigitCount’:
./Include/internal/pycore_long.h:273:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
273 | #define TAG_FROM_SIGN_AND_SIZE(sign, size) ((1 - (sign)) | ((size) << NON_SIZE_BITS))
| ^
./Include/internal/pycore_long.h:281:29: note: in expansion of macro ‘TAG_FROM_SIGN_AND_SIZE’
281 | op->long_value.lv_tag = TAG_FROM_SIGN_AND_SIZE(sign, (size_t)size);
| ^~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_long.h: In function ‘_PyLong_FlipSign’:
./Include/internal/pycore_long.h:296:27: warning: unsigned conversion from ‘int’ to ‘uintptr_t’ {aka ‘long unsigned int’} changes value from ‘-8’ to ‘18446744073709551608’ [-Wsign-conversion]
296 | op->long_value.lv_tag &= NON_SIZE_MASK;
| ^~
In file included from Python/hamt.c:6:
./Include/internal/pycore_object.h: In function ‘_PyType_PreHeaderSize’:
./Include/internal/pycore_object.h:453:30: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
453 | return _PyType_IS_GC(tp) * sizeof(PyGC_Head) +
| ^
./Include/internal/pycore_object.h:454:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
454 | _PyType_HasFeature(tp, Py_TPFLAGS_PREHEADER) * 2 * sizeof(PyObject *);
| ^
In function ‘hamt_node_bitmap_find’,
inlined from ‘hamt_node_find’ at Python/hamt.c:2053:16:
Python/hamt.c:1083:32: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
1083 | val_or_node = self->b_array[val_idx];
| ~~~~~~~~~~~~~^~~~~~~~~
In file included from Python/hamt.c:3:
./Include/internal/pycore_hamt.h: In function ‘hamt_node_find’:
./Include/internal/pycore_hamt.h:55:15: note: while referencing ‘b_array’
55 | PyObject *b_array[1];
| ^~~~~~~
Python/hamt.c: In function ‘hamt_node_bitmap_assoc’:
Python/hamt.c:904:30: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
904 | new_node->b_array[val_idx] = Py_NewRef(val);
| ~~~~~~~~~~~~~~~~~^~~~~~~~~
./Include/internal/pycore_hamt.h:55:15: note: while referencing ‘b_array’
55 | PyObject *b_array[1];
| ^~~~~~~
Python/hamt.c:699:46: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
699 | PyObject *val_or_node = self->b_array[val_idx];
| ~~~~~~~~~~~~~^~~~~~~~~
./Include/internal/pycore_hamt.h:55:15: note: while referencing ‘b_array’
55 | PyObject *b_array[1];
| ^~~~~~~
In function ‘hamt_node_collision_new’,
inlined from ‘hamt_node_new_bitmap_or_collision’ at Python/hamt.c:622:37,
inlined from ‘hamt_node_bitmap_assoc’ at Python/hamt.c:759:32:
Python/hamt.c:1250:22: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
1250 | node->c_array[i] = NULL;
| ~~~~~~~~~~~~~^~~
Python/hamt.c: In function ‘hamt_node_bitmap_assoc’:
Python/hamt.c:326:15: note: while referencing ‘c_array’
326 | PyObject *c_array[1];
| ^~~~~~~
In function ‘hamt_node_collision_new’,
inlined from ‘hamt_node_new_bitmap_or_collision’ at Python/hamt.c:622:37,
inlined from ‘hamt_node_bitmap_assoc’ at Python/hamt.c:759:32:
Python/hamt.c:1250:22: warning: array subscript 2 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
1250 | node->c_array[i] = NULL;
| ~~~~~~~~~~~~~^~~
Python/hamt.c: In function ‘hamt_node_bitmap_assoc’:
Python/hamt.c:326:15: note: while referencing ‘c_array’
326 | PyObject *c_array[1];
| ^~~~~~~
In function ‘hamt_node_collision_new’,
inlined from ‘hamt_node_new_bitmap_or_collision’ at Python/hamt.c:622:37,
inlined from ‘hamt_node_bitmap_assoc’ at Python/hamt.c:759:32:
Python/hamt.c:1250:22: warning: array subscript 3 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
1250 | node->c_array[i] = NULL;
| ~~~~~~~~~~~~~^~~
Python/hamt.c: In function ‘hamt_node_bitmap_assoc’:
Python/hamt.c:326:15: note: while referencing ‘c_array’
326 | PyObject *c_array[1];
| ^~~~~~~
In function ‘hamt_node_new_bitmap_or_collision’,
inlined from ‘hamt_node_bitmap_assoc’ at Python/hamt.c:759:32:
Python/hamt.c:628:19: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
628 | n->c_array[1] = Py_NewRef(val1);
| ~~~~~~~~~~^~~
Python/hamt.c: In function ‘hamt_node_bitmap_assoc’:
Python/hamt.c:326:15: note: while referencing ‘c_array’
326 | PyObject *c_array[1];
| ^~~~~~~
In function ‘hamt_node_new_bitmap_or_collision’,
inlined from ‘hamt_node_bitmap_assoc’ at Python/hamt.c:759:32:
Python/hamt.c:630:19: warning: array subscript 2 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
630 | n->c_array[2] = Py_NewRef(key2);
| ~~~~~~~~~~^~~
Python/hamt.c: In function ‘hamt_node_bitmap_assoc’:
Python/hamt.c:326:15: note: while referencing ‘c_array’
326 | PyObject *c_array[1];
| ^~~~~~~
In function ‘hamt_node_new_bitmap_or_collision’,
inlined from ‘hamt_node_bitmap_assoc’ at Python/hamt.c:759:32:
Python/hamt.c:631:19: warning: array subscript 3 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
631 | n->c_array[3] = Py_NewRef(val2);
| ~~~~~~~~~~^~~
Python/hamt.c: In function ‘hamt_node_bitmap_assoc’:
Python/hamt.c:326:15: note: while referencing ‘c_array’
326 | PyObject *c_array[1];
| ^~~~~~~
In file included from ./Include/object.h:1132,
from ./Include/Python.h:58,
from Python/hamt.c:1:
Python/hamt.c:775:31: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
775 | Py_SETREF(ret->b_array[val_idx], (PyObject *)sub_node);
./Include/cpython/object.h:321:43: note: in definition of macro ‘Py_SETREF’
321 | _Py_TYPEOF(dst)* _tmp_dst_ptr = &(dst); \
| ^~~
./Include/internal/pycore_hamt.h:55:15: note: while referencing ‘b_array’
55 | PyObject *b_array[1];
| ^~~~~~~
Python/hamt.c:775:31: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
775 | Py_SETREF(ret->b_array[val_idx], (PyObject *)sub_node);
./Include/cpython/object.h:321:43: note: in definition of macro ‘Py_SETREF’
321 | _Py_TYPEOF(dst)* _tmp_dst_ptr = &(dst); \
| ^~~
./Include/internal/pycore_hamt.h:55:15: note: while referencing ‘b_array’
55 | PyObject *b_array[1];
| ^~~~~~~
Python/hamt.c:747:35: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
747 | Py_SETREF(ret->b_array[val_idx], Py_NewRef(val));
./Include/cpython/object.h:321:43: note: in definition of macro ‘Py_SETREF’
321 | _Py_TYPEOF(dst)* _tmp_dst_ptr = &(dst); \
| ^~~
./Include/internal/pycore_hamt.h:55:15: note: while referencing ‘b_array’
55 | PyObject *b_array[1];
| ^~~~~~~
Python/hamt.c:747:35: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
747 | Py_SETREF(ret->b_array[val_idx], Py_NewRef(val));
./Include/cpython/object.h:321:43: note: in definition of macro ‘Py_SETREF’
321 | _Py_TYPEOF(dst)* _tmp_dst_ptr = &(dst); \
| ^~~
./Include/internal/pycore_hamt.h:55:15: note: while referencing ‘b_array’
55 | PyObject *b_array[1];
| ^~~~~~~
Python/hamt.c:723:35: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
723 | Py_SETREF(ret->b_array[val_idx], (PyObject*)sub_node);
./Include/cpython/object.h:321:43: note: in definition of macro ‘Py_SETREF’
321 | _Py_TYPEOF(dst)* _tmp_dst_ptr = &(dst); \
| ^~~
./Include/internal/pycore_hamt.h:55:15: note: while referencing ‘b_array’
55 | PyObject *b_array[1];
| ^~~~~~~
Python/hamt.c:723:35: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
723 | Py_SETREF(ret->b_array[val_idx], (PyObject*)sub_node);
./Include/cpython/object.h:321:43: note: in definition of macro ‘Py_SETREF’
321 | _Py_TYPEOF(dst)* _tmp_dst_ptr = &(dst); \
| ^~~
./Include/internal/pycore_hamt.h:55:15: note: while referencing ‘b_array’
55 | PyObject *b_array[1];
| ^~~~~~~
In function ‘hamt_node_bitmap_new’,
inlined from ‘hamt_node_bitmap_new’ at Python/hamt.c:507:1,
inlined from ‘hamt_node_collision_assoc’ at Python/hamt.c:1378:41,
inlined from ‘hamt_node_assoc’ at Python/hamt.c:2001:16:
Python/hamt.c:534:22: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
534 | node->b_array[i] = NULL;
| ~~~~~~~~~~~~~^~~
./Include/internal/pycore_hamt.h: In function ‘hamt_node_assoc’:
./Include/internal/pycore_hamt.h:55:15: note: while referencing ‘b_array’
55 | PyObject *b_array[1];
| ^~~~~~~
In function ‘hamt_node_collision_assoc’,
inlined from ‘hamt_node_assoc’ at Python/hamt.c:2001:16:
Python/hamt.c:1383:26: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
1383 | new_node->b_array[1] = Py_NewRef(self);
| ~~~~~~~~~~~~~~~~~^~~
./Include/internal/pycore_hamt.h: In function ‘hamt_node_assoc’:
./Include/internal/pycore_hamt.h:55:15: note: while referencing ‘b_array’
55 | PyObject *b_array[1];
| ^~~~~~~
In function ‘hamt_node_bitmap_new’,
inlined from ‘hamt_node_bitmap_new’ at Python/hamt.c:507:1,
inlined from ‘hamt_node_collision_without’ at Python/hamt.c:1439:21,
inlined from ‘hamt_node_without.constprop’ at Python/hamt.c:2027:16:
Python/hamt.c:534:22: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
534 | node->b_array[i] = NULL;
| ~~~~~~~~~~~~~^~~
./Include/internal/pycore_hamt.h: In function ‘hamt_node_without.constprop’:
./Include/internal/pycore_hamt.h:55:15: note: while referencing ‘b_array’
55 | PyObject *b_array[1];
| ^~~~~~~
In function ‘hamt_node_collision_without’,
inlined from ‘hamt_node_without.constprop’ at Python/hamt.c:2027:16:
./Include/object.h:1009:26: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
1009 | # define Py_NewRef(obj) _Py_NewRef(_PyObject_CAST(obj))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Python/hamt.c:1451:40: note: in expansion of macro ‘Py_NewRef’
1451 | node->b_array[1] = Py_NewRef(self->c_array[1]);
| ^~~~~~~~~
Python/hamt.c: In function ‘hamt_node_without.constprop’:
Python/hamt.c:326:15: note: while referencing ‘c_array’
326 | PyObject *c_array[1];
| ^~~~~~~
In function ‘hamt_node_collision_without’,
inlined from ‘hamt_node_without.constprop’ at Python/hamt.c:2027:16:
Python/hamt.c:1451:34: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
1451 | node->b_array[1] = Py_NewRef(self->c_array[1]);
| ~~~~~~~~~~~~~^~~
./Include/internal/pycore_hamt.h: In function ‘hamt_node_without.constprop’:
./Include/internal/pycore_hamt.h:55:15: note: while referencing ‘b_array’
55 | PyObject *b_array[1];
| ^~~~~~~
In function ‘hamt_node_collision_without’,
inlined from ‘hamt_node_without.constprop’ at Python/hamt.c:2027:16:
./Include/object.h:1009:26: warning: array subscript 2 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
1009 | # define Py_NewRef(obj) _Py_NewRef(_PyObject_CAST(obj))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Python/hamt.c:1445:40: note: in expansion of macro ‘Py_NewRef’
1445 | node->b_array[0] = Py_NewRef(self->c_array[2]);
| ^~~~~~~~~
Python/hamt.c: In function ‘hamt_node_without.constprop’:
Python/hamt.c:326:15: note: while referencing ‘c_array’
326 | PyObject *c_array[1];
| ^~~~~~~
In function ‘hamt_node_collision_without’,
inlined from ‘hamt_node_without.constprop’ at Python/hamt.c:2027:16:
./Include/object.h:1009:26: warning: array subscript 3 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
1009 | # define Py_NewRef(obj) _Py_NewRef(_PyObject_CAST(obj))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Python/hamt.c:1446:40: note: in expansion of macro ‘Py_NewRef’
1446 | node->b_array[1] = Py_NewRef(self->c_array[3]);
| ^~~~~~~~~
Python/hamt.c: In function ‘hamt_node_without.constprop’:
Python/hamt.c:326:15: note: while referencing ‘c_array’
326 | PyObject *c_array[1];
| ^~~~~~~
In function ‘hamt_node_collision_without’,
inlined from ‘hamt_node_without.constprop’ at Python/hamt.c:2027:16:
Python/hamt.c:1446:34: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
1446 | node->b_array[1] = Py_NewRef(self->c_array[3]);
| ~~~~~~~~~~~~~^~~
./Include/internal/pycore_hamt.h: In function ‘hamt_node_without.constprop’:
./Include/internal/pycore_hamt.h:55:15: note: while referencing ‘b_array’
55 | PyObject *b_array[1];
| ^~~~~~~
In function ‘hamt_node_array_without’,
inlined from ‘hamt_node_without.constprop’ at Python/hamt.c:2020:16:
Python/hamt.c:1830:55: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
1830 | PyObject *val = child->b_array[1];
| ~~~~~~~~~~~~~~^~~
./Include/internal/pycore_hamt.h: In function ‘hamt_node_without.constprop’:
./Include/internal/pycore_hamt.h:55:15: note: while referencing ‘b_array’
55 | PyObject *b_array[1];
| ^~~~~~~
In function ‘hamt_node_bitmap_without’,
inlined from ‘hamt_node_without.constprop’ at Python/hamt.c:2014:16:
Python/hamt.c:936:42: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
936 | PyObject *val_or_node = self->b_array[val_idx];
| ~~~~~~~~~~~~~^~~~~~~~~
./Include/internal/pycore_hamt.h: In function ‘hamt_node_without.constprop’:
./Include/internal/pycore_hamt.h:55:15: note: while referencing ‘b_array’
55 | PyObject *b_array[1];
| ^~~~~~~
In function ‘hamt_node_bitmap_clone_without’,
inlined from ‘hamt_node_bitmap_without’ at Python/hamt.c:1048:13,
inlined from ‘hamt_node_without.constprop’ at Python/hamt.c:2014:16:
./Include/object.h:1010:27: warning: array subscript 2 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
1010 | # define Py_XNewRef(obj) _Py_XNewRef(_PyObject_CAST(obj))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Python/hamt.c:594:31: note: in expansion of macro ‘Py_XNewRef’
594 | new->b_array[i - 2] = Py_XNewRef(o->b_array[i]);
| ^~~~~~~~~~
./Include/internal/pycore_hamt.h: In function ‘hamt_node_without.constprop’:
./Include/internal/pycore_hamt.h:55:15: note: while referencing ‘b_array’
55 | PyObject *b_array[1];
| ^~~~~~~
In function ‘hamt_node_bitmap_without’,
inlined from ‘hamt_node_without.constprop’ at Python/hamt.c:2014:16:
Python/hamt.c:989:58: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
989 | PyObject *val = sub_tree->b_array[1];
| ~~~~~~~~~~~~~~~~~^~~
./Include/internal/pycore_hamt.h: In function ‘hamt_node_without.constprop’:
./Include/internal/pycore_hamt.h:55:15: note: while referencing ‘b_array’
55 | PyObject *b_array[1];
| ^~~~~~~
In function ‘hamt_node_bitmap_without’,
inlined from ‘hamt_node_without.constprop’ at Python/hamt.c:2014:16:
Python/hamt.c:992:49: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
992 | Py_SETREF(clone->b_array[val_idx], Py_NewRef(val));
./Include/cpython/object.h:321:43: note: in definition of macro ‘Py_SETREF’
321 | _Py_TYPEOF(dst)* _tmp_dst_ptr = &(dst); \
| ^~~
./Include/internal/pycore_hamt.h: In function ‘hamt_node_without.constprop’:
./Include/internal/pycore_hamt.h:55:15: note: while referencing ‘b_array’
55 | PyObject *b_array[1];
| ^~~~~~~
In function ‘hamt_node_bitmap_without’,
inlined from ‘hamt_node_without.constprop’ at Python/hamt.c:2014:16:
Python/hamt.c:992:49: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
992 | Py_SETREF(clone->b_array[val_idx], Py_NewRef(val));
./Include/cpython/object.h:321:43: note: in definition of macro ‘Py_SETREF’
321 | _Py_TYPEOF(dst)* _tmp_dst_ptr = &(dst); \
| ^~~
./Include/internal/pycore_hamt.h: In function ‘hamt_node_without.constprop’:
./Include/internal/pycore_hamt.h:55:15: note: while referencing ‘b_array’
55 | PyObject *b_array[1];
| ^~~~~~~
In function ‘hamt_node_bitmap_without’,
inlined from ‘hamt_node_without.constprop’ at Python/hamt.c:2014:16:
Python/hamt.c:1016:41: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
1016 | Py_SETREF(clone->b_array[val_idx],
./Include/cpython/object.h:321:43: note: in definition of macro ‘Py_SETREF’
321 | _Py_TYPEOF(dst)* _tmp_dst_ptr = &(dst); \
| ^~~
./Include/internal/pycore_hamt.h: In function ‘hamt_node_without.constprop’:
./Include/internal/pycore_hamt.h:55:15: note: while referencing ‘b_array’
55 | PyObject *b_array[1];
| ^~~~~~~
In function ‘hamt_node_bitmap_without’,
inlined from ‘hamt_node_without.constprop’ at Python/hamt.c:2014:16:
Python/hamt.c:1016:41: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
1016 | Py_SETREF(clone->b_array[val_idx],
./Include/cpython/object.h:321:43: note: in definition of macro ‘Py_SETREF’
321 | _Py_TYPEOF(dst)* _tmp_dst_ptr = &(dst); \
| ^~~
./Include/internal/pycore_hamt.h: In function ‘hamt_node_without.constprop’:
./Include/internal/pycore_hamt.h:55:15: note: while referencing ‘b_array’
55 | PyObject *b_array[1];
| ^~~~~~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Python/hashtable.o Python/hashtable.c
Python/hashtable.c: In function ‘hashtable_rehash’:
Python/hashtable.c:289:56: warning: conversion from ‘size_t’ {aka ‘long unsigned int’} to ‘double’ may change value [-Wconversion]
289 | size_t new_size = round_size((size_t)(ht->nentries * HASHTABLE_REHASH_FACTOR));
| ^
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Python/import.o Python/import.c
In file included from ./Include/internal/pycore_interp.h:16,
from Python/import.c:7:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
In file included from Python/import.c:9:
./Include/internal/pycore_object.h: In function ‘_PyType_PreHeaderSize’:
./Include/internal/pycore_object.h:453:30: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
453 | return _PyType_IS_GC(tp) * sizeof(PyGC_Head) +
| ^
./Include/internal/pycore_object.h:454:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
454 | _PyType_HasFeature(tp, Py_TPFLAGS_PREHEADER) * 2 * sizeof(PyObject *);
| ^
Python/import.c: In function ‘hashtable_key_from_2_strings’:
Python/import.c:918:19: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
918 | size_t size = str1_len + 1 + str2_len + 1;
| ^~~~~~~~
Python/import.c:926:29: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
926 | strncpy(key, str1_data, str1_len);
| ^~~~~~~~
Python/import.c:928:53: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
928 | strncpy(key + str1_len + 1, str2_data, str2_len + 1);
| ~~~~~~~~~^~~
Python/import.c: In function ‘hashtable_hash_str’:
Python/import.c:936:31: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
936 | return _Py_HashBytes(key, strlen((const char *)key));
| ^~~~~~~~~~~~~~~~~~~~~~~~~
Python/import.c:936:12: warning: conversion to ‘Py_uhash_t’ {aka ‘long unsigned int’} from ‘Py_hash_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
936 | return _Py_HashBytes(key, strlen((const char *)key));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -I. -o Python/importdl.o ./Python/importdl.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_runtime.h:17,
from ./Include/internal/pycore_pystate.h:11,
from ./Include/internal/pycore_call.h:12,
from ./Python/importdl.c:5:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Python/initconfig.o Python/initconfig.c
In file included from ./Include/internal/pycore_interp.h:16,
from Python/initconfig.c:5:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
In file included from Python/initconfig.c:6:
./Include/internal/pycore_long.h: In function ‘_PyLong_DigitCount’:
./Include/internal/pycore_long.h:238:34: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘uintptr_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
238 | return op->long_value.lv_tag >> NON_SIZE_BITS;
| ^
./Include/internal/pycore_long.h: In function ‘_PyLong_SetSignAndDigitCount’:
./Include/internal/pycore_long.h:273:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
273 | #define TAG_FROM_SIGN_AND_SIZE(sign, size) ((1 - (sign)) | ((size) << NON_SIZE_BITS))
| ^
./Include/internal/pycore_long.h:281:29: note: in expansion of macro ‘TAG_FROM_SIGN_AND_SIZE’
281 | op->long_value.lv_tag = TAG_FROM_SIGN_AND_SIZE(sign, (size_t)size);
| ^~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_long.h: In function ‘_PyLong_FlipSign’:
./Include/internal/pycore_long.h:296:27: warning: unsigned conversion from ‘int’ to ‘uintptr_t’ {aka ‘long unsigned int’} changes value from ‘-8’ to ‘18446744073709551608’ [-Wsign-conversion]
296 | op->long_value.lv_tag &= NON_SIZE_MASK;
| ^~
Python/initconfig.c: In function ‘_PyWideStringList_Copy’:
Python/initconfig.c:538:33: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
538 | size_t size = list2->length * sizeof(list2->items[0]);
| ^
Python/initconfig.c: In function ‘PyWideStringList_Insert’:
Python/initconfig.c:581:29: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
581 | size_t size = (len + 1) * sizeof(list->items[0]);
| ^
Python/initconfig.c:591:31: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
591 | (len - index) * sizeof(items2[0]));
| ^
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Python/instrumentation.o Python/instrumentation.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_runtime.h:17,
from ./Include/internal/pycore_pystate.h:11,
from ./Include/internal/pycore_call.h:12,
from Python/instrumentation.c:6:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
In file included from Python/instrumentation.c:11:
./Include/internal/pycore_long.h: In function ‘_PyLong_DigitCount’:
./Include/internal/pycore_long.h:238:34: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘uintptr_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
238 | return op->long_value.lv_tag >> NON_SIZE_BITS;
| ^
./Include/internal/pycore_long.h: In function ‘_PyLong_SetSignAndDigitCount’:
./Include/internal/pycore_long.h:273:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
273 | #define TAG_FROM_SIGN_AND_SIZE(sign, size) ((1 - (sign)) | ((size) << NON_SIZE_BITS))
| ^
./Include/internal/pycore_long.h:281:29: note: in expansion of macro ‘TAG_FROM_SIGN_AND_SIZE’
281 | op->long_value.lv_tag = TAG_FROM_SIGN_AND_SIZE(sign, (size_t)size);
| ^~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_long.h: In function ‘_PyLong_FlipSign’:
./Include/internal/pycore_long.h:296:27: warning: unsigned conversion from ‘int’ to ‘uintptr_t’ {aka ‘long unsigned int’} changes value from ‘-8’ to ‘18446744073709551608’ [-Wsign-conversion]
296 | op->long_value.lv_tag &= NON_SIZE_MASK;
| ^~
In file included from Python/instrumentation.c:14:
./Include/internal/pycore_object.h: In function ‘_PyType_PreHeaderSize’:
./Include/internal/pycore_object.h:453:30: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
453 | return _PyType_IS_GC(tp) * sizeof(PyGC_Head) +
| ^
./Include/internal/pycore_object.h:454:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
454 | _PyType_HasFeature(tp, Py_TPFLAGS_PREHEADER) * 2 * sizeof(PyObject *);
| ^
Python/instrumentation.c: In function ‘compute_line_delta’:
Python/instrumentation.c:258:16: warning: conversion from ‘int’ to ‘int8_t’ {aka ‘signed char’} may change value [-Wconversion]
258 | return delta;
| ^~~~~
Python/instrumentation.c: In function ‘compute_line’:
Python/instrumentation.c:275:42: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
275 | return PyCode_Addr2Line(code, offset * sizeof(_Py_CODEUNIT));
| ^
Python/instrumentation.c: In function ‘de_instrument’:
Python/instrumentation.c:591:19: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
591 | *opcode_ptr = deinstrumented;
| ^~~~~~~~~~~~~~
Python/instrumentation.c: In function ‘de_instrument_line’:
Python/instrumentation.c:612:22: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
612 | instr->op.code = original_opcode;
| ^~~~~~~~~~~~~~~
Python/instrumentation.c: In function ‘de_instrument_per_instruction’:
Python/instrumentation.c:635:19: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
635 | *opcode_ptr = original_opcode;
| ^~~~~~~~~~~~~~~
Python/instrumentation.c: In function ‘instrument’:
Python/instrumentation.c:668:23: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
668 | *opcode_ptr = instrumented;
| ^~~~~~~~~~~~
Python/instrumentation.c: In function ‘instrument_per_instruction’:
Python/instrumentation.c:706:60: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
706 | code->_co_monitoring->per_instruction_opcodes[i] = opcode;
| ^~~~~~
Python/instrumentation.c: In function ‘remove_tools’:
Python/instrumentation.c:727:38: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
727 | monitoring->tools[offset] &= ~tools;
| ^
Python/instrumentation.c: In function ‘remove_line_tools’:
Python/instrumentation.c:759:22: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
759 | *toolsptr &= ~tools;
| ^
Python/instrumentation.c: In function ‘add_tools’:
Python/instrumentation.c:784:48: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
784 | code->_co_monitoring->tools[offset] |= tools;
| ^~~~~
Python/instrumentation.c: In function ‘add_line_tools’:
Python/instrumentation.c:800:53: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
800 | code->_co_monitoring->line_tools[offset] |= tools;
| ^~~~~
Python/instrumentation.c: In function ‘add_per_instruction_tools’:
Python/instrumentation.c:816:64: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
816 | code->_co_monitoring->per_instruction_tools[offset] |= tools;
| ^~~~~
Python/instrumentation.c: In function ‘remove_per_instruction_tools’:
Python/instrumentation.c:832:22: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
832 | *toolsptr &= ~tools;
| ^
Python/instrumentation.c: In function ‘call_one_instrument’:
Python/instrumentation.c:863:74: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
863 | PyObject *res = _PyObject_VectorcallTstate(tstate, instrument, args, nargsf, NULL);
| ^~~~~~
Python/instrumentation.c: In function ‘global_version’:
Python/instrumentation.c:894:39: warning: unsigned conversion from ‘int’ to ‘uintptr_t’ {aka ‘long unsigned int’} changes value from ‘-256’ to ‘18446744073709551360’ [-Wsign-conversion]
894 | return interp->ceval.eval_breaker & ~_PY_EVAL_EVENTS_MASK;
| ^
Python/instrumentation.c:894:39: warning: conversion from ‘uintptr_t’ {aka ‘long unsigned int’} to ‘uint32_t’ {aka ‘unsigned int’} may change value [-Wconversion]
894 | return interp->ceval.eval_breaker & ~_PY_EVAL_EVENTS_MASK;
Python/instrumentation.c: In function ‘set_global_version’:
Python/instrumentation.c:905:86: warning: conversion to ‘uintptr_t’ {aka ‘long unsigned int’} from ‘intptr_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
905 | } while (!_Py_atomic_compare_exchange_uintptr(&interp->ceval.eval_breaker, &old, new));
| ^~~
Python/instrumentation.c: In function ‘call_instrumentation_vector’:
Python/instrumentation.c:997:31: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
997 | Py_ssize_t nargsf = nargs | PY_VECTORCALL_ARGUMENTS_OFFSET;
| ^
Python/instrumentation.c:997:25: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘long unsigned int’ may change the sign of the result [-Wsign-conversion]
997 | Py_ssize_t nargsf = nargs | PY_VECTORCALL_ARGUMENTS_OFFSET;
| ^~~~~
Python/instrumentation.c:1005:73: warning: conversion from ‘int’ to ‘int8_t’ {aka ‘signed char’} may change value [-Wconversion]
1005 | int res = call_one_instrument(interp, tstate, callargs, nargsf, tool, event);
| ^~~~
Python/instrumentation.c: In function ‘_Py_call_instrumentation_line’:
Python/instrumentation.c:1205:18: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
1205 | tools &= ~(1 << tool);
| ^
Python/instrumentation.c:1207:39: warning: signed conversion from ‘long unsigned int’ to ‘Py_ssize_t’ {aka ‘long int’} changes value from ‘9223372036854775810’ to ‘-9223372036854775806’ [-Wsign-conversion]
1207 | 2 | PY_VECTORCALL_ARGUMENTS_OFFSET,
Python/instrumentation.c:1208:39: warning: conversion from ‘int’ to ‘int8_t’ {aka ‘signed char’} may change value [-Wconversion]
1208 | tool, PY_MONITORING_EVENT_LINE);
| ^~~~
Python/instrumentation.c: In function ‘_Py_call_instrumentation_instruction’:
Python/instrumentation.c:1261:18: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
1261 | tools &= ~(1 << tool);
| ^
Python/instrumentation.c:1263:39: warning: signed conversion from ‘long unsigned int’ to ‘Py_ssize_t’ {aka ‘long int’} changes value from ‘9223372036854775810’ to ‘-9223372036854775806’ [-Wsign-conversion]
1263 | 2 | PY_VECTORCALL_ARGUMENTS_OFFSET,
Python/instrumentation.c:1264:39: warning: conversion from ‘int’ to ‘int8_t’ {aka ‘signed char’} may change value [-Wconversion]
1264 | tool, PY_MONITORING_EVENT_INSTRUCTION);
| ^~~~
Python/instrumentation.c: In function ‘initialize_lines’:
Python/instrumentation.c:1387:52: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
1387 | line_data[i].original_opcode = opcode;
| ^~~~~~
Python/instrumentation.c:1439:49: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
1439 | line_data[target].original_opcode = _Py_GetBaseOpcode(code, target);
| ^~~~~~~~~~~~~~~~~
Python/instrumentation.c:1463:50: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
1463 | line_data[handler].original_opcode = original_opcode;
| ^~~~~~~~~~~~~~~
Python/instrumentation.c: In function ‘update_instrumentation_data’:
Python/instrumentation.c:1512:52: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
1512 | code->_co_monitoring->tools = PyMem_Malloc(code_len);
| ^~~~~~~~
Python/instrumentation.c:1521:65: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
1521 | code->_co_monitoring->lines = PyMem_Malloc(code_len * sizeof(_PyCoLineInstrumentationData));
| ^
Python/instrumentation.c:1529:61: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
1529 | code->_co_monitoring->line_tools = PyMem_Malloc(code_len);
| ^~~~~~~~
Python/instrumentation.c:1539:83: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
1539 | code->_co_monitoring->per_instruction_opcodes = PyMem_Malloc(code_len * sizeof(_PyCoLineInstrumentationData));
| ^
Python/instrumentation.c:1550:72: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
1550 | code->_co_monitoring->per_instruction_tools = PyMem_Malloc(code_len);
| ^~~~~~~~
Python/instrumentation.c: In function ‘set_events’:
Python/instrumentation.c:1746:19: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
1746 | *tools &= ~(1 << tool_id);
| ^
Python/instrumentation.c:1747:19: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
1747 | *tools |= (active << tool_id);
| ^
Python/instrumentation.c: In function ‘set_local_events’:
Python/instrumentation.c:1758:19: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
1758 | *tools &= ~(1 << tool_id);
| ^
Python/instrumentation.c:1759:19: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
1759 | *tools |= (val << tool_id);
| ^
Python/instrumentation.c: In function ‘monitoring_register_callback_impl’:
Python/instrumentation.c:1964:24: warning: conversion to ‘uint32_t’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
1964 | if (_Py_popcount32(event) != 1) {
| ^~~~~
Python/instrumentation.c:1968:35: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
1968 | int event_id = _Py_bit_length(event)-1;
| ^~~~~
Python/instrumentation.c: In function ‘monitoring_get_events_impl’:
Python/instrumentation.c:2003:12: warning: conversion to ‘int’ from ‘_PyMonitoringEventSet’ {aka ‘unsigned int’} may change the sign of the result [-Wsign-conversion]
2003 | return event_set;
| ^~~~~~~~~
Python/instrumentation.c: In function ‘monitoring_set_events_impl’:
Python/instrumentation.c:2031:42: warning: conversion to ‘_PyMonitoringEventSet’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
2031 | if (_PyMonitoring_SetEvents(tool_id, event_set)) {
| ^~~~~~~~~
Python/instrumentation.c: In function ‘monitoring_get_local_events_impl’:
Python/instrumentation.c:2070:12: warning: conversion to ‘int’ from ‘_PyMonitoringEventSet’ {aka ‘unsigned int’} may change the sign of the result [-Wsign-conversion]
2070 | return event_set;
| ^~~~~~~~~
Python/instrumentation.c: In function ‘monitoring_set_local_events_impl’:
Python/instrumentation.c:2108:68: warning: conversion to ‘_PyMonitoringEventSet’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
2108 | if (_PyMonitoring_SetLocalEvents((PyCodeObject*)code, tool_id, event_set)) {
| ^~~~~~~~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Python/intrinsics.o Python/intrinsics.c
In file included from ./Include/internal/pycore_frame.h:13,
from Python/intrinsics.c:5:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29,
from ./Include/internal/pycore_runtime.h:17,
from Python/intrinsics.c:11:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
Python/intrinsics.c: In function ‘stopiteration_error’:
Python/intrinsics.c:169:55: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
169 | PyObject *message = _PyUnicode_FromASCII(msg, strlen(msg));
| ^~~~~~~~~~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Python/legacy_tracing.o Python/legacy_tracing.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_ceval.h:13,
from Python/legacy_tracing.c:6:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
In file included from Python/legacy_tracing.c:7:
./Include/internal/pycore_object.h: In function ‘_PyType_PreHeaderSize’:
./Include/internal/pycore_object.h:453:30: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
453 | return _PyType_IS_GC(tp) * sizeof(PyGC_Head) +
| ^
./Include/internal/pycore_object.h:454:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
454 | _PyType_HasFeature(tp, Py_TPFLAGS_PREHEADER) * 2 * sizeof(PyObject *);
| ^
Python/legacy_tracing.c: In function ‘_PyEval_SetOpcodeTrace’:
Python/legacy_tracing.c:144:16: warning: unsigned conversion from ‘int’ to ‘_PyMonitoringEventSet’ {aka ‘unsigned int’} changes value from ‘-65’ to ‘4294967231’ [-Wsign-conversion]
144 | events &= (~(1 << PY_MONITORING_EVENT_INSTRUCTION));
| ^~
Python/legacy_tracing.c: In function ‘sys_trace_jump_func’:
Python/legacy_tracing.c:344:37: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
344 | int from = PyLong_AsInt(args[1])/sizeof(_Py_CODEUNIT);
| ^
Python/legacy_tracing.c:346:35: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
346 | int to = PyLong_AsInt(args[2])/sizeof(_Py_CODEUNIT);
| ^
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Python/lock.o Python/lock.c
Python/lock.c: In function ‘_PyRawMutex_LockSlow’:
Python/lock.c:212:52: warning: unsigned conversion from ‘int’ to ‘uintptr_t’ {aka ‘long unsigned int’} changes value from ‘-2’ to ‘18446744073709551614’ [-Wsign-conversion]
212 | waiter.next = (struct raw_mutex_entry *)(v & ~1);
| ^
Python/lock.c: In function ‘_PyRawMutex_UnlockSlow’:
Python/lock.c:235:71: warning: unsigned conversion from ‘int’ to ‘uintptr_t’ {aka ‘long unsigned int’} changes value from ‘-2’ to ‘18446744073709551614’ [-Wsign-conversion]
235 | struct raw_mutex_entry *waiter = (struct raw_mutex_entry *)(v & ~1);
| ^
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Python/marshal.o Python/marshal.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_runtime.h:17,
from ./Include/internal/pycore_pystate.h:11,
from ./Include/internal/pycore_call.h:12,
from Python/marshal.c:10:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
In file included from Python/marshal.c:13:
./Include/internal/pycore_long.h: In function ‘_PyLong_DigitCount’:
./Include/internal/pycore_long.h:238:34: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘uintptr_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
238 | return op->long_value.lv_tag >> NON_SIZE_BITS;
| ^
./Include/internal/pycore_long.h: In function ‘_PyLong_SetSignAndDigitCount’:
./Include/internal/pycore_long.h:273:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
273 | #define TAG_FROM_SIGN_AND_SIZE(sign, size) ((1 - (sign)) | ((size) << NON_SIZE_BITS))
| ^
./Include/internal/pycore_long.h:281:29: note: in expansion of macro ‘TAG_FROM_SIGN_AND_SIZE’
281 | op->long_value.lv_tag = TAG_FROM_SIGN_AND_SIZE(sign, (size_t)size);
| ^~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_long.h: In function ‘_PyLong_FlipSign’:
./Include/internal/pycore_long.h:296:27: warning: unsigned conversion from ‘int’ to ‘uintptr_t’ {aka ‘long unsigned int’} changes value from ‘-8’ to ‘18446744073709551608’ [-Wsign-conversion]
296 | op->long_value.lv_tag &= NON_SIZE_MASK;
| ^~
Python/marshal.c: In function ‘w_flush’:
Python/marshal.c:103:30: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘long int’ may change the sign of the result [-Wsign-conversion]
103 | fwrite(p->buf, 1, p->ptr - p->buf, p->fp);
| ~~~~~~~^~~~~~~~
Python/marshal.c: In function ‘w_string’:
Python/marshal.c:151:31: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
151 | memcpy(p->ptr, s, n);
| ^
Python/marshal.c:156:26: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
156 | fwrite(s, 1, n, p->fp);
| ^
Python/marshal.c:161:31: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
161 | memcpy(p->ptr, s, n);
| ^
Python/marshal.c: In function ‘w_short_pstring’:
Python/marshal.c:96:27: warning: conversion to ‘char’ from ‘unsigned char’ may change the sign of the result [-Wsign-conversion]
96 | *(p)->ptr++ = (c); \
| ^
Python/marshal.c:208:5: note: in expansion of macro ‘w_byte’
208 | w_byte(Py_SAFE_DOWNCAST(n, Py_ssize_t, unsigned char), p);
| ^~~~~~
Python/marshal.c: In function ‘w_float_str’:
Python/marshal.c:290:26: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
290 | w_short_pstring(buf, strlen(buf), p);
| ^~~~~~~~~~~
Python/marshal.c: In function ‘w_complex_object’:
Python/marshal.c:96:27: warning: conversion to ‘char’ from ‘unsigned char’ may change the sign of the result [-Wsign-conversion]
96 | *(p)->ptr++ = (c); \
| ^
Python/marshal.c:471:13: note: in expansion of macro ‘w_byte’
471 | w_byte((unsigned char)n, p);
| ^~~~~~
Python/marshal.c: In function ‘r_string’:
Python/marshal.c:697:31: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
697 | p->buf = PyMem_Malloc(n);
| ^
Python/marshal.c:705:43: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
705 | char *tmp = PyMem_Realloc(p->buf, n);
| ^
Python/marshal.c:716:33: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
716 | read = fread(p->buf, 1, n, p->fp);
| ^
Python/marshal.c:716:16: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
716 | read = fread(p->buf, 1, n, p->fp);
| ^~~~~
Python/marshal.c: In function ‘r_short’:
Python/marshal.c:788:14: warning: conversion from ‘int’ to ‘short int’ may change value [-Wconversion]
788 | x |= -(x & 0x8000);
| ^
Python/marshal.c: In function ‘r_PyLong’:
Python/marshal.c:847:27: warning: conversion from ‘long int’ to ‘int’ may change value [-Wconversion]
847 | shorts_in_top_digit = 1 + (Py_ABS(n) - 1) % PyLong_MARSHAL_RATIO;
| ^
Python/marshal.c: In function ‘r_float_str’:
Python/marshal.c:918:22: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
918 | memcpy(buf, ptr, n);
| ^
Python/marshal.c: In function ‘r_object’:
Python/marshal.c:1123:47: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘long int’ may change the sign of the result [-Wsign-conversion]
1123 | memcpy(PyBytes_AS_STRING(v), ptr, n);
| ^
Python/marshal.c: In function ‘PyMarshal_ReadLastObjectFromFile’:
Python/marshal.c:1590:43: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘off_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
1590 | char* pBuf = (char *)PyMem_Malloc(filesize);
| ^~~~~~~~
Python/marshal.c:1593:64: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
1593 | PyObject* v = PyMarshal_ReadObjectFromString(pBuf, n);
| ^
In file included from ./Include/tupleobject.h:39,
from ./Include/Python.h:73,
from Python/marshal.c:9:
In function ‘w_complex_object’,
inlined from ‘w_object’ at Python/marshal.c:374:9:
./Include/cpython/tupleobject.h:27:64: warning: array subscript 1 is above array bounds of ‘PyObject *[1]’ {aka ‘struct _object *[1]’} [-Warray-bounds=]
27 | #define PyTuple_GET_ITEM(op, index) (_PyTuple_CAST(op)->ob_item[(index)])
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
Python/marshal.c:546:21: note: in expansion of macro ‘PyTuple_GET_ITEM’
546 | value = PyTuple_GET_ITEM(pair, 1);
| ^~~~~~~~~~~~~~~~
./Include/cpython/tupleobject.h: In function ‘w_object’:
./Include/cpython/tupleobject.h:10:15: note: while referencing ‘ob_item’
10 | PyObject *ob_item[1];
| ^~~~~~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Python/modsupport.o Python/modsupport.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_runtime.h:17,
from ./Include/internal/pycore_emscripten_trampoline.h:4,
from ./Include/internal/pycore_object.h:13,
from Python/modsupport.c:6:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
./Include/internal/pycore_object.h: In function ‘_PyType_PreHeaderSize’:
./Include/internal/pycore_object.h:453:30: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
453 | return _PyType_IS_GC(tp) * sizeof(PyGC_Head) +
| ^
./Include/internal/pycore_object.h:454:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
454 | _PyType_HasFeature(tp, Py_TPFLAGS_PREHEADER) * 2 * sizeof(PyObject *);
| ^
Python/modsupport.c: In function ‘do_mkvalue’:
Python/modsupport.c:323:48: warning: conversion to ‘long long unsigned int’ from ‘long long int’ may change the sign of the result [-Wsign-conversion]
323 | return PyLong_FromUnsignedLongLong((long long)va_arg(*p_va, unsigned long long));
| ^
Python/modsupport.c:341:25: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
341 | n = wcslen(u);
| ^~~~~~
Python/modsupport.c: In function ‘_Py_VaBuildStack’:
Python/modsupport.c:556:32: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
556 | stack = PyMem_Malloc(n * sizeof(stack[0]));
| ^
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Python/mysnprintf.o Python/mysnprintf.c
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Python/mystrtoul.o Python/mystrtoul.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_runtime.h:17,
from ./Include/internal/pycore_long.h:13,
from Python/mystrtoul.c:9:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
./Include/internal/pycore_long.h: In function ‘_PyLong_DigitCount’:
./Include/internal/pycore_long.h:238:34: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘uintptr_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
238 | return op->long_value.lv_tag >> NON_SIZE_BITS;
| ^
./Include/internal/pycore_long.h: In function ‘_PyLong_SetSignAndDigitCount’:
./Include/internal/pycore_long.h:273:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
273 | #define TAG_FROM_SIGN_AND_SIZE(sign, size) ((1 - (sign)) | ((size) << NON_SIZE_BITS))
| ^
./Include/internal/pycore_long.h:281:29: note: in expansion of macro ‘TAG_FROM_SIGN_AND_SIZE’
281 | op->long_value.lv_tag = TAG_FROM_SIGN_AND_SIZE(sign, (size_t)size);
| ^~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_long.h: In function ‘_PyLong_FlipSign’:
./Include/internal/pycore_long.h:296:27: warning: unsigned conversion from ‘int’ to ‘uintptr_t’ {aka ‘long unsigned int’} changes value from ‘-8’ to ‘18446744073709551608’ [-Wsign-conversion]
296 | op->long_value.lv_tag &= NON_SIZE_MASK;
| ^~
Python/mystrtoul.c: In function ‘PyOS_strtoul’:
Python/mystrtoul.c:220:29: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
220 | result = result * base + c;
| ^
Python/mystrtoul.c:220:36: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
220 | result = result * base + c;
| ^
Python/mystrtoul.c:232:20: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
232 | result *= base;
| ^~
Python/mystrtoul.c:235:34: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
235 | temp_result = result + c;
| ^
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Python/optimizer.o Python/optimizer.c
In file included from ./Include/internal/pycore_interp.h:16,
from Python/optimizer.c:3:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
Python/optimizer.c: In function ‘get_index_for_executor’:
Python/optimizer.c:50:26: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
50 | new_capacity * sizeof(_PyExecutorObject *));
| ^
Python/optimizer.c: In function ‘insert_executor’:
Python/optimizer.c:83:25: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
83 | instr->op.arg = index;
| ^~~~~
Python/optimizer.c: In function ‘uop_item’:
Python/optimizer.c:354:50: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
354 | PyObject *oname = _PyUnicode_FromASCII(name, strlen(name));
| ^~~~~~~~~~~~
Python/optimizer.c: In function ‘translate_bytecode_to_trace’:
Python/optimizer.c:459:33: warning: conversion from ‘uint32_t’ {aka ‘unsigned int’} to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
459 | trace[trace_length].oparg = (OPARG); \
| ^
Python/optimizer.c:509:9: note: in expansion of macro ‘ADD_TO_TRACE’
509 | ADD_TO_TRACE(_SET_IP, target, 0, target);
| ^~~~~~~~~~~~
Python/optimizer.c:544:47: warning: conversion to ‘uint32_t’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
544 | int bitcount = _Py_popcount32(counter);
| ^~~~~~~
Python/optimizer.c:458:34: warning: conversion from ‘uint32_t’ {aka ‘unsigned int’} to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | trace[trace_length].opcode = (OPCODE); \
| ^
Python/optimizer.c:551:17: note: in expansion of macro ‘ADD_TO_TRACE’
551 | ADD_TO_TRACE(uopcode, max_length, 0, target);
| ^~~~~~~~~~~~
Python/optimizer.c:459:33: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
459 | trace[trace_length].oparg = (OPARG); \
| ^
Python/optimizer.c:551:17: note: in expansion of macro ‘ADD_TO_TRACE’
551 | ADD_TO_TRACE(uopcode, max_length, 0, target);
| ^~~~~~~~~~~~
Python/optimizer.c:603:40: warning: conversion to ‘uint32_t’ {aka ‘unsigned int’} from ‘int16_t’ {aka ‘short int’} may change the sign of the result [-Wsign-conversion]
603 | uint32_t uop = expansion->uops[i].uop;
| ^~~~~~~~~
Python/optimizer.c:621:51: warning: conversion from ‘long unsigned int’ to ‘uint32_t’ {aka ‘unsigned int’} may change value [-Wconversion]
621 | target += 1 + INLINE_CACHE_ENTRIES_FOR_ITER + oparg + 1;
| ^
Python/optimizer.c:643:41: warning: conversion to ‘uint32_t’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
643 | oparg = offset;
| ^~~~~~
Python/optimizer.c:458:34: warning: conversion from ‘uint32_t’ {aka ‘unsigned int’} to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | trace[trace_length].opcode = (OPCODE); \
| ^
Python/optimizer.c:655:25: note: in expansion of macro ‘ADD_TO_TRACE’
655 | ADD_TO_TRACE(uop, oparg, operand, target);
| ^~~~~~~~~~~~
Python/optimizer.c:459:33: warning: conversion from ‘uint32_t’ {aka ‘unsigned int’} to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
459 | trace[trace_length].oparg = (OPARG); \
| ^
Python/optimizer.c:655:25: note: in expansion of macro ‘ADD_TO_TRACE’
655 | ADD_TO_TRACE(uop, oparg, operand, target);
| ^~~~~~~~~~~~
Python/optimizer.c: In function ‘compute_used’:
Python/optimizer.c:763:48: warning: conversion to ‘uint32_t’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
763 | #define UNSET_BIT(array, bit) (array[(bit)>>5] &= ~(1<<((bit)&31)))
| ^~
Python/optimizer.c:794:13: note: in expansion of macro ‘UNSET_BIT’
794 | UNSET_BIT(used, i);
| ^~~~~~~~~
Python/optimizer.c: In function ‘make_executor_from_uops’:
Python/optimizer.c:831:27: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
831 | buffer[i].oparg = dest;
| ^~~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Python/optimizer_analysis.o Python/optimizer_analysis.c
In file included from ./Include/internal/pycore_interp.h:16,
from Python/optimizer_analysis.c:3:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
In file included from Python/optimizer_analysis.c:8:
./Include/internal/pycore_long.h: In function ‘_PyLong_DigitCount’:
./Include/internal/pycore_long.h:238:34: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘uintptr_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
238 | return op->long_value.lv_tag >> NON_SIZE_BITS;
| ^
./Include/internal/pycore_long.h: In function ‘_PyLong_SetSignAndDigitCount’:
./Include/internal/pycore_long.h:273:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
273 | #define TAG_FROM_SIGN_AND_SIZE(sign, size) ((1 - (sign)) | ((size) << NON_SIZE_BITS))
| ^
./Include/internal/pycore_long.h:281:29: note: in expansion of macro ‘TAG_FROM_SIGN_AND_SIZE’
281 | op->long_value.lv_tag = TAG_FROM_SIGN_AND_SIZE(sign, (size_t)size);
| ^~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_long.h: In function ‘_PyLong_FlipSign’:
./Include/internal/pycore_long.h:296:27: warning: unsigned conversion from ‘int’ to ‘uintptr_t’ {aka ‘long unsigned int’} changes value from ‘-8’ to ‘18446744073709551608’ [-Wsign-conversion]
296 | op->long_value.lv_tag &= NON_SIZE_MASK;
| ^~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Python/parking_lot.o Python/parking_lot.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_runtime.h:17,
from ./Include/internal/pycore_pystate.h:11,
from Python/parking_lot.c:7:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Python/pathconfig.o Python/pathconfig.c
Python/pathconfig.c: In function ‘_PyPathConfig_ComputeSysPath0’:
Python/pathconfig.c:404:13: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘size_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion]
404 | n = wcslen(path0);
| ^~~~~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Python/preconfig.o Python/preconfig.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_runtime.h:17,
from ./Include/internal/pycore_pylifecycle.h:11,
from Python/preconfig.c:5:
./Include/internal/pycore_code.h: In function ‘write_varint’:
./Include/internal/pycore_code.h:397:12: warning: conversion from ‘unsigned int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
397 | *ptr = val;
| ^~~
./Include/internal/pycore_code.h: In function ‘write_signed_varint’:
./Include/internal/pycore_code.h:410:30: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
410 | return write_varint(ptr, val);
| ^~~
./Include/internal/pycore_code.h: In function ‘write_location_entry_start’:
./Include/internal/pycore_code.h:417:12: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
417 | *ptr = 128 | (code << 3) | (length - 1);
| ^~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_bits’:
./Include/internal/pycore_code.h:458:45: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
458 | return (value << ADAPTIVE_BACKOFF_BITS) |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
459 | (backoff & ((1<<ADAPTIVE_BACKOFF_BITS)-1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/internal/pycore_code.h: In function ‘adaptive_counter_backoff’:
./Include/internal/pycore_code.h:481:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
481 | unsigned int value = (1 << backoff) - 1;
| ^
./Include/internal/pycore_code.h:482:34: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~
./Include/internal/pycore_code.h:482:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
482 | return adaptive_counter_bits(value, backoff);
| ^~~~~~~
In file included from ./Include/internal/pycore_interp.h:29:
./Include/internal/pycore_list.h: In function ‘_Py_memory_repeat’:
./Include/internal/pycore_list.h:69:37: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
69 | memcpy(dest + copied, dest, bytes_to_copy);
| ^~~~~~~~~~~~~
Python/preconfig.c: In function ‘_PyArgv_AsWstrList’:
Python/preconfig.c:83:40: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
83 | size_t size = sizeof(wchar_t*) * args->argc;
| ^
Python/preconfig.c: In function ‘_Py_get_xoption’:
Python/preconfig.c:589:19: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘long int’ may change the sign of the result [-Wsign-conversion]
589 | len = (sep - option);
| ^
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Python/pyarena.o Python/pyarena.c
Python/pyarena.c: In function ‘block_new’:
Python/pyarena.c:87:20: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘long int’ may change the sign of the result [-Wsign-conversion]
87 | b->ab_offset = (char *)_Py_ALIGN_UP(b->ab_mem, ALIGNMENT) -
| ^
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Python/pyctype.o Python/pyctype.c
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Python/pyfpe.o Python/pyfpe.c
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -fcf-protection=full -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Python/pyhash.o Python/pyhash.c
Python/pyhash.c: In function ‘_Py_HashDouble’:
Python/pyhash.c:118:11: warning: conversion from ‘Py_uhash_t’ {aka ‘long unsigned int’} to ‘double’ may change value [-Wconversion]
118 | m -= y;
| ^~
Python/pyhash.c:128:11: warning: conversion to ‘Py_uhash_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
128 | x = x * sign;
| ^
Python/pyhash.c: In function ‘siphash13’:
Python/pyhash.c:391:16: warning: conversion to ‘long unsigned int’ from ‘Py_ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]
391 | src_sz -= sizeof(mi);
| ^~
Python/pyhash.c:391:19: warning: conversion to ‘Py_ssize_t’ {aka ‘long int’} from ‘long unsigned int’ may change the sign of the result [-Wsign-conversion]
391 | src_sz -= sizeof(mi);
| ^~~~~~
gcc -c -fno-strict-overflow -DNDEBUG -g -O3 -Wall -O2 -Wall -Wformat=2 -Wconversion -Wtrampolines -Wimplicit-fallthrough -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,no
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment