File tree 3 files changed +5
-6
lines changed
3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ function(TARGET_ADD_WARNINGS TARGET)
22
22
-Wno-unused-macros
23
23
-Wno-switch-enum
24
24
-Wno-unknown-pragmas
25
+ -Wimplicit-fallthrough
25
26
)
26
27
27
28
if (TARGET_COMPILER_CLANG)
@@ -32,7 +33,6 @@ function(TARGET_ADD_WARNINGS TARGET)
32
33
#-Wshadow-uncaptured-local
33
34
#-Wshorten-64-to-32
34
35
-Wconditional-uninitialized
35
- -Wimplicit-fallthrough
36
36
-Wmissing-prototypes
37
37
)
38
38
@@ -49,7 +49,6 @@ function(TARGET_ADD_WARNINGS TARGET)
49
49
#-Wuseless-cast
50
50
-Wlogical-op
51
51
-Wsuggest-override
52
-
53
52
)
54
53
endif ()
55
54
endif ()
Original file line number Diff line number Diff line change @@ -183,13 +183,13 @@ void DialogEditGPR::setupEntriesAndLabels() {
183
183
case 8 :
184
184
hideColumn (GPR8H_COL);
185
185
hideColumn (GPR16_COL);
186
- /* fallthrough */
186
+ [[ fallthrough]];
187
187
case 16 :
188
188
hideColumn (GPR32_COL);
189
- /* fallthrough */
189
+ [[ fallthrough]];
190
190
case 32 :
191
191
hideColumn (GPR64_COL);
192
- /* fallthrough */
192
+ [[ fallthrough]];
193
193
case 64 :
194
194
break ;
195
195
default :
Original file line number Diff line number Diff line change @@ -438,7 +438,7 @@ EDB_EXPORT QString format_float(Float value) {
438
438
439
439
std::memcpy (ptr, &exponent, sizeof (exponent));
440
440
}
441
- // fall through
441
+ [[fallthrough]];
442
442
case FloatValueClass::Normal:
443
443
case FloatValueClass::Denormal: {
444
444
#ifdef HAVE_DOUBLE_CONVERSION
You can’t perform that action at this time.
0 commit comments