| 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: |
|
||||||
The correct patch is to set it to NULL. |
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';