[MDEV-21940] 10.4 Build warning (debug only): error: 'error_num' may be used uninitialized in this function Created: 2020-03-14 Updated: 2020-03-14 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Compiling |
| Affects Version/s: | 10.4 |
| Fix Version/s: | 10.4 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Roel Van de Paar | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Description |
|
Build 10.4 in debug, and compilation will fail with:
Optimized build works fine. Setting -DMYSQL_MAINTAINER_MODE=0 fixes the issue on debug. |
| Comments |
| Comment by Roel Van de Paar [ 2020-03-14 ] |
|
Adding -DMYSQL_MAINTAINER_MODE=0 to QA build scripts creates a risk that future (other) warnings may be unseen. |
| Comment by Sergei Golubchik [ 2020-03-14 ] |
|
what's the cmake command line line that you've used? |
| Comment by Sergei Golubchik [ 2020-03-14 ] |
|
As discussed on slack, this was caused by -DCMAKE_BUILD_TYPE=Debug -DBUILD_CONFIG=mysql_release combo |