Skip to content

Commit 76794ee

Browse files
committed
"-Warray-bounds" ignore false positives
1 parent 9a0231b commit 76794ee

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

include/jsoncons/reflect/decode_traits.hpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ namespace reflect {
4141

4242
// decode_traits
4343

44+
// Ignore false positives
45+
#if defined(__GNUC__)
46+
# pragma GCC diagnostic push
47+
# pragma GCC diagnostic ignored "-Warray-bounds"
48+
#endif
49+
4450
template <typename T,typename Enable = void>
4551
struct decode_traits
4652
{
@@ -64,6 +70,10 @@ struct decode_traits
6470
}
6571
};
6672

73+
#if defined(__GNUC__)
74+
# pragma GCC diagnostic pop
75+
#endif
76+
6777
// specializations
6878

6979
// primitive

0 commit comments

Comments
 (0)