Bug 825105 - Fix two clang warnings in media/mtransport/. r=ekr.
authorNicholas Nethercote <nnethercote@mozilla.com>
Sun, 10 Feb 2013 18:01:07 -0800
changeset 131425 32c248cf74746866b284765a64b80bae341c7ccd
parent 131424 cd80e0af25cde0a1d0488f331a2fbb0afdfa09cf
child 131426 24f879564f43a18c5faf35eceecb53196a28011f
push id2323
push userbbajaj@mozilla.com
push dateMon, 01 Apr 2013 19:47:02 +0000
treeherdermozilla-beta@7712be144d91 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersekr
bugs825105
milestone21.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 825105 - Fix two clang warnings in media/mtransport/. r=ekr.
media/mtransport/nricectx.h
media/mtransport/nricemediastream.h
--- a/media/mtransport/nricectx.h
+++ b/media/mtransport/nricectx.h
@@ -193,17 +193,21 @@ class NrIceCtx {
            bool offerer)
   : state_(ICE_CTX_INIT),
     name_(name),
     offerer_(offerer),
     streams_(),
     ctx_(nullptr),
     peer_(nullptr),
     ice_handler_vtbl_(nullptr),
-    ice_handler_(nullptr) {}
+    ice_handler_(nullptr)
+  {
+    // XXX: offerer_ will be used eventually;  placate clang in the meantime.
+    (void)offerer_;
+  }
 
   DISALLOW_COPY_ASSIGN(NrIceCtx);
 
   // Callbacks for nICEr
   static void initialized_cb(NR_SOCKET s, int h, void *arg);  // ICE initialized
 
   // Handler implementation
   static int select_pair(void *obj,nr_ice_media_stream *stream,
--- a/media/mtransport/nricemediastream.h
+++ b/media/mtransport/nricemediastream.h
@@ -121,17 +121,21 @@ class NrIceMediaStream {
 
  private:
   NrIceMediaStream(NrIceCtx *ctx,  const std::string& name,
                    int components) :
       state_(ICE_CONNECTING),
       ctx_(ctx),
       name_(name),
       components_(components),
-      stream_(nullptr)  {}
+      stream_(nullptr)
+  {
+    // XXX: components_ will be used eventually;  placate clang in the meantime.
+    (void)components_;
+  }
 
   DISALLOW_COPY_ASSIGN(NrIceMediaStream);
 
   State state_;
   NrIceCtx *ctx_;
   const std::string name_;
   const int components_;
   nr_ice_media_stream *stream_;