# HG changeset patch # User Chris Cannam # Date 1512653492 0 # Node ID 5bab9562eaa35e8ed2a2a5cf2195b2da28f52854 # Parent a9c2e791ab8d5a3f2dd532c68a129dee748db91b Add fallthrough attribute diff -r a9c2e791ab8d -r 5bab9562eaa3 layer/SliceLayer.cpp --- 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: