Bug 228063

Summary: databases/mysql55-client: compile error with clang6
Product: Ports & Packages Reporter: lampa
Component: Individual Port(s)Assignee: Alex Dupre <ale>
Status: Closed FIXED    
Severity: Affects Only Me CC: w.schwarzenfeld
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patchfile none

Description lampa 2018-05-08 09:19:25 UTC
Created attachment 193177 [details]
patchfile

Compile error in STABLE-11 with clang6:

--- client/CMakeFiles/mysql.dir/mysql.cc.o ---
/usr/ports/databases/mysql55-client/work/mysql-5.5.60/client/mysql.cc:2674:37: error: assigning to 'char *' from incompatible type 'char'
      field_names[i][num_fields*2]= '\0';
                                    ^~~~
Probable coding error, perhaps this should be:

     *(field_names[i][num_fields*2]) = '\0';
Comment 1 Alex Dupre freebsd_committer freebsd_triage 2018-05-08 10:56:03 UTC
The correct patch is to set it to NULL.