|
Ran
|
Jobs
1
|
Files
518
|
Run time
1min
|
Badge
README BADGES
|
push
github
Fix FP compilation warning in func_adapter test When I use LTO and warning-as-an-error locally with GCC 13 I got the following build failure: ```c In function ‘test_func_adapter_func_is_pinned’, inlined from ‘test_main’ at <...>/test/unit/func_adapter_func.c:142:2, inlined from ‘main’ at <...>/test/unit/func_adapter_func.c:163:11: <...>/test/unit/func_adapter_func.c:124:17: error: ‘returned_pin_type’ may be used uninitialized [-Werror=maybe-uninitialized] 124 | is(returned_pin_type, pin_type, | ^ <...>/test/unit/func_adapter_func.c: In function ‘main’: <...>/test/unit/func_adapter_func.c:121:39: note: ‘returned_pin_type’ was declared here 121 | enum func_holder_type returned_pin_type; | ^ lto1: all warnings being treated as errors ``` The build command: ```sh cmake -S . -B . -DCMAKE_BUILD_TYPE=RelWithDebInfo -DENABLE_WERROR=ON -DTEST_BUILD=ON -DENABLE_LTO=ON ``` The fix is suggested by Andrey Saranchin (@drewdzzz). This problem surprisingly happens in CI on increasing cmake minimum version to 3.5 (see #11382). Not sure about a reason, but since it hits me on `master` without any patches, that's definitely worth to fix. While I'm here, initialize the `enum func_holder_type` variables in the `func_cache` unit test. NO_DOC=compilation fix NO_TEST=compilation fix NO_CHANGELOG=compilation fix (cherry picked from commit ca4bdb052)
70315 of 124027 branches covered (56.69%)
103449 of 118265 relevant lines covered (87.47%)
2883194.06 hits per line
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 1 |
90.7 |
-0.07% | src/box/applier.cc |
| 1 |
95.36 |
-0.31% | src/box/raft.c |
| 1 |
93.55 |
-0.14% | src/box/txn_limbo.c |
| 1 |
95.74 |
0.0% | src/box/vy_range.c |
| 1 |
87.57 |
-0.06% | src/box/vy_run.c |
| 1 |
60.42 |
-0.69% | src/lib/core/fio.c |
| 1 |
85.15 |
-0.99% | src/lib/small/small/slab_arena.c |
| 1 |
91.68 |
-0.11% | src/lib/swim/swim.c |
| 1 |
74.75 |
-0.25% | src/main.cc |
| 2 |
90.78 |
-0.06% | src/box/box.cc |
| 2 |
93.96 |
-0.31% | src/box/memtx_space.c |
| 2 |
92.54 |
0.04% | src/box/vinyl.c |
| 2 |
93.04 |
0.01% | src/lib/core/fiber.c |
| 2 |
85.13 |
-0.32% | src/lib/core/say.c |
| 3 |
97.37 |
-0.21% | src/box/memtx_tx.c |
| 3 |
84.26 |
-0.24% | src/box/xlog.c |
| 4 |
93.31 |
-1.27% | src/lib/swim/swim_io.c |
| 4 |
81.82 |
-12.12% | src/lua/minifio.c |
| 9 |
88.14 |
-7.63% | src/box/vy_regulator.c |
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 14582665005.1 | 518 |
87.47 |
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
|---|