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.
diff --git a/Python/pystrtod.c b/Python/pystrtod.c
index 9bf9363..601f7c6 100644
--- a/Python/pystrtod.c
+++ b/Python/pystrtod.c
@@ -1060,8 +1060,8 @@
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;