Merge pull request #859 from Farwaykorse/patch-2

Suppress GCC 8 "-Warray-bounds" warning
This commit is contained in:
Jordan Maples [MSFT] 2020-04-08 23:20:44 -07:00 committed by GitHub
commit bc7ea7aac7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1043,7 +1043,7 @@ TEST(multi_span_test, subspan)
EXPECT_TRUE(av.subspan(4).length() == 1); EXPECT_TRUE(av.subspan(4).length() == 1);
EXPECT_TRUE(av.subspan(5).length() == 0); EXPECT_TRUE(av.subspan(5).length() == 0);
// Disabled test instead of fixing since multi_span is deprecated. (PR#835) // Disabled test instead of fixing since multi_span is deprecated. (PR#835)
#if !(defined(__GNUC__) && __GNUC__ == 8 && __GNUC_MINOR__ == 3) #if !(defined(__GNUC__) && __GNUC__ == 8)
EXPECT_DEATH(av.subspan(6).length(), deathstring); EXPECT_DEATH(av.subspan(6).length(), deathstring);
#endif #endif
auto av2 = av.subspan(1); auto av2 = av.subspan(1);