[MDEV-24577] Fix warnings generated during compilation of plugin/auth_pam/testing/pam_mariadb_mtr.c on FreeBSD Created: 2021-01-12 Updated: 2021-01-19 Resolved: 2021-01-19 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Compiling |
| Affects Version/s: | 10.4.15, 10.4.17 |
| Fix Version/s: | 10.4.18, 10.5.9, 10.6.0 |
| Type: | Bug | Priority: | Major |
| Reporter: | Marcin Gryszkalis | Assignee: | Dmitry Shulga |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
FreeBSD clang version 10.0.0 (git@github.com:llvm/llvm-project.git llvmorg-10.0.0-0-gd32170dbd5b) |
||
| Issue Links: |
|
||||||||
| Description |
|
This is the same bug as The fix was ifdef apple so maybe we need something like ifdef llvm/clang? copy of original report:
In case MariaDB serer is build with -DCMAKE_BUILD_TYPE=Debug it results in build error. |
| Comments |
| Comment by Dmitry Shulga [ 2021-01-14 ] | |||||
|
I've just committed a patch to fix this issue on BSD. After the patch be approved I will push it. | |||||
| Comment by Marcin Gryszkalis [ 2021-01-14 ] | |||||
|
I applied the patch and stopped on another one: include/my_alarm.h
| |||||
| Comment by Marcin Gryszkalis [ 2021-01-14 ] | |||||
|
moved forward with
| |||||
| Comment by Marcin Gryszkalis [ 2021-01-14 ] | |||||
|
Next one is
fixed with
And after that compilation succeeded. | |||||
| Comment by Oleksandr Byelkin [ 2021-01-19 ] | |||||
|
OK to push. | |||||
| Comment by Marcin Gryszkalis [ 2021-01-19 ] | |||||
|
@Oleksandr what about 2 other problems (in my_alarm.h and sql_prepare.cc)? Do you want me to fill another issue(s) (as you closed this one)? |