Bug 228063 - databases/mysql55-client: compile error with clang6
Summary: databases/mysql55-client: compile error with clang6
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Alex Dupre
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-08 09:19 UTC by lampa
Modified: 2018-05-08 10:56 UTC (History)
1 user (show)

See Also:


Attachments
patchfile (398 bytes, patch)
2018-05-08 09:19 UTC, lampa
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.