[gjs] arg: Shut up a compiler warning



commit 8eeaa627e6a1b9da15755994c87b348bc889a972
Author: Florian Müllner <fmuellner gnome org>
Date:   Fri Mar 10 15:36:11 2017 +0100

    arg: Shut up a compiler warning
    
    Recent GCC warns about implicit fallthrough in switch statements.
    C++-17 defines a standard [[fallthrough]] attribute to mark an
    intentional fallthrough, but to not make too many assumptions
    about the compiler, just move the existing comment where GCC
    recognizes it.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=779838

 gi/arg.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gi/arg.cpp b/gi/arg.cpp
index 4f34f38..b4941a0 100644
--- a/gi/arg.cpp
+++ b/gi/arg.cpp
@@ -2289,8 +2289,8 @@ gjs_array_from_carray_internal (JSContext             *context,
               break;
           }
 
-          /* fallthrough */
         }
+        /* fallthrough */
         case GI_TYPE_TAG_GTYPE:
         case GI_TYPE_TAG_UTF8:
         case GI_TYPE_TAG_FILENAME:


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