mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Fix strncpy warning with gcc 8 (#5840)
The length in strncpy is one char too short and as a result it leads to a build warning with gcc 8. Comment out the strncpy since the interpreter aborts immediately after anyway.
This commit is contained in:
parent
b9650a04a8
commit
efd2bac156
1 changed files with 2 additions and 2 deletions
|
@ -1060,8 +1060,8 @@ format_float_short(double d, char format_code,
|
||||||
else {
|
else {
|
||||||
/* shouldn't get here: Gay's code should always return
|
/* shouldn't get here: Gay's code should always return
|
||||||
something starting with a digit, an 'I', or 'N' */
|
something starting with a digit, an 'I', or 'N' */
|
||||||
strncpy(p, "ERR", 3);
|
/* strncpy(p, "ERR", 3);
|
||||||
/* p += 3; */
|
p += 3; */
|
||||||
Py_UNREACHABLE();
|
Py_UNREACHABLE();
|
||||||
}
|
}
|
||||||
goto exit;
|
goto exit;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue