We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7de555d commit 8e04ef6Copy full SHA for 8e04ef6
test-str.c
@@ -931,7 +931,7 @@ test_strncpy(void)
931
932
memset(s0, 0, sizeof(s0));
933
memcpy(s0, s, sizeof(s));
934
-#if __GNUC_PREREQ(8, 1)
+#if GNUC_PREREQ(8, 1)
935
# pragma GCC diagnostic push
936
# pragma GCC diagnostic ignored "-Wstringop-truncation"
937
#endif
@@ -1033,7 +1033,7 @@ test_strncpy(void)
1033
assert_equal_return(s1[16], '\000', -1, "got %#02hhx expected %02hhx\n");
1034
assert_equal_return(s1[17], '0', -1, "got %#02hhx expected %02hhx\n");
1035
assert_equal_return(s1[18], '1', -1, "got %#02hhx expected %02hhx\n");
1036
1037
# pragma GCC diagnostic pop
1038
1039
return 0;
0 commit comments