Removed unused variable? static const unsigned char OC_FZIG_ZAG_MMX[128]={ draft
authorISHIKAWA, Chiaki <ishikawa@yk.rim.or.jp>
Sat, 09 Nov 2019 10:59:57 +0900
changeset 81065 9547b7a1d2bb1ec854775bb969e643f7099e8e9f
parent 81064 c9f0a1c73aa991348c0cc39dd66386f2e854c3db
child 81066 689d1f0b5de889dfce734cda40753ddea4646f8f
push id9744
push userishikawa@yk.rim.or.jp
push dateSat, 09 Nov 2019 02:01:06 +0000
treeherdertry-comm-central@56c83244ac0e [default view] [failures only]
Removed unused variable? static const unsigned char OC_FZIG_ZAG_MMX[128]={
mozilla-M-C-003-media-unused-var.patch
new file mode 100644
--- /dev/null
+++ b/mozilla-M-C-003-media-unused-var.patch
@@ -0,0 +1,113 @@
+# HG changeset patch
+# User ISHIKAWA, Chiaki <ishikawa@yk.rim.or.jp>
+# Parent  38488bf4e16e6b4e908aba4f39db1e9bda4cff04
+Removed unused variable? static const unsigned char OC_FZIG_ZAG_MMX[128]={
+
+diff --git a/media/libspeex_resampler/src/resample.c b/media/libspeex_resampler/src/resample.c
+--- a/media/libspeex_resampler/src/resample.c
++++ b/media/libspeex_resampler/src/resample.c
+@@ -806,17 +806,17 @@ fail:
+ 
+ EXPORT SpeexResamplerState *speex_resampler_init(spx_uint32_t nb_channels, spx_uint32_t in_rate, spx_uint32_t out_rate, int quality, int *err)
+ {
+    return speex_resampler_init_frac(nb_channels, in_rate, out_rate, in_rate, out_rate, quality, err);
+ }
+ 
+ EXPORT SpeexResamplerState *speex_resampler_init_frac(spx_uint32_t nb_channels, spx_uint32_t ratio_num, spx_uint32_t ratio_den, spx_uint32_t in_rate, spx_uint32_t out_rate, int quality, int *err)
+ {
+-   spx_uint32_t i;
++   /* unused spx_uint32_t i; */
+    SpeexResamplerState *st;
+    int filter_err;
+ 
+    if (nb_channels == 0 || ratio_num == 0 || ratio_den == 0 || quality > 10 || quality < 0)
+    {
+       if (err)
+          *err = RESAMPLER_ERR_INVALID_ARG;
+       return NULL;
+diff --git a/media/libtheora/lib/x86/x86state.c b/media/libtheora/lib/x86/x86state.c
+--- a/media/libtheora/lib/x86/x86state.c
++++ b/media/libtheora/lib/x86/x86state.c
+@@ -14,16 +14,17 @@
+     last mod: $Id: x86state.c 17421 2010-09-22 16:46:18Z giles $
+ 
+  ********************************************************************/
+ 
+ #include "x86int.h"
+ 
+ #if defined(OC_X86_ASM)
+ 
++# if defined(OC_STATE_USE_VTABLE)
+ /*This table has been modified from OC_FZIG_ZAG by baking a 4x4 transpose into
+    each quadrant of the destination.*/
+ static const unsigned char OC_FZIG_ZAG_MMX[128]={
+    0, 8, 1, 2, 9,16,24,17,
+   10, 3,32,11,18,25, 4,12,
+    5,26,19,40,33,34,41,48,
+   27, 6,13,20,28,21,14, 7,
+   56,49,42,35,43,50,57,36,
+@@ -34,16 +35,17 @@ static const unsigned char OC_FZIG_ZAG_M
+   64,64,64,64,64,64,64,64,
+   64,64,64,64,64,64,64,64,
+   64,64,64,64,64,64,64,64,
+   64,64,64,64,64,64,64,64,
+   64,64,64,64,64,64,64,64,
+   64,64,64,64,64,64,64,64,
+   64,64,64,64,64,64,64,64
+ };
++#endif
+ 
+ /*This table has been modified from OC_FZIG_ZAG by baking an 8x8 transpose into
+    the destination.*/
+ static const unsigned char OC_FZIG_ZAG_SSE2[128]={
+    0, 8, 1, 2, 9,16,24,17,
+   10, 3, 4,11,18,25,32,40,
+   33,26,19,12, 5, 6,13,20,
+   27,34,41,48,56,49,42,35,
+diff --git a/media/webrtc/trunk/webrtc/call/rtp_demuxer.cc b/media/webrtc/trunk/webrtc/call/rtp_demuxer.cc
+--- a/media/webrtc/trunk/webrtc/call/rtp_demuxer.cc
++++ b/media/webrtc/trunk/webrtc/call/rtp_demuxer.cc
+@@ -163,17 +163,19 @@ bool RtpDemuxer::OnRtpPacket(const RtpPa
+ RtpPacketSinkInterface* RtpDemuxer::ResolveSink(
+     const RtpPacketReceived& packet) {
+   // See the BUNDLE spec for high level reference to this algorithm:
+   // https://tools.ietf.org/html/draft-ietf-mmusic-sdp-bundle-negotiation-38#section-10.2
+ 
+   // RSID and RRID are routed to the same sinks. If an RSID is specified on a
+   // repair packet, it should be ignored and the RRID should be used.
+   std::string packet_mid, packet_rsid;
++#if 0
+   bool has_mid = packet.GetExtension<RtpMid>(&packet_mid);
++#endif
+   bool has_rsid = packet.GetExtension<RepairedRtpStreamId>(&packet_rsid);
+   if (!has_rsid) {
+     has_rsid = packet.GetExtension<RtpStreamId>(&packet_rsid);
+   }
+   uint32_t ssrc = packet.Ssrc();
+ 
+   // Mid support is half-baked in branch 64. RtpStreamReceiverController only
+   // supports adding sinks by ssrc, so our mids will never show up in
+diff --git a/media/webrtc/trunk/webrtc/modules/desktop_capture/linux/x_error_trap.cc b/media/webrtc/trunk/webrtc/modules/desktop_capture/linux/x_error_trap.cc
+--- a/media/webrtc/trunk/webrtc/modules/desktop_capture/linux/x_error_trap.cc
++++ b/media/webrtc/trunk/webrtc/modules/desktop_capture/linux/x_error_trap.cc
+@@ -12,18 +12,20 @@
+ 
+ #include <assert.h>
+ 
+ #include <limits>
+ 
+ namespace webrtc {
+ 
+ // TODO(sergeyu): This code is not thread safe. Fix it. Bug 2202.
++#if 0
+ static bool g_xserver_error_trap_enabled = false;
+ static int g_last_xserver_error_code = 0;
++#endif
+ 
+ Bool XErrorTrap::XServerErrorHandler(Display* display, xReply* rep,
+                                      char* /* buf */, int /* len */,
+                                      XPointer data) {
+   XErrorTrap* self = reinterpret_cast<XErrorTrap*>(data);
+   if (rep->generic.type != X_Error ||
+       // Overflow-safe last_request_read <= last_ignored_request_ for skipping
+       // async replies from requests before XErrorTrap was created.