@@ -62,7 +62,10 @@ BOOST_AUTO_TEST_CASE(SyncPatternMonitor_test2)
6262 for (int pos = 0 ; pos < 4 ; ++pos) {
6363 mon.reset ();
6464 std::vector<short > test1_vec (4 + 4 + 2 + pos, mon.getPatternB ());
65+ #pragma GCC diagnostic push // TODO: Remove once this is fixed in GCC
66+ #pragma GCC diagnostic ignored "-Wstringop-overflow" // TODO: Remove once this is fixed in GCC
6567 test1_vec.insert (test1_vec.begin () + 4 + 2 + pos, SYNC_PATTERN .begin (), SYNC_PATTERN .end ());
68+ #pragma GCC diagnostic pop // TODO: Remove once this is fixed in GCC
6669 result res{pos, 4 + 32 + pos};
6770
6871 for (int i = 0 ; i < test1_vec.size () - 4 ; i += 4 ) {
@@ -95,7 +98,10 @@ BOOST_AUTO_TEST_CASE(SyncPatternMonitor_test3)
9598 // loop over 4 possible positions
9699 for (int pos = 0 ; pos < 4 ; ++pos) {
97100 std::vector<short > test1_vec (4 + 4 + 2 + pos, mon.getPatternB ());
101+ #pragma GCC diagnostic push // TODO: Remove once this is fixed in GCC
102+ #pragma GCC diagnostic ignored "-Wstringop-overflow" // TODO: Remove once this is fixed in GCC
98103 test1_vec.insert (test1_vec.begin () + 4 + 2 + pos, SYNC_PATTERN .begin (), SYNC_PATTERN .end ());
104+ #pragma GCC diagnostic pop // TODO: Remove once this is fixed in GCC
99105 result res{pos, 4 + 32 + pos};
100106
101107 // loop over all positions of sync pattern in vector and replace with different pattern
0 commit comments