Commit efd2bac1 authored by Siddhesh Poyarekar's avatar Siddhesh Poyarekar Committed by Xiang Zhang

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.
parent b9650a04
......@@ -1060,8 +1060,8 @@ format_float_short(double d, char format_code,
else {
/* shouldn't get here: Gay's code should always return
something starting with a digit, an 'I', or 'N' */
strncpy(p, "ERR", 3);
/* p += 3; */
/* strncpy(p, "ERR", 3);
p += 3; */
Py_UNREACHABLE();
}
goto exit;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment