Skip to content

Commit ec5544f

Browse files
committed
Ignore GCC warning
1 parent ac9a7ce commit ec5544f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/fizzy/stack.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,10 @@ class OperandStack
106106
}
107107

108108
m_bottom = m_locals + num_args + num_local_variables;
109+
#pragma GCC diagnostic push
110+
#pragma GCC diagnostic ignored "-Warray-bounds"
109111
m_top = m_bottom - 1;
112+
#pragma GCC diagnostic pop
110113

111114
std::copy(std::begin(args), std::end(args), m_locals);
112115
std::fill_n(m_locals + num_args, num_local_variables, 0);

0 commit comments

Comments
 (0)