| Bug #89288 | Incorrect C declaration in udf_registration_types.h | ||
|---|---|---|---|
| Submitted: | 17 Jan 2018 15:53 | Modified: | 12 Mar 2018 18:27 |
| Reporter: | Alexey Kopytov | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | MySQL Server: C API (client library) | Severity: | S3 (Non-critical) |
| Version: | 8.0.3 | OS: | Any |
| Assigned to: | CPU Architecture: | Any | |
[18 Jan 2018 5:04]
MySQL Verification Team
Hello Alexey, Thank you for the report and feedback! Thanks, Umesh
[12 Mar 2018 18:27]
Paul DuBois
Posted by developer: Fixed in 8.0.11. Code cleanup. No changelog entry needed.

Description: I'm getting this warning when building sysbench against 8.0.3 with -Wstrict-prototypes: --- /usr/local/mysql/include/mysql/udf_registration_types.h:79:28: warning: this function declaration is not a prototype [-Wstrict-prototypes] typedef void(*Udf_func_any)(); ^ void --- Since this is not the first error of that kind in C API headers (see bug #78177), and errors like this can easily go unnoticed, because all client applications in the MySQL source tree have been converted to C++, perhaps it would be a good idea to add a test C application to the source tree with the only purpose of verifying that C API is actually compatible with C in general and -Wstrict-prototypes in particular? How to repeat: Try building a C program using C API in MySQL 8.0.3 with -Wstrict-prototypes in CFLAGS.