From e5cc2e99e6295aabe401f9c229a39574e0d9bf38 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Mon, 8 Apr 2013 04:55:18 +1000 Subject: Clean out a couple of compiler warnings. --- linden/indra/llui/llui.h | 2 ++ .../media_plugins/gstreamer010/llmediaimplgstreamervidplug.cpp | 7 ++----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/linden/indra/llui/llui.h b/linden/indra/llui/llui.h index ebcc730..466d2c7 100644 --- a/linden/indra/llui/llui.h +++ b/linden/indra/llui/llui.h @@ -706,10 +706,12 @@ public: // this avoids a MSVC bug where non-referenced static members are "optimized" away // even if their constructors have side effects + // Then we avoid a compiler warning that dummy is never used. lol void reference() { S32 dummy; dummy = 0; + dummy = dummy + 0; } }; diff --git a/linden/indra/media_plugins/gstreamer010/llmediaimplgstreamervidplug.cpp b/linden/indra/media_plugins/gstreamer010/llmediaimplgstreamervidplug.cpp index e194bf7..49bf6f9 100755 --- a/linden/indra/media_plugins/gstreamer010/llmediaimplgstreamervidplug.cpp +++ b/linden/indra/media_plugins/gstreamer010/llmediaimplgstreamervidplug.cpp @@ -312,12 +312,9 @@ gst_slvideo_set_caps (GstBaseSink * bsink, GstCaps * caps) static gboolean gst_slvideo_start (GstBaseSink * bsink) { - GstSLVideo *slvideo; - gboolean ret = TRUE; - - slvideo = GST_SLVIDEO(bsink); + GST_SLVIDEO(bsink); - return ret; + return TRUE; } static gboolean -- cgit v1.1