Bug report
Bug description:
Building 3.14.5 with gcc 15.2 and --enable-slower-safety produces this warning:
default: ./Modules/_ctypes/_ctypes_test.c: In function ‘my_strchr’:
default: ./Modules/_ctypes/_ctypes_test.c:451:12: warning: return discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
default: 451 | return strchr(s, c);
default: | ^~~~~~
Build environment: Ubuntu 26.04 LTS, gcc 15.2.0, configure with:
./configure --enable-optimizations --with-lto --enable-bolt --enable-safety --enable-slower-safety --with-system-expat CXX=/usr/bin/g++ CFLAGS="-flto=auto" LDFLAGS="-flto=auto"
CPython versions tested on:
3.14
Operating systems tested on:
Linux
Bug report
Bug description:
Building 3.14.5 with gcc 15.2 and --enable-slower-safety produces this warning:
Build environment: Ubuntu 26.04 LTS, gcc 15.2.0, configure with:
CPython versions tested on:
3.14
Operating systems tested on:
Linux