Dec-01-2019, 01:57 PM
When installing Python 3.7 on Raspbian, during the make phase I get several messages related to string functions, similar to this one:
/home/pi/Python-3.7.0/Modules/readline.c: In function ‘call_readline’:
/home/pi/Python-3.7.0/Modules/readline.c:1303:9: warning: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
strncpy(p, q, n);
^~~~~~~~~~~~~~~~
/home/pi/Python-3.7.0/Modules/readline.c:1279:9: note: length computed here
n = strlen(p);
^~~~~~~~~
What does this mean? Is this a known issue? Can I safely ignore this?
Pierre
/home/pi/Python-3.7.0/Modules/readline.c: In function ‘call_readline’:
/home/pi/Python-3.7.0/Modules/readline.c:1303:9: warning: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
strncpy(p, q, n);
^~~~~~~~~~~~~~~~
/home/pi/Python-3.7.0/Modules/readline.c:1279:9: note: length computed here
n = strlen(p);
^~~~~~~~~
What does this mean? Is this a known issue? Can I safely ignore this?
Pierre