Commit acdf688
committed
fix(build): make GCC-specific warnings conditional and fix narrowing conversion
- Make -Wduplicated-cond, -Wduplicated-branches, and -Wlogical-op
GCC-only since Clang doesn't support these flags
- Fix narrowing conversion error in test_discrete_field.cpp by
explicitly casting int to size_t in initializer list1 parent 240d16c commit acdf688
File tree
2 files changed
+7
-1
lines changed- cmake
- tests/unit/core
2 files changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
17 | 23 | | |
18 | 24 | | |
19 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| |||
0 commit comments