[issue32375] Compilation warnings with gcc

2017-12-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: I don't think so. It's good to have fortify enabled, especially in debug mode :-) If the warnings are harmless and there isn't an easy way to suppress them, then I'm ok to close this issue. -- ___ Python tracker

[issue32375] Compilation warnings with gcc

2017-12-20 Thread STINNER Victor
STINNER Victor added the comment: Ah, I missed the warning because I forge -O0 when I build Python. https://wiki.ubuntu.com/ToolChain/CompilerFlags Ubuntu adds -D_FORTIFY_SOURCE=2 flag by default. The warnings can be seen with "-D_FORTIFY_SOURCE=2 -Og", but not with "-D_FORTIFY_SOURCE=2 -O3"

[issue32375] Compilation warnings with gcc

2017-12-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The same on Ubuntu 17.10 with gcc 7.2.0. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue32375] Compilation warnings with gcc

2017-12-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is the command line: gcc -pthread -c -Wno-unused-result -Wsign-compare -g -Og -Wall -Wstrict-prototypes-std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Werror=implicit-function-declaration -I. -I./Include

[issue32375] Compilation warnings with gcc

2017-12-19 Thread STINNER Victor
STINNER Victor added the comment: In function ‘wcsncpy’, inlined from ‘calculate_zip_path’ at ./Modules/getpath.c:797:5: /usr/include/x86_64-linux-gnu/bits/wchar2.h:200:9: warning: call to ‘__wcsncpy_chk_warn’ declared with attribute warning: wcsncpy called with length bigger than size of

[issue32375] Compilation warnings with gcc

2017-12-19 Thread Antoine Pitrou
New submission from Antoine Pitrou : On Ubuntu 16.04: $ gcc --version gcc (Ubuntu 5.4.0-6ubuntu1~16.04.5) 5.4.0 20160609 Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS