Commit c043822
committed
CCBC-1596: Fix compilation warning about lcb_PINGSVC struct
capi/cmd_ping.hh:129:15: warning: anonymous non-C-compatible type given name for linkage purposes by typedef declaration; add a tag name here [-Wnon-c-typedef-for-linkage]
typedef struct {
^
lcb_PINGSVC
capi/cmd_ping.hh:132:23: note: type is not C-compatible due to this default member initializer
const char *server{nullptr}; /**< server host:port */
^~~~~~~~~
capi/cmd_ping.hh:139:3: note: type is given name 'lcb_PINGSVC' for linkage purposes by this typedef declaration
} lcb_PINGSVC;
^
Change-Id: I59876943063e810accf60b1263b5230ab08063e3
Reviewed-on: https://review.couchbase.org/c/libcouchbase/+/190107
Reviewed-by: Brett Lawson <brett19@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>1 parent 9edf199 commit c043822
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
| 129 | + | |
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| |||
0 commit comments