package/oracle-mysql: Fix gcc7 compile
PATCH 1/1 package/oracle-mysql: Fix gcc7 compile
Signed-off-by Bernd Kuhls <[email protected]>
--- package/oracle-mysql/0008-gcc7.patch | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 package/oracle-mysql/0008-gcc7.patch
package/oracle-mysql/0008-gcc7.patch new file +24 -0
@@ -0,0 +1,24 @@ +Fix gcc7 compile + +mysql.cc: In function 'void build_completion_hash(bool, bool)': +mysql.cc:2687:37: error: invalid conversion from 'char' to 'char*' [-fpermissive] + field_names[i][num_fields*2]= '\0'; + ^~~~ + +Patch was partly backported from upstream commit: +https://github.com/mysql/mysql-server/commit/ae21683d980d5fe9e39bd0193827ea3604256eb9 + +Signed-off-by: Bernd Kuhls <[email protected]> + +diff -uNr mysql-5.1.73.org/client/mysql.cc mysql-5.1.73/client/mysql.cc +--- mysql-5.1.73.org/client/mysql.cc 2013-11-04 19:52:27.000000000 +0100 ++++ mysql-5.1.73/client/mysql.cc 2017-05-13 19:52:10.125101101 +0200 +@@ -2684,7 +2684,7 @@ + mysql_free_result(fields); + break; + } +- field_names[i][num_fields*2]= '\0'; ++ field_names[i][num_fields*2]= NULL; + j=0; + while ((sql_field=mysql_fetch_field(fields))) + {
Signature · 1 line
2.11.0
Thomas Petazzoni
AppliedPATCH 1/1 package/oracle-mysql: Fix gcc7 compile
Hello,
Quoted 5 lines · Bernd Kuhls
Signed-off-by Bernd Kuhls <[email protected]>--- package/oracle-mysql/0008-gcc7.patch | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 package/oracle-mysql/0008-gcc7.patch
Applied to master, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com