Bug #88041 | Avoid C++ comments in mysql C headers | ||
---|---|---|---|
Submitted: | 10 Oct 2017 7:31 | Modified: | 12 Oct 2017 9:57 |
Reporter: | Sebastien FLAESCH | Email Updates: | |
Status: | Won't fix | 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 | |
Tags: | C++, comments, compiler, header, libmysqlclient, warnings |
[10 Oct 2017 7:31]
Sebastien FLAESCH
[10 Oct 2017 8:18]
MySQL Verification Team
Hello Sebastien FLAESCH, Thank you for the report and feedback! Thanks, Umesh
[12 Oct 2017 9:28]
MySQL Verification Team
Hello Sebastien, We have discussed internally on this and concluded that - Since MySQL 8.0, the client headers require C99 or newer, which allows // comments. GCC uses C11 mode by default since version 5. If you must use an older version of GCC, you can use the default gnu89 mode without -pedantic,which also accepts such comments. Thank you for your interest in MySQL. Thanks, Umesh
[12 Oct 2017 9:57]
Sebastien FLAESCH
Ok I understand. Thanks for the answer and suggestion. Seb