Skip to content

Commit

Permalink
[Source/core/Portability] : add implicit fallthrough (#1820)
Browse files Browse the repository at this point in the history
* [Source/core/Portability] : add implicit fallthrough

* [Core] Add windows fallthrough code

---------

Co-authored-by: Fransen <[email protected]>
Co-authored-by: MFransen69 <[email protected]>
  • Loading branch information
3 people authored Jan 6, 2025
1 parent 0badcbe commit fb031fb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Source/core/Portability.h
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,8 @@
#define DISABLE_WARNING_MAYBE_UNINITIALIZED
#define DISABLE_WARNING_FREE_NONHEAP_OBJECT
#define DISABLE_WARNING_ARRAY_BOUNDS
// Code Analysis - Unannotated fallthrough between switch labels
#define DISABLE_WARNING_IMPLICIT_FALLTHROUGH PUSH_WARNING_ARG_(26819)

#else
#define DISABLE_WARNING_CONDITIONAL_EXPRESSION_IS_CONSTANT
Expand Down Expand Up @@ -227,6 +229,8 @@
#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")
#define DISABLE_WARNING_IMPLICIT_FALLTHROUGH PUSH_WARNING_ARG_("-Wimplicit-fallthrough")

#endif

#if !(defined(__clang__)) && (__GNUC__ >= 4)
Expand Down

0 comments on commit fb031fb

Please sign in to comment.