comparison layer/SliceLayer.cpp @ 1263:5bab9562eaa3

Add fallthrough attribute
author Chris Cannam
date Thu, 07 Dec 2017 13:31:32 +0000
parents 5a10e9d924d4
children 5f68f5c74904
comparison
equal deleted inserted replaced
1262:a9c2e791ab8d 1263:5bab9562eaa3
293 y = yorigin - y; 293 y = yorigin - y;
294 break; 294 break;
295 295
296 case AbsoluteScale: 296 case AbsoluteScale:
297 value = fabs(value); 297 value = fabs(value);
298 // and fall through 298 #ifdef __GNUC__
299 __attribute__ ((fallthrough));
300 #endif
299 301
300 case LinearScale: 302 case LinearScale:
301 default: 303 default:
302 norm = (value - m_threshold); 304 norm = (value - m_threshold);
303 if (norm < 0) norm = 0; 305 if (norm < 0) norm = 0;