Bug #82035 | bits/string3.h:82: warning: memset used with constant zero length parameter | ||
---|---|---|---|
Submitted: | 28 Jun 2016 16:13 | Modified: | 21 Aug 2016 19:36 |
Reporter: | Peter VARGA | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | Connector / C | Severity: | S3 (Non-critical) |
Version: | 6.1.6 | OS: | SUSE |
Assigned to: | CPU Architecture: | Any | |
Tags: | memset, Parameter, zero |
[28 Jun 2016 16:13]
Peter VARGA
[28 Jun 2016 16:16]
Peter VARGA
This is the correct sample source: #include <my_global.h> #include <mysql.h> int main() { mysql_init( NULL ); }
[10 Aug 2016 12:37]
Chiranjeevi Battula
Hello Peter VARGA, Thank you for the bug report. I tried to reproduce the issue at my end using MySQL Connector / C 6.1.6, GCC 5.3.1 but not seeing any warnings while compiling code. If you can provide more information, feel free to add it to this bug and change the status back to 'Open'. Thank you for your interest in MySQL. Thanks, Chiranjeevi.
[21 Aug 2016 19:36]
Peter VARGA
No, I did not say that compiling fails! The warning appears while linking the test case: g++ -std=c++11 `mysql_config --include` mysqlBug.cpp -c No warning! g++ mysqlBug.o `mysql_config --libs` The warning: /usr/lib64/mysql/libmysqlclient.a(ssl.cpp.o): In function `memset': /usr/include/bits/string3.h:82: warning: memset used with constant zero length parameter; this could be due to transposed parameters