From 7fec3beab7f6a4f3c571eac009e4cb1f03720684 Mon Sep 17 00:00:00 2001 From: magiblot Date: Tue, 24 Sep 2024 13:26:44 +0200 Subject: [PATCH] Disable implicit fallthrough warning in public headers Implicit fallthroughs are used in scrncell.h. --- include/tvision/tv.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/tvision/tv.h b/include/tvision/tv.h index da2cc9a3..2995c9e2 100644 --- a/include/tvision/tv.h +++ b/include/tvision/tv.h @@ -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__ )