Skip to content

Commit fae3eab

Browse files
authored
Update int2.h
1 parent 6fff972 commit fae3eab

File tree

1 file changed

+3
-0
lines changed
  • include/onnxruntime/core/framework

1 file changed

+3
-0
lines changed

include/onnxruntime/core/framework/int2.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,13 @@ struct Int2x4Base {
137137
const size_t full_quads = src.size() / 4;
138138

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

145148
// Handle remaining elements (1-3)
146149
if (src_i < src.size()) {

0 commit comments

Comments
 (0)