[vte] parser: Ignore -Wimplicit-fallthrough



commit 346ada29f448ade931ee1febeda5218433c76970
Author: Debarshi Ray <debarshir gnome org>
Date:   Tue Apr 3 12:07:59 2018 +0200

    parser: Ignore -Wimplicit-fallthrough
    
    https://bugzilla.gnome.org/show_bug.cgi?id=789778

 src/parser-glue.hh |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/parser-glue.hh b/src/parser-glue.hh
index ba3bbd9..24b227c 100644
--- a/src/parser-glue.hh
+++ b/src/parser-glue.hh
@@ -622,9 +622,12 @@ private:
                 case VTE_SEQ_ESCAPE:
                 case VTE_SEQ_CSI:
                 case VTE_SEQ_DCS:
+                        #pragma GCC diagnostic push
+                        #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
                         for (unsigned char n = 0; n < m_n_intermediates; n++)
                                 s.push_back(m_intermediates[n]);
                         /* [[fallthrough]]; */
+                        #pragma GCC diagnostic pop
                 case VTE_SEQ_SCI:
                         if (m_seq.terminator != 0)
                                 s.push_back(m_seq.terminator);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]