mirror of
https://github.com/opencv/opencv.git
synced 2026-11-22 17:33:41 -06:00
Enable -Wimplicit-fallthrough
This commit is contained in:
@@ -1064,7 +1064,7 @@ static float32_t f32_roundToInt( float32_t a, uint_fast8_t roundingMode, bool ex
|
||||
switch ( roundingMode ) {
|
||||
case round_near_even:
|
||||
if ( ! fracF32UI( uiA ) ) break;
|
||||
/* fallthrough */
|
||||
[[fallthrough]];
|
||||
case round_near_maxMag:
|
||||
if ( exp == 0x7E ) uiZ |= packToF32UI( 0, 0x7F, 0 );
|
||||
break;
|
||||
@@ -1772,7 +1772,7 @@ static float64_t f64_roundToInt( float64_t a, uint_fast8_t roundingMode, bool ex
|
||||
switch ( roundingMode ) {
|
||||
case round_near_even:
|
||||
if ( ! fracF64UI( uiA ) ) break;
|
||||
/* fallthrough */
|
||||
[[fallthrough]];
|
||||
case round_near_maxMag:
|
||||
if ( exp == 0x3FE ) uiZ |= packToF64UI( 0, 0x3FF, 0 );
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user