Bug 967006 - Fix Clang build failure in nICEr. r=abr
authorAlex Xu <alex_y_xu@yahoo.ca>
Mon, 24 Feb 2014 10:09:55 -0500
changeset 170546 195910dc76049b34fb42fbd196df73a64955a31f
parent 170545 e8c8457299a2d3286606807eaff3ce2d1561ea58
child 170547 b3b8d728624319ccb3d51f3ad3a3e6caaaa37cbe
push id270
push userpvanderbeken@mozilla.com
push dateThu, 06 Mar 2014 09:24:21 +0000
reviewersabr
bugs967006
milestone30.0a1
Bug 967006 - Fix Clang build failure in nICEr. r=abr
media/mtransport/third_party/nICEr/src/stun/stun_build.h
--- a/media/mtransport/third_party/nICEr/src/stun/stun_build.h
+++ b/media/mtransport/third_party/nICEr/src/stun/stun_build.h
@@ -50,17 +50,18 @@ typedef struct nr_stun_client_stun_bindi
 } nr_stun_client_stun_binding_request_params;
 
 int nr_stun_build_req_lt_auth(nr_stun_client_stun_binding_request_params *params, nr_stun_message **msg);
 int nr_stun_build_req_st_auth(nr_stun_client_stun_binding_request_params *params, nr_stun_message **msg);
 int nr_stun_build_req_no_auth(nr_stun_client_stun_binding_request_params *params, nr_stun_message **msg);
 
 
 typedef struct nr_stun_client_stun_keepalive_params_ {
-#ifdef WIN32  // silly VC++ gives error if no members
+#if defined(WIN32) || defined(__clang__)
+    // VC++ and clang give error and warning respectively if no members
     int dummy;
 #endif
 } nr_stun_client_stun_keepalive_params;
 
 int nr_stun_build_keepalive(nr_stun_client_stun_keepalive_params *params, nr_stun_message **msg);
 
 
 #ifdef USE_STUND_0_96