Skip to content

Commit

Permalink
[Warnings] Add a DISABLE_WARNING_ARRAY_BOUNDS macro (#1779)
Browse files Browse the repository at this point in the history
* Add a DISABLE_WARNING_ARRAY_BOUNDS macro

It looks like GCC 13 can now sometimes give array bounds warnings for no reason

* Use the develop branch for now to test the changes in ThunderNanoServices

* Use the master branch again while perpering for the PR
  • Loading branch information
VeithMetro authored Oct 16, 2024
1 parent 8d03846 commit 62ffa21
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/core/Portability.h
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@
#define DISABLE_WARNING_INCONSISTENT_MISSING_OVERRIDE
#define DISABLE_WARNING_MAYBE_UNINITIALIZED
#define DISABLE_WARNING_FREE_NONHEAP_OBJECT
#define DISABLE_WARNING_ARRAY_BOUNDS

#else
#define DISABLE_WARNING_CONDITIONAL_EXPRESSION_IS_CONSTANT
Expand Down Expand Up @@ -223,6 +224,7 @@
#define DISABLE_WARNING_INCONSISTENT_MISSING_OVERRIDE PUSH_WARNING_ARG_("-Winconsistent-missing-override")
#define DISABLE_WARNING_MAYBE_UNINITIALIZED PUSH_WARNING_ARG_("-Wmaybe-uninitialized")
#define DISABLE_WARNING_FREE_NONHEAP_OBJECT PUSH_WARNING_ARG_("-Wfree-nonheap-object")
#define DISABLE_WARNING_ARRAY_BOUNDS PUSH_WARNING_ARG_("-Warray-bounds")
#endif
#endif

Expand Down

0 comments on commit 62ffa21

Please sign in to comment.