Skip to content

Commit b5963e8

Browse files
authored
Update int2.h to ingnore "-Warray-bounds"
1 parent 06bc1ae commit b5963e8

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • include/onnxruntime/core/framework

include/onnxruntime/core/framework/int2.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,10 @@ struct Int2x4Base {
138138

139139
// Process complete groups of 4 elements
140140
for (; dst_i < full_quads; dst_i++) {
141+
#pragma GCC diagnostic push
142+
#pragma GCC diagnostic ignored "-Warray-bounds"
141143
dst[dst_i] = Int2x4Base<Signed>(src[src_i], src[src_i + 1], src[src_i + 2], src[src_i + 3]);
144+
#pragma GCC diagnostic pop
142145
src_i += 4;
143146
}
144147

0 commit comments

Comments
 (0)