Skip to content

Commit c043822

Browse files
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

File tree

src/capi/cmd_ping.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ struct lcb_CMDPING_ {
126126
*
127127
* @committed
128128
*/
129-
typedef struct {
129+
typedef struct lcb_PINGSVC_ {
130130
lcb_PING_SERVICE type; /**< type of the service */
131131
/* TODO: rename to "remote" */
132132
const char *server{nullptr}; /**< server host:port */

0 commit comments

Comments
 (0)