File mysql-5.6-disable-strncpy-warning.patch of Package mysql-community-server

--- mysql-5.6.49/storage/innobase/srv/srv0start.cc.orig	2020-07-13 15:50:23.513855587 +0200
+++ mysql-5.6.49/storage/innobase/srv/srv0start.cc	2020-07-13 16:10:39.680190033 +0200
@@ -3276,7 +3276,10 @@
 	} else {
 		ut_ad(strncmp(suffix, ".ibd", suffix_len) == 0);
 
+#pragma GCC diagnostic push
+#pragma GCC diagnostic warning "-Wstringop-overflow"
 		strncpy(filename, path, len - suffix_len);
+#pragma GCC diagnostic pop
 		suffix = filename + (len - suffix_len);
 		strcpy(suffix, ".cfg");
 	}
openSUSE Build Service is sponsored by