Skip to content

Commit

Permalink
Disable implicit fallthrough warning in public headers
Browse files Browse the repository at this point in the history
Implicit fallthroughs are used in scrncell.h.
  • Loading branch information
magiblot committed Sep 24, 2024
1 parent 8fb188f commit 7fec3be
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion include/tvision/tv.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,14 @@
#endif
#if defined( _MSC_VER )
#pragma warning(push)
#pragma warning(disable: 4250)
#pragma warning(disable: 4250) // Inheritance via dominance
#pragma warning(disable: 4616) // Invalid #pragma warning number
#pragma warning(disable: 26819) // Implicit fallthrough
#endif
#if defined( __GNUC__ )
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Woverloaded-virtual"
#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
#endif

#if !defined( __FLAT__ )
Expand Down

0 comments on commit 7fec3be

Please sign in to comment.