|
Ran
|
Jobs
1
|
Files
514
|
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)
68918 of 122197 branches covered (56.4%)
101592 of 116240 relevant lines covered (87.4%)
1961737.55 hits per line
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 1 |
90.73 |
0.07% | src/box/box.cc |
| 1 |
95.96 |
-0.18% | src/box/relay.cc |
| 1 |
92.2 |
0.0% | src/box/vinyl.c |
| 1 |
95.74 |
0.0% | src/box/vy_range.c |
| 1 |
90.9 |
-0.1% | src/box/vy_scheduler.c |
| 1 |
87.5 |
-1.59% | src/box/xlog.h |
| 1 |
96.55 |
-1.15% | src/histogram.c |
| 1 |
92.93 |
-0.12% | src/lib/core/fiber.c |
| 1 |
90.38 |
-1.92% | src/lib/core/trigger.cc |
| 1 |
22.68 |
0.04% | src/lib/uri/uri_parser.c |
| 1 |
96.55 |
-0.86% | src/lib/vclock/vclock.c |
| 2 |
87.3 |
0.0% | src/box/vy_run.c |
| 2 |
84.4 |
-0.13% | src/box/xlog.c |
| 2 |
94.25 |
-0.32% | src/box/xrow_update_field.c |
| 2 |
97.56 |
0.51% | src/lib/msgpuck/msgpuck.h |
| 3 |
90.7 |
-0.22% | src/box/applier.cc |
| 4 |
93.31 |
-1.27% | src/lib/swim/swim_io.c |
| 4 |
81.82 |
-12.12% | src/lua/minifio.c |
| 8 |
60.42 |
-5.56% | src/lib/core/fio.c |
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 14582671744.1 | 514 |
87.4 |
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
|---|