New submission from Antoine Pitrou <[email protected]>:
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 FOR A PARTICULAR PURPOSE.
$ make
[...]
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 destination buffer
return __wcsncpy_chk_warn (__dest, __src, __n,
^
In function ‘wcsncpy’,
inlined from ‘calculate_zip_path’ at ./Modules/getpath.c:806:9:
/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 destination buffer
return __wcsncpy_chk_warn (__dest, __src, __n,
^
In function ‘wcsncpy’,
inlined from ‘calculate_argv0_path’ at ./Modules/getpath.c:683: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 destination buffer
return __wcsncpy_chk_warn (__dest, __src, __n,
^
In function ‘wcsncpy’,
inlined from ‘calculate_argv0_path’ at ./Modules/getpath.c:736:13:
/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 destination buffer
return __wcsncpy_chk_warn (__dest, __src, __n,
^
----------
components: Interpreter Core
messages: 308653
nosy: pitrou, serhiy.storchaka, vstinner
priority: low
severity: normal
status: open
title: Compilation warnings with gcc
type: behavior
versions: Python 3.7
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue32375>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com