[Libreoffice-commits] core.git: soltools/cpp

Stephan Bergmann sbergman at redhat.com
Thu Jan 26 14:09:14 UTC 2017


 soltools/cpp/_eval.c |    2 +-
 soltools/cpp/_lex.c  |    2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 23bf4227231eb081f906382ca05e7c2bea5612ec
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Thu Jan 26 14:55:14 2017 +0100

    -Werror=implicit-fallthrough= (GCC 7)
    
    Change-Id: I2e9ab956fc1e59d09b7409333f18230e34b6a9b7

diff --git a/soltools/cpp/_eval.c b/soltools/cpp/_eval.c
index 84d8a79b..e1eceb2 100644
--- a/soltools/cpp/_eval.c
+++ b/soltools/cpp/_eval.c
@@ -319,7 +319,7 @@ long
                     }
                     continue;
                 }
-                /* flow through */
+                /* fall through */
 
                 /* plain binary */
             case EQ:
diff --git a/soltools/cpp/_lex.c b/soltools/cpp/_lex.c
index a8f874d..de18fd5 100644
--- a/soltools/cpp/_lex.c
+++ b/soltools/cpp/_lex.c
@@ -492,6 +492,7 @@ continue2:
 
                 case S_STNL:
                     error(ERROR, "Unterminated string or char const");
+                    /* fall through */
                 case S_NL:
                     tp->t = ip;
                     tp->type = NL;
@@ -516,6 +517,7 @@ continue2:
                 case S_EOFCOM:
                     error(WARNING, "EOF inside comment");
                     --ip;
+                    /* fall through */
                 case S_COMMENT:
                     if (!Cflag)
                     {


More information about the Libreoffice-commits mailing list