changeset 1263:5bab9562eaa3

Add fallthrough attribute
author Chris Cannam
date Thu, 07 Dec 2017 13:31:32 +0000
parents a9c2e791ab8d
children 5f68f5c74904
files layer/SliceLayer.cpp
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/layer/SliceLayer.cpp	Tue Jul 18 15:11:49 2017 +0100
+++ b/layer/SliceLayer.cpp	Thu Dec 07 13:31:32 2017 +0000
@@ -295,7 +295,9 @@
         
     case AbsoluteScale:
         value = fabs(value);
-        // and fall through
+#ifdef __GNUC__
+        __attribute__ ((fallthrough));
+#endif 
         
     case LinearScale:
     default: