Advertisement
Guest User

SDL2-2.0.5_fix-warnings.patch

a guest
Nov 4th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 159.71 KB | None | 0 0
  1. diff -ru SDL2-2.0.5/src/audio/directsound/SDL_directsound.c SDL2-2.0.5_fix-warnings/src/audio/directsound/SDL_directsound.c
  2. --- SDL2-2.0.5/src/audio/directsound/SDL_directsound.c  2016-10-20 07:56:26.000000000 +0300
  3. +++ SDL2-2.0.5_fix-warnings/src/audio/directsound/SDL_directsound.c 2016-11-04 01:28:51.389600000 +0200
  4. @@ -158,6 +158,8 @@
  5.  static BOOL CALLBACK
  6.  FindAllDevs(LPGUID guid, LPCWSTR desc, LPCWSTR module, LPVOID data)
  7.  {
  8. +    (void)module;
  9. +
  10.      const int iscapture = (int) ((size_t) data);
  11.      if (guid != NULL) {  /* skip default device */
  12.          char *str = WIN_LookupAudioDeviceName(desc, guid);
  13. @@ -314,7 +316,7 @@
  14.      DWORD junk, cursor, ptr1len, ptr2len;
  15.      VOID *ptr1, *ptr2;
  16.  
  17. -    SDL_assert(buflen == this->spec.size);
  18. +    SDL_assert((Uint32)buflen == this->spec.size);
  19.  
  20.      while (SDL_TRUE) {
  21.          if (SDL_AtomicGet(&this->shutdown)) {  /* in case the buffer froze... */
  22. @@ -472,6 +474,8 @@
  23.  static int
  24.  DSOUND_OpenDevice(_THIS, void *handle, const char *devname, int iscapture)
  25.  {
  26. +    (void)devname;
  27. +
  28.      const DWORD numchunks = 8;
  29.      HRESULT result;
  30.      SDL_bool valid_format = SDL_FALSE;
  31. @@ -522,7 +526,7 @@
  32.  
  33.              bufsize = numchunks * this->spec.size;
  34.              if ((bufsize < DSBSIZE_MIN) || (bufsize > DSBSIZE_MAX)) {
  35. -                SDL_SetError("Sound buffer size must be between %d and %d",
  36. +                SDL_SetError("Sound buffer size must be between %lu and %lu",
  37.                               (DSBSIZE_MIN < numchunks) ? 1 : DSBSIZE_MIN / numchunks,
  38.                               DSBSIZE_MAX / numchunks);
  39.              } else {
  40. diff -ru SDL2-2.0.5/src/audio/disk/SDL_diskaudio.c SDL2-2.0.5_fix-warnings/src/audio/disk/SDL_diskaudio.c
  41. --- SDL2-2.0.5/src/audio/disk/SDL_diskaudio.c   2016-10-20 07:56:26.000000000 +0300
  42. +++ SDL2-2.0.5_fix-warnings/src/audio/disk/SDL_diskaudio.c  2016-11-03 21:11:34.641400000 +0200
  43. @@ -98,6 +98,7 @@
  44.  static void
  45.  DISKAUDIO_FlushCapture(_THIS)
  46.  {
  47. +    (void)this;
  48.      /* no op...we don't advance the file pointer or anything. */
  49.  }
  50.  
  51. diff -ru SDL2-2.0.5/src/audio/dummy/SDL_dummyaudio.c SDL2-2.0.5_fix-warnings/src/audio/dummy/SDL_dummyaudio.c
  52. --- SDL2-2.0.5/src/audio/dummy/SDL_dummyaudio.c 2016-10-20 07:56:26.000000000 +0300
  53. +++ SDL2-2.0.5_fix-warnings/src/audio/dummy/SDL_dummyaudio.c    2016-11-03 21:13:38.737400000 +0200
  54. @@ -30,6 +30,11 @@
  55.  static int
  56.  DUMMYAUDIO_OpenDevice(_THIS, void *handle, const char *devname, int iscapture)
  57.  {
  58. +    (void)this;
  59. +    (void)handle;
  60. +    (void)devname;
  61. +    (void)iscapture;
  62. +
  63.      return 0;                   /* always succeeds. */
  64.  }
  65.  
  66. diff -ru SDL2-2.0.5/src/audio/SDL_audio.c SDL2-2.0.5_fix-warnings/src/audio/SDL_audio.c
  67. --- SDL2-2.0.5/src/audio/SDL_audio.c    2016-10-20 07:56:26.000000000 +0300
  68. +++ SDL2-2.0.5_fix-warnings/src/audio/SDL_audio.c   2016-11-03 17:54:52.047400000 +0200
  69. @@ -167,49 +167,63 @@
  70.  static void
  71.  SDL_AudioThreadInit_Default(_THIS)
  72.  {                               /* no-op. */
  73. +    (void)_this;
  74.  }
  75.  
  76.  static void
  77.  SDL_AudioWaitDevice_Default(_THIS)
  78.  {                               /* no-op. */
  79. +    (void)_this;
  80.  }
  81.  
  82.  static void
  83.  SDL_AudioPlayDevice_Default(_THIS)
  84.  {                               /* no-op. */
  85. +    (void)_this;
  86.  }
  87.  
  88.  static int
  89.  SDL_AudioGetPendingBytes_Default(_THIS)
  90.  {
  91. +    (void)_this;
  92. +
  93.      return 0;
  94.  }
  95.  
  96.  static Uint8 *
  97.  SDL_AudioGetDeviceBuf_Default(_THIS)
  98.  {
  99. +    (void)_this;
  100. +
  101.      return NULL;
  102.  }
  103.  
  104.  static int
  105.  SDL_AudioCaptureFromDevice_Default(_THIS, void *buffer, int buflen)
  106.  {
  107. +    (void)_this;
  108. +    (void)buffer;
  109. +    (void)buflen;
  110. +
  111.      return -1;  /* just fail immediately. */
  112.  }
  113.  
  114.  static void
  115.  SDL_AudioFlushCapture_Default(_THIS)
  116.  {                               /* no-op. */
  117. +    (void)_this;
  118.  }
  119.  
  120.  static void
  121.  SDL_AudioPrepareToClose_Default(_THIS)
  122.  {                               /* no-op. */
  123. +    (void)_this;
  124.  }
  125.  
  126.  static void
  127.  SDL_AudioCloseDevice_Default(_THIS)
  128.  {                               /* no-op. */
  129. +    (void)_this;
  130.  }
  131.  
  132.  static void
  133. @@ -220,12 +234,18 @@
  134.  static void
  135.  SDL_AudioFreeDeviceHandle_Default(void *handle)
  136.  {                               /* no-op. */
  137. +    (void)handle;
  138.  }
  139.  
  140.  
  141.  static int
  142.  SDL_AudioOpenDevice_Default(_THIS, void *handle, const char *devname, int iscapture)
  143.  {
  144. +    (void)_this;
  145. +    (void)handle;
  146. +    (void)devname;
  147. +    (void)iscapture;
  148. +
  149.      return SDL_Unsupported();
  150.  }
  151.  
  152. @@ -262,6 +282,7 @@
  153.  static void
  154.  SDL_AudioLockOrUnlockDeviceWithNoMixerLock(SDL_AudioDevice * device)
  155.  {
  156. +    (void)device;
  157.  }
  158.  
  159.  static void
  160. @@ -421,7 +442,7 @@
  161.  void
  162.  SDL_RemoveAudioDevice(const int iscapture, void *handle)
  163.  {
  164. -    int device_index;
  165. +    size_t device_index;
  166.      SDL_AudioDevice *device = NULL;
  167.  
  168.      SDL_LockMutex(current_audio.detectionLock);
  169. @@ -716,7 +737,7 @@
  170.      SDL_AudioDevice *device = (SDL_AudioDevice *) devicep;
  171.      const int silence = (int) device->spec.silence;
  172.      const Uint32 delay = ((device->spec.samples * 1000) / device->spec.freq);
  173. -    const int stream_len = (device->convert.needed) ? device->convert.len : device->spec.size;
  174. +    const int stream_len = (device->convert.needed) ? device->convert.len : (int)device->spec.size;
  175.      Uint8 *stream;
  176.      void *udata = device->spec.userdata;
  177.      void (SDLCALL *callback) (void *, Uint8 *, int) = device->spec.callback;
  178. @@ -797,7 +818,7 @@
  179.      SDL_AudioDevice *device = (SDL_AudioDevice *) devicep;
  180.      const int silence = (int) device->spec.silence;
  181.      const Uint32 delay = ((device->spec.samples * 1000) / device->spec.freq);
  182. -    const int stream_len = (device->convert.needed) ? device->convert.len : device->spec.size;
  183. +    const int stream_len = (device->convert.needed) ? device->convert.len : (int)device->spec.size;
  184.      Uint8 *stream;
  185.      void *udata = device->spec.userdata;
  186.      void (SDLCALL *callback) (void *, Uint8 *, int) = device->spec.callback;
  187. @@ -1186,7 +1207,7 @@
  188.      SDL_AudioDevice *device;
  189.      SDL_bool build_cvt;
  190.      void *handle = NULL;
  191. -    int i = 0;
  192. +    size_t i = 0;
  193.  
  194.      if (!SDL_WasInit(SDL_INIT_AUDIO)) {
  195.          SDL_SetError("Audio subsystem is not initialized");
  196. @@ -1379,9 +1400,9 @@
  197.      if (device->spec.callback == NULL) {  /* use buffer queueing? */
  198.          /* pool a few packets to start. Enough for two callbacks. */
  199.          const int packetlen = SDL_AUDIOBUFFERQUEUE_PACKETLEN;
  200. -        const int wantbytes = ((device->convert.needed) ? device->convert.len : device->spec.size) * 2;
  201. +        const int wantbytes = ((device->convert.needed) ? device->convert.len : (int)device->spec.size) * 2;
  202.          const int wantpackets = (wantbytes / packetlen) + ((wantbytes % packetlen) ? packetlen : 0);
  203. -        for (i = 0; i < wantpackets; i++) {
  204. +        for (i = 0; i < (size_t)wantpackets; i++) {
  205.              SDL_AudioBufferQueue *packet = (SDL_AudioBufferQueue *) SDL_malloc(sizeof (SDL_AudioBufferQueue));
  206.              if (packet) { /* don't care if this fails, we'll deal later. */
  207.                  packet->datalen = 0;
  208. diff -ru SDL2-2.0.5/src/audio/SDL_audiocvt.c SDL2-2.0.5_fix-warnings/src/audio/SDL_audiocvt.c
  209. --- SDL2-2.0.5/src/audio/SDL_audiocvt.c 2016-10-20 07:56:26.000000000 +0300
  210. +++ SDL2-2.0.5_fix-warnings/src/audio/SDL_audiocvt.c    2016-11-03 17:58:09.135400000 +0200
  211. @@ -842,6 +842,9 @@
  212.       *  processor, platform, compiler, or library here.
  213.       */
  214.  
  215. +    (void)src_fmt;
  216. +    (void)dst_fmt;
  217. +
  218.      return NULL;                /* no specialized converter code available. */
  219.  }
  220.  
  221. @@ -904,6 +907,11 @@
  222.       *  processor, platform, compiler, or library here.
  223.       */
  224.  
  225. +    (void)cvt;
  226. +    (void)dst_channels;
  227. +    (void)src_rate;
  228. +    (void)dst_rate;
  229. +
  230.      return NULL;                /* no specialized converter code available. */
  231.  }
  232.  
  233. diff -ru SDL2-2.0.5/src/audio/SDL_audiotypecvt.c SDL2-2.0.5_fix-warnings/src/audio/SDL_audiotypecvt.c
  234. --- SDL2-2.0.5/src/audio/SDL_audiotypecvt.c 2016-10-20 07:56:26.000000000 +0300
  235. +++ SDL2-2.0.5_fix-warnings/src/audio/SDL_audiotypecvt.c    2016-11-03 18:07:18.770400000 +0200
  236. @@ -58,6 +58,8 @@
  237.  static void SDLCALL
  238.  SDL_Convert_U8_to_S8(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  239.  {
  240. +    (void)format;
  241. +
  242.      int i;
  243.      const Uint8 *src;
  244.      Sint8 *dst;
  245. @@ -81,6 +83,8 @@
  246.  static void SDLCALL
  247.  SDL_Convert_U8_to_U16LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  248.  {
  249. +    (void)format;
  250. +
  251.      int i;
  252.      const Uint8 *src;
  253.      Uint16 *dst;
  254. @@ -105,6 +109,8 @@
  255.  static void SDLCALL
  256.  SDL_Convert_U8_to_S16LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  257.  {
  258. +    (void)format;
  259. +
  260.      int i;
  261.      const Uint8 *src;
  262.      Sint16 *dst;
  263. @@ -129,6 +135,8 @@
  264.  static void SDLCALL
  265.  SDL_Convert_U8_to_U16MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  266.  {
  267. +    (void)format;
  268. +
  269.      int i;
  270.      const Uint8 *src;
  271.      Uint16 *dst;
  272. @@ -153,6 +161,8 @@
  273.  static void SDLCALL
  274.  SDL_Convert_U8_to_S16MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  275.  {
  276. +    (void)format;
  277. +
  278.      int i;
  279.      const Uint8 *src;
  280.      Sint16 *dst;
  281. @@ -177,6 +187,8 @@
  282.  static void SDLCALL
  283.  SDL_Convert_U8_to_S32LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  284.  {
  285. +    (void)format;
  286. +
  287.      int i;
  288.      const Uint8 *src;
  289.      Sint32 *dst;
  290. @@ -201,6 +213,8 @@
  291.  static void SDLCALL
  292.  SDL_Convert_U8_to_S32MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  293.  {
  294. +    (void)format;
  295. +
  296.      int i;
  297.      const Uint8 *src;
  298.      Sint32 *dst;
  299. @@ -225,6 +239,8 @@
  300.  static void SDLCALL
  301.  SDL_Convert_U8_to_F32LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  302.  {
  303. +    (void)format;
  304. +
  305.      int i;
  306.      const Uint8 *src;
  307.      float *dst;
  308. @@ -249,6 +265,8 @@
  309.  static void SDLCALL
  310.  SDL_Convert_U8_to_F32MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  311.  {
  312. +    (void)format;
  313. +
  314.      int i;
  315.      const Uint8 *src;
  316.      float *dst;
  317. @@ -273,6 +291,8 @@
  318.  static void SDLCALL
  319.  SDL_Convert_S8_to_U8(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  320.  {
  321. +    (void)format;
  322. +
  323.      int i;
  324.      const Uint8 *src;
  325.      Uint8 *dst;
  326. @@ -296,6 +316,8 @@
  327.  static void SDLCALL
  328.  SDL_Convert_S8_to_U16LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  329.  {
  330. +    (void)format;
  331. +
  332.      int i;
  333.      const Uint8 *src;
  334.      Uint16 *dst;
  335. @@ -320,6 +342,8 @@
  336.  static void SDLCALL
  337.  SDL_Convert_S8_to_S16LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  338.  {
  339. +    (void)format;
  340. +
  341.      int i;
  342.      const Uint8 *src;
  343.      Sint16 *dst;
  344. @@ -344,6 +368,8 @@
  345.  static void SDLCALL
  346.  SDL_Convert_S8_to_U16MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  347.  {
  348. +    (void)format;
  349. +
  350.      int i;
  351.      const Uint8 *src;
  352.      Uint16 *dst;
  353. @@ -368,6 +394,8 @@
  354.  static void SDLCALL
  355.  SDL_Convert_S8_to_S16MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  356.  {
  357. +    (void)format;
  358. +
  359.      int i;
  360.      const Uint8 *src;
  361.      Sint16 *dst;
  362. @@ -392,6 +420,8 @@
  363.  static void SDLCALL
  364.  SDL_Convert_S8_to_S32LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  365.  {
  366. +    (void)format;
  367. +
  368.      int i;
  369.      const Uint8 *src;
  370.      Sint32 *dst;
  371. @@ -416,6 +446,8 @@
  372.  static void SDLCALL
  373.  SDL_Convert_S8_to_S32MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  374.  {
  375. +    (void)format;
  376. +
  377.      int i;
  378.      const Uint8 *src;
  379.      Sint32 *dst;
  380. @@ -440,6 +472,8 @@
  381.  static void SDLCALL
  382.  SDL_Convert_S8_to_F32LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  383.  {
  384. +    (void)format;
  385. +
  386.      int i;
  387.      const Uint8 *src;
  388.      float *dst;
  389. @@ -464,6 +498,8 @@
  390.  static void SDLCALL
  391.  SDL_Convert_S8_to_F32MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  392.  {
  393. +    (void)format;
  394. +
  395.      int i;
  396.      const Uint8 *src;
  397.      float *dst;
  398. @@ -488,6 +524,8 @@
  399.  static void SDLCALL
  400.  SDL_Convert_U16LSB_to_U8(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  401.  {
  402. +    (void)format;
  403. +
  404.      int i;
  405.      const Uint16 *src;
  406.      Uint8 *dst;
  407. @@ -512,6 +550,8 @@
  408.  static void SDLCALL
  409.  SDL_Convert_U16LSB_to_S8(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  410.  {
  411. +    (void)format;
  412. +
  413.      int i;
  414.      const Uint16 *src;
  415.      Sint8 *dst;
  416. @@ -536,6 +576,8 @@
  417.  static void SDLCALL
  418.  SDL_Convert_U16LSB_to_S16LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  419.  {
  420. +    (void)format;
  421. +
  422.      int i;
  423.      const Uint16 *src;
  424.      Sint16 *dst;
  425. @@ -559,6 +601,8 @@
  426.  static void SDLCALL
  427.  SDL_Convert_U16LSB_to_U16MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  428.  {
  429. +    (void)format;
  430. +
  431.      int i;
  432.      const Uint16 *src;
  433.      Uint16 *dst;
  434. @@ -582,6 +626,8 @@
  435.  static void SDLCALL
  436.  SDL_Convert_U16LSB_to_S16MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  437.  {
  438. +    (void)format;
  439. +
  440.      int i;
  441.      const Uint16 *src;
  442.      Sint16 *dst;
  443. @@ -605,6 +651,8 @@
  444.  static void SDLCALL
  445.  SDL_Convert_U16LSB_to_S32LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  446.  {
  447. +    (void)format;
  448. +
  449.      int i;
  450.      const Uint16 *src;
  451.      Sint32 *dst;
  452. @@ -629,6 +677,8 @@
  453.  static void SDLCALL
  454.  SDL_Convert_U16LSB_to_S32MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  455.  {
  456. +    (void)format;
  457. +
  458.      int i;
  459.      const Uint16 *src;
  460.      Sint32 *dst;
  461. @@ -653,6 +703,8 @@
  462.  static void SDLCALL
  463.  SDL_Convert_U16LSB_to_F32LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  464.  {
  465. +    (void)format;
  466. +
  467.      int i;
  468.      const Uint16 *src;
  469.      float *dst;
  470. @@ -677,6 +729,8 @@
  471.  static void SDLCALL
  472.  SDL_Convert_U16LSB_to_F32MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  473.  {
  474. +    (void)format;
  475. +
  476.      int i;
  477.      const Uint16 *src;
  478.      float *dst;
  479. @@ -701,6 +755,8 @@
  480.  static void SDLCALL
  481.  SDL_Convert_S16LSB_to_U8(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  482.  {
  483. +    (void)format;
  484. +
  485.      int i;
  486.      const Uint16 *src;
  487.      Uint8 *dst;
  488. @@ -725,6 +781,8 @@
  489.  static void SDLCALL
  490.  SDL_Convert_S16LSB_to_S8(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  491.  {
  492. +    (void)format;
  493. +
  494.      int i;
  495.      const Uint16 *src;
  496.      Sint8 *dst;
  497. @@ -749,6 +807,8 @@
  498.  static void SDLCALL
  499.  SDL_Convert_S16LSB_to_U16LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  500.  {
  501. +    (void)format;
  502. +
  503.      int i;
  504.      const Uint16 *src;
  505.      Uint16 *dst;
  506. @@ -772,6 +832,8 @@
  507.  static void SDLCALL
  508.  SDL_Convert_S16LSB_to_U16MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  509.  {
  510. +    (void)format;
  511. +
  512.      int i;
  513.      const Uint16 *src;
  514.      Uint16 *dst;
  515. @@ -795,6 +857,8 @@
  516.  static void SDLCALL
  517.  SDL_Convert_S16LSB_to_S16MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  518.  {
  519. +    (void)format;
  520. +
  521.      int i;
  522.      const Uint16 *src;
  523.      Sint16 *dst;
  524. @@ -818,6 +882,8 @@
  525.  static void SDLCALL
  526.  SDL_Convert_S16LSB_to_S32LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  527.  {
  528. +    (void)format;
  529. +
  530.      int i;
  531.      const Uint16 *src;
  532.      Sint32 *dst;
  533. @@ -842,6 +908,8 @@
  534.  static void SDLCALL
  535.  SDL_Convert_S16LSB_to_S32MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  536.  {
  537. +    (void)format;
  538. +
  539.      int i;
  540.      const Uint16 *src;
  541.      Sint32 *dst;
  542. @@ -866,6 +934,8 @@
  543.  static void SDLCALL
  544.  SDL_Convert_S16LSB_to_F32LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  545.  {
  546. +    (void)format;
  547. +
  548.      int i;
  549.      const Uint16 *src;
  550.      float *dst;
  551. @@ -890,6 +960,8 @@
  552.  static void SDLCALL
  553.  SDL_Convert_S16LSB_to_F32MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  554.  {
  555. +    (void)format;
  556. +
  557.      int i;
  558.      const Uint16 *src;
  559.      float *dst;
  560. @@ -914,6 +986,8 @@
  561.  static void SDLCALL
  562.  SDL_Convert_U16MSB_to_U8(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  563.  {
  564. +    (void)format;
  565. +
  566.      int i;
  567.      const Uint16 *src;
  568.      Uint8 *dst;
  569. @@ -938,6 +1012,8 @@
  570.  static void SDLCALL
  571.  SDL_Convert_U16MSB_to_S8(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  572.  {
  573. +    (void)format;
  574. +
  575.      int i;
  576.      const Uint16 *src;
  577.      Sint8 *dst;
  578. @@ -962,6 +1038,8 @@
  579.  static void SDLCALL
  580.  SDL_Convert_U16MSB_to_U16LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  581.  {
  582. +    (void)format;
  583. +
  584.      int i;
  585.      const Uint16 *src;
  586.      Uint16 *dst;
  587. @@ -985,6 +1063,8 @@
  588.  static void SDLCALL
  589.  SDL_Convert_U16MSB_to_S16LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  590.  {
  591. +    (void)format;
  592. +
  593.      int i;
  594.      const Uint16 *src;
  595.      Sint16 *dst;
  596. @@ -1008,6 +1088,8 @@
  597.  static void SDLCALL
  598.  SDL_Convert_U16MSB_to_S16MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  599.  {
  600. +    (void)format;
  601. +
  602.      int i;
  603.      const Uint16 *src;
  604.      Sint16 *dst;
  605. @@ -1031,6 +1113,8 @@
  606.  static void SDLCALL
  607.  SDL_Convert_U16MSB_to_S32LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  608.  {
  609. +    (void)format;
  610. +
  611.      int i;
  612.      const Uint16 *src;
  613.      Sint32 *dst;
  614. @@ -1055,6 +1139,8 @@
  615.  static void SDLCALL
  616.  SDL_Convert_U16MSB_to_S32MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  617.  {
  618. +    (void)format;
  619. +
  620.      int i;
  621.      const Uint16 *src;
  622.      Sint32 *dst;
  623. @@ -1079,6 +1165,8 @@
  624.  static void SDLCALL
  625.  SDL_Convert_U16MSB_to_F32LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  626.  {
  627. +    (void)format;
  628. +
  629.      int i;
  630.      const Uint16 *src;
  631.      float *dst;
  632. @@ -1103,6 +1191,8 @@
  633.  static void SDLCALL
  634.  SDL_Convert_U16MSB_to_F32MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  635.  {
  636. +    (void)format;
  637. +
  638.      int i;
  639.      const Uint16 *src;
  640.      float *dst;
  641. @@ -1127,6 +1217,8 @@
  642.  static void SDLCALL
  643.  SDL_Convert_S16MSB_to_U8(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  644.  {
  645. +    (void)format;
  646. +
  647.      int i;
  648.      const Uint16 *src;
  649.      Uint8 *dst;
  650. @@ -1151,6 +1243,8 @@
  651.  static void SDLCALL
  652.  SDL_Convert_S16MSB_to_S8(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  653.  {
  654. +    (void)format;
  655. +
  656.      int i;
  657.      const Uint16 *src;
  658.      Sint8 *dst;
  659. @@ -1175,6 +1269,8 @@
  660.  static void SDLCALL
  661.  SDL_Convert_S16MSB_to_U16LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  662.  {
  663. +    (void)format;
  664. +
  665.      int i;
  666.      const Uint16 *src;
  667.      Uint16 *dst;
  668. @@ -1198,6 +1294,8 @@
  669.  static void SDLCALL
  670.  SDL_Convert_S16MSB_to_S16LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  671.  {
  672. +    (void)format;
  673. +
  674.      int i;
  675.      const Uint16 *src;
  676.      Sint16 *dst;
  677. @@ -1221,6 +1319,8 @@
  678.  static void SDLCALL
  679.  SDL_Convert_S16MSB_to_U16MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  680.  {
  681. +    (void)format;
  682. +
  683.      int i;
  684.      const Uint16 *src;
  685.      Uint16 *dst;
  686. @@ -1244,6 +1344,8 @@
  687.  static void SDLCALL
  688.  SDL_Convert_S16MSB_to_S32LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  689.  {
  690. +    (void)format;
  691. +
  692.      int i;
  693.      const Uint16 *src;
  694.      Sint32 *dst;
  695. @@ -1268,6 +1370,8 @@
  696.  static void SDLCALL
  697.  SDL_Convert_S16MSB_to_S32MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  698.  {
  699. +    (void)format;
  700. +
  701.      int i;
  702.      const Uint16 *src;
  703.      Sint32 *dst;
  704. @@ -1292,6 +1396,8 @@
  705.  static void SDLCALL
  706.  SDL_Convert_S16MSB_to_F32LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  707.  {
  708. +    (void)format;
  709. +
  710.      int i;
  711.      const Uint16 *src;
  712.      float *dst;
  713. @@ -1316,6 +1422,8 @@
  714.  static void SDLCALL
  715.  SDL_Convert_S16MSB_to_F32MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  716.  {
  717. +    (void)format;
  718. +
  719.      int i;
  720.      const Uint16 *src;
  721.      float *dst;
  722. @@ -1340,6 +1448,8 @@
  723.  static void SDLCALL
  724.  SDL_Convert_S32LSB_to_U8(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  725.  {
  726. +    (void)format;
  727. +
  728.      int i;
  729.      const Uint32 *src;
  730.      Uint8 *dst;
  731. @@ -1364,6 +1474,8 @@
  732.  static void SDLCALL
  733.  SDL_Convert_S32LSB_to_S8(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  734.  {
  735. +    (void)format;
  736. +
  737.      int i;
  738.      const Uint32 *src;
  739.      Sint8 *dst;
  740. @@ -1388,6 +1500,8 @@
  741.  static void SDLCALL
  742.  SDL_Convert_S32LSB_to_U16LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  743.  {
  744. +    (void)format;
  745. +
  746.      int i;
  747.      const Uint32 *src;
  748.      Uint16 *dst;
  749. @@ -1412,6 +1526,8 @@
  750.  static void SDLCALL
  751.  SDL_Convert_S32LSB_to_S16LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  752.  {
  753. +    (void)format;
  754. +
  755.      int i;
  756.      const Uint32 *src;
  757.      Sint16 *dst;
  758. @@ -1436,6 +1552,8 @@
  759.  static void SDLCALL
  760.  SDL_Convert_S32LSB_to_U16MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  761.  {
  762. +    (void)format;
  763. +
  764.      int i;
  765.      const Uint32 *src;
  766.      Uint16 *dst;
  767. @@ -1460,6 +1578,8 @@
  768.  static void SDLCALL
  769.  SDL_Convert_S32LSB_to_S16MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  770.  {
  771. +    (void)format;
  772. +
  773.      int i;
  774.      const Uint32 *src;
  775.      Sint16 *dst;
  776. @@ -1484,6 +1604,8 @@
  777.  static void SDLCALL
  778.  SDL_Convert_S32LSB_to_S32MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  779.  {
  780. +    (void)format;
  781. +
  782.      int i;
  783.      const Uint32 *src;
  784.      Sint32 *dst;
  785. @@ -1507,6 +1629,8 @@
  786.  static void SDLCALL
  787.  SDL_Convert_S32LSB_to_F32LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  788.  {
  789. +    (void)format;
  790. +
  791.      int i;
  792.      const Uint32 *src;
  793.      float *dst;
  794. @@ -1530,6 +1654,8 @@
  795.  static void SDLCALL
  796.  SDL_Convert_S32LSB_to_F32MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  797.  {
  798. +    (void)format;
  799. +
  800.      int i;
  801.      const Uint32 *src;
  802.      float *dst;
  803. @@ -1553,6 +1679,8 @@
  804.  static void SDLCALL
  805.  SDL_Convert_S32MSB_to_U8(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  806.  {
  807. +    (void)format;
  808. +
  809.      int i;
  810.      const Uint32 *src;
  811.      Uint8 *dst;
  812. @@ -1577,6 +1705,8 @@
  813.  static void SDLCALL
  814.  SDL_Convert_S32MSB_to_S8(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  815.  {
  816. +    (void)format;
  817. +
  818.      int i;
  819.      const Uint32 *src;
  820.      Sint8 *dst;
  821. @@ -1601,6 +1731,8 @@
  822.  static void SDLCALL
  823.  SDL_Convert_S32MSB_to_U16LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  824.  {
  825. +    (void)format;
  826. +
  827.      int i;
  828.      const Uint32 *src;
  829.      Uint16 *dst;
  830. @@ -1625,6 +1757,8 @@
  831.  static void SDLCALL
  832.  SDL_Convert_S32MSB_to_S16LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  833.  {
  834. +    (void)format;
  835. +
  836.      int i;
  837.      const Uint32 *src;
  838.      Sint16 *dst;
  839. @@ -1649,6 +1783,8 @@
  840.  static void SDLCALL
  841.  SDL_Convert_S32MSB_to_U16MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  842.  {
  843. +    (void)format;
  844. +
  845.      int i;
  846.      const Uint32 *src;
  847.      Uint16 *dst;
  848. @@ -1673,6 +1809,8 @@
  849.  static void SDLCALL
  850.  SDL_Convert_S32MSB_to_S16MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  851.  {
  852. +    (void)format;
  853. +
  854.      int i;
  855.      const Uint32 *src;
  856.      Sint16 *dst;
  857. @@ -1697,6 +1835,8 @@
  858.  static void SDLCALL
  859.  SDL_Convert_S32MSB_to_S32LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  860.  {
  861. +    (void)format;
  862. +
  863.      int i;
  864.      const Uint32 *src;
  865.      Sint32 *dst;
  866. @@ -1720,6 +1860,8 @@
  867.  static void SDLCALL
  868.  SDL_Convert_S32MSB_to_F32LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  869.  {
  870. +    (void)format;
  871. +
  872.      int i;
  873.      const Uint32 *src;
  874.      float *dst;
  875. @@ -1743,6 +1885,8 @@
  876.  static void SDLCALL
  877.  SDL_Convert_S32MSB_to_F32MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  878.  {
  879. +    (void)format;
  880. +
  881.      int i;
  882.      const Uint32 *src;
  883.      float *dst;
  884. @@ -1766,6 +1910,8 @@
  885.  static void SDLCALL
  886.  SDL_Convert_F32LSB_to_U8(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  887.  {
  888. +    (void)format;
  889. +
  890.      int i;
  891.      const float *src;
  892.      Uint8 *dst;
  893. @@ -1790,6 +1936,8 @@
  894.  static void SDLCALL
  895.  SDL_Convert_F32LSB_to_S8(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  896.  {
  897. +    (void)format;
  898. +
  899.      int i;
  900.      const float *src;
  901.      Sint8 *dst;
  902. @@ -1814,6 +1962,8 @@
  903.  static void SDLCALL
  904.  SDL_Convert_F32LSB_to_U16LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  905.  {
  906. +    (void)format;
  907. +
  908.      int i;
  909.      const float *src;
  910.      Uint16 *dst;
  911. @@ -1838,6 +1988,8 @@
  912.  static void SDLCALL
  913.  SDL_Convert_F32LSB_to_S16LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  914.  {
  915. +    (void)format;
  916. +
  917.      int i;
  918.      const float *src;
  919.      Sint16 *dst;
  920. @@ -1862,6 +2014,8 @@
  921.  static void SDLCALL
  922.  SDL_Convert_F32LSB_to_U16MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  923.  {
  924. +    (void)format;
  925. +
  926.      int i;
  927.      const float *src;
  928.      Uint16 *dst;
  929. @@ -1886,6 +2040,8 @@
  930.  static void SDLCALL
  931.  SDL_Convert_F32LSB_to_S16MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  932.  {
  933. +    (void)format;
  934. +
  935.      int i;
  936.      const float *src;
  937.      Sint16 *dst;
  938. @@ -1910,6 +2066,8 @@
  939.  static void SDLCALL
  940.  SDL_Convert_F32LSB_to_S32LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  941.  {
  942. +    (void)format;
  943. +
  944.      int i;
  945.      const float *src;
  946.      Sint32 *dst;
  947. @@ -1933,6 +2091,8 @@
  948.  static void SDLCALL
  949.  SDL_Convert_F32LSB_to_S32MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  950.  {
  951. +    (void)format;
  952. +
  953.      int i;
  954.      const float *src;
  955.      Sint32 *dst;
  956. @@ -1956,6 +2116,8 @@
  957.  static void SDLCALL
  958.  SDL_Convert_F32LSB_to_F32MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  959.  {
  960. +    (void)format;
  961. +
  962.      int i;
  963.      const float *src;
  964.      float *dst;
  965. @@ -1979,6 +2141,8 @@
  966.  static void SDLCALL
  967.  SDL_Convert_F32MSB_to_U8(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  968.  {
  969. +    (void)format;
  970. +
  971.      int i;
  972.      const float *src;
  973.      Uint8 *dst;
  974. @@ -2003,6 +2167,8 @@
  975.  static void SDLCALL
  976.  SDL_Convert_F32MSB_to_S8(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  977.  {
  978. +    (void)format;
  979. +
  980.      int i;
  981.      const float *src;
  982.      Sint8 *dst;
  983. @@ -2027,6 +2193,8 @@
  984.  static void SDLCALL
  985.  SDL_Convert_F32MSB_to_U16LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  986.  {
  987. +    (void)format;
  988. +
  989.      int i;
  990.      const float *src;
  991.      Uint16 *dst;
  992. @@ -2051,6 +2219,8 @@
  993.  static void SDLCALL
  994.  SDL_Convert_F32MSB_to_S16LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  995.  {
  996. +    (void)format;
  997. +
  998.      int i;
  999.      const float *src;
  1000.      Sint16 *dst;
  1001. @@ -2075,6 +2245,8 @@
  1002.  static void SDLCALL
  1003.  SDL_Convert_F32MSB_to_U16MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  1004.  {
  1005. +    (void)format;
  1006. +
  1007.      int i;
  1008.      const float *src;
  1009.      Uint16 *dst;
  1010. @@ -2099,6 +2271,8 @@
  1011.  static void SDLCALL
  1012.  SDL_Convert_F32MSB_to_S16MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  1013.  {
  1014. +    (void)format;
  1015. +
  1016.      int i;
  1017.      const float *src;
  1018.      Sint16 *dst;
  1019. @@ -2123,6 +2297,8 @@
  1020.  static void SDLCALL
  1021.  SDL_Convert_F32MSB_to_S32LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  1022.  {
  1023. +    (void)format;
  1024. +
  1025.      int i;
  1026.      const float *src;
  1027.      Sint32 *dst;
  1028. @@ -2146,6 +2322,8 @@
  1029.  static void SDLCALL
  1030.  SDL_Convert_F32MSB_to_S32MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  1031.  {
  1032. +    (void)format;
  1033. +
  1034.      int i;
  1035.      const float *src;
  1036.      Sint32 *dst;
  1037. @@ -2169,6 +2347,8 @@
  1038.  static void SDLCALL
  1039.  SDL_Convert_F32MSB_to_F32LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  1040.  {
  1041. +    (void)format;
  1042. +
  1043.      int i;
  1044.      const float *src;
  1045.      float *dst;
  1046. @@ -2299,6 +2479,8 @@
  1047.      fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_U8, 1 channels.\n", cvt->rate_incr);
  1048.  #endif
  1049.  
  1050. +    (void)format;
  1051. +
  1052.      const int srcsize = cvt->len_cvt - 16;
  1053.      const int dstsize = (int) (((double)(cvt->len_cvt/1)) * cvt->rate_incr) * 1;
  1054.      register int eps = 0;
  1055. @@ -2331,6 +2513,8 @@
  1056.      fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_U8, 1 channels.\n", cvt->rate_incr);
  1057.  #endif
  1058.  
  1059. +    (void)format;
  1060. +
  1061.      const int srcsize = cvt->len_cvt - 16;
  1062.      const int dstsize = (int) (((double)(cvt->len_cvt/1)) * cvt->rate_incr) * 1;
  1063.      register int eps = 0;
  1064. @@ -2363,6 +2547,8 @@
  1065.      fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_U8, 2 channels.\n", cvt->rate_incr);
  1066.  #endif
  1067.  
  1068. +    (void)format;
  1069. +
  1070.      const int srcsize = cvt->len_cvt - 32;
  1071.      const int dstsize = (int) (((double)(cvt->len_cvt/2)) * cvt->rate_incr) * 2;
  1072.      register int eps = 0;
  1073. @@ -2400,6 +2586,8 @@
  1074.      fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_U8, 2 channels.\n", cvt->rate_incr);
  1075.  #endif
  1076.  
  1077. +    (void)format;
  1078. +
  1079.      const int srcsize = cvt->len_cvt - 32;
  1080.      const int dstsize = (int) (((double)(cvt->len_cvt/2)) * cvt->rate_incr) * 2;
  1081.      register int eps = 0;
  1082. @@ -2437,6 +2625,8 @@
  1083.      fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_U8, 4 channels.\n", cvt->rate_incr);
  1084.  #endif
  1085.  
  1086. +    (void)format;
  1087. +
  1088.      const int srcsize = cvt->len_cvt - 64;
  1089.      const int dstsize = (int) (((double)(cvt->len_cvt/4)) * cvt->rate_incr) * 4;
  1090.      register int eps = 0;
  1091. @@ -2484,6 +2674,8 @@
  1092.      fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_U8, 4 channels.\n", cvt->rate_incr);
  1093.  #endif
  1094.  
  1095. +    (void)format;
  1096. +
  1097.      const int srcsize = cvt->len_cvt - 64;
  1098.      const int dstsize = (int) (((double)(cvt->len_cvt/4)) * cvt->rate_incr) * 4;
  1099.      register int eps = 0;
  1100. @@ -2531,6 +2723,8 @@
  1101.      fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_U8, 6 channels.\n", cvt->rate_incr);
  1102.  #endif
  1103.  
  1104. +    (void)format;
  1105. +
  1106.      const int srcsize = cvt->len_cvt - 96;
  1107.      const int dstsize = (int) (((double)(cvt->len_cvt/6)) * cvt->rate_incr) * 6;
  1108.      register int eps = 0;
  1109. @@ -2588,6 +2782,8 @@
  1110.      fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_U8, 6 channels.\n", cvt->rate_incr);
  1111.  #endif
  1112.  
  1113. +    (void)format;
  1114. +
  1115.      const int srcsize = cvt->len_cvt - 96;
  1116.      const int dstsize = (int) (((double)(cvt->len_cvt/6)) * cvt->rate_incr) * 6;
  1117.      register int eps = 0;
  1118. @@ -2645,6 +2841,8 @@
  1119.      fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_U8, 8 channels.\n", cvt->rate_incr);
  1120.  #endif
  1121.  
  1122. +    (void)format;
  1123. +
  1124.      const int srcsize = cvt->len_cvt - 128;
  1125.      const int dstsize = (int) (((double)(cvt->len_cvt/8)) * cvt->rate_incr) * 8;
  1126.      register int eps = 0;
  1127. @@ -2712,6 +2910,8 @@
  1128.      fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_U8, 8 channels.\n", cvt->rate_incr);
  1129.  #endif
  1130.  
  1131. +    (void)format;
  1132. +
  1133.      const int srcsize = cvt->len_cvt - 128;
  1134.      const int dstsize = (int) (((double)(cvt->len_cvt/8)) * cvt->rate_incr) * 8;
  1135.      register int eps = 0;
  1136. @@ -2779,6 +2979,8 @@
  1137.      fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S8, 1 channels.\n", cvt->rate_incr);
  1138.  #endif
  1139.  
  1140. +    (void)format;
  1141. +
  1142.      const int srcsize = cvt->len_cvt - 16;
  1143.      const int dstsize = (int) (((double)(cvt->len_cvt/1)) * cvt->rate_incr) * 1;
  1144.      register int eps = 0;
  1145. @@ -2811,6 +3013,8 @@
  1146.      fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S8, 1 channels.\n", cvt->rate_incr);
  1147.  #endif
  1148.  
  1149. +    (void)format;
  1150. +
  1151.      const int srcsize = cvt->len_cvt - 16;
  1152.      const int dstsize = (int) (((double)(cvt->len_cvt/1)) * cvt->rate_incr) * 1;
  1153.      register int eps = 0;
  1154. @@ -2843,6 +3047,8 @@
  1155.      fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S8, 2 channels.\n", cvt->rate_incr);
  1156.  #endif
  1157.  
  1158. +    (void)format;
  1159. +
  1160.      const int srcsize = cvt->len_cvt - 32;
  1161.      const int dstsize = (int) (((double)(cvt->len_cvt/2)) * cvt->rate_incr) * 2;
  1162.      register int eps = 0;
  1163. @@ -2880,6 +3086,8 @@
  1164.      fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S8, 2 channels.\n", cvt->rate_incr);
  1165.  #endif
  1166.  
  1167. +    (void)format;
  1168. +
  1169.      const int srcsize = cvt->len_cvt - 32;
  1170.      const int dstsize = (int) (((double)(cvt->len_cvt/2)) * cvt->rate_incr) * 2;
  1171.      register int eps = 0;
  1172. @@ -2917,6 +3125,8 @@
  1173.      fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S8, 4 channels.\n", cvt->rate_incr);
  1174.  #endif
  1175.  
  1176. +    (void)format;
  1177. +
  1178.      const int srcsize = cvt->len_cvt - 64;
  1179.      const int dstsize = (int) (((double)(cvt->len_cvt/4)) * cvt->rate_incr) * 4;
  1180.      register int eps = 0;
  1181. @@ -2964,6 +3174,8 @@
  1182.      fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S8, 4 channels.\n", cvt->rate_incr);
  1183.  #endif
  1184.  
  1185. +    (void)format;
  1186. +
  1187.      const int srcsize = cvt->len_cvt - 64;
  1188.      const int dstsize = (int) (((double)(cvt->len_cvt/4)) * cvt->rate_incr) * 4;
  1189.      register int eps = 0;
  1190. @@ -3011,6 +3223,8 @@
  1191.      fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S8, 6 channels.\n", cvt->rate_incr);
  1192.  #endif
  1193.  
  1194. +    (void)format;
  1195. +
  1196.      const int srcsize = cvt->len_cvt - 96;
  1197.      const int dstsize = (int) (((double)(cvt->len_cvt/6)) * cvt->rate_incr) * 6;
  1198.      register int eps = 0;
  1199. @@ -3068,6 +3282,8 @@
  1200.      fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S8, 6 channels.\n", cvt->rate_incr);
  1201.  #endif
  1202.  
  1203. +    (void)format;
  1204. +
  1205.      const int srcsize = cvt->len_cvt - 96;
  1206.      const int dstsize = (int) (((double)(cvt->len_cvt/6)) * cvt->rate_incr) * 6;
  1207.      register int eps = 0;
  1208. @@ -3125,6 +3341,8 @@
  1209.      fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S8, 8 channels.\n", cvt->rate_incr);
  1210.  #endif
  1211.  
  1212. +    (void)format;
  1213. +
  1214.      const int srcsize = cvt->len_cvt - 128;
  1215.      const int dstsize = (int) (((double)(cvt->len_cvt/8)) * cvt->rate_incr) * 8;
  1216.      register int eps = 0;
  1217. @@ -3192,6 +3410,8 @@
  1218.      fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S8, 8 channels.\n", cvt->rate_incr);
  1219.  #endif
  1220.  
  1221. +    (void)format;
  1222. +
  1223.      const int srcsize = cvt->len_cvt - 128;
  1224.      const int dstsize = (int) (((double)(cvt->len_cvt/8)) * cvt->rate_incr) * 8;
  1225.      register int eps = 0;
  1226. @@ -3259,6 +3479,8 @@
  1227.      fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_U16LSB, 1 channels.\n", cvt->rate_incr);
  1228.  #endif
  1229.  
  1230. +    (void)format;
  1231. +
  1232.      const int srcsize = cvt->len_cvt - 32;
  1233.      const int dstsize = (int) (((double)(cvt->len_cvt/2)) * cvt->rate_incr) * 2;
  1234.      register int eps = 0;
  1235. @@ -3291,6 +3513,8 @@
  1236.      fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_U16LSB, 1 channels.\n", cvt->rate_incr);
  1237.  #endif
  1238.  
  1239. +    (void)format;
  1240. +
  1241.      const int srcsize = cvt->len_cvt - 32;
  1242.      const int dstsize = (int) (((double)(cvt->len_cvt/2)) * cvt->rate_incr) * 2;
  1243.      register int eps = 0;
  1244. @@ -3323,6 +3547,8 @@
  1245.      fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_U16LSB, 2 channels.\n", cvt->rate_incr);
  1246.  #endif
  1247.  
  1248. +    (void)format;
  1249. +
  1250.      const int srcsize = cvt->len_cvt - 64;
  1251.      const int dstsize = (int) (((double)(cvt->len_cvt/4)) * cvt->rate_incr) * 4;
  1252.      register int eps = 0;
  1253. @@ -3360,6 +3586,8 @@
  1254.      fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_U16LSB, 2 channels.\n", cvt->rate_incr);
  1255.  #endif
  1256.  
  1257. +    (void)format;
  1258. +
  1259.      const int srcsize = cvt->len_cvt - 64;
  1260.      const int dstsize = (int) (((double)(cvt->len_cvt/4)) * cvt->rate_incr) * 4;
  1261.      register int eps = 0;
  1262. @@ -3397,6 +3625,8 @@
  1263.      fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_U16LSB, 4 channels.\n", cvt->rate_incr);
  1264.  #endif
  1265.  
  1266. +    (void)format;
  1267. +
  1268.      const int srcsize = cvt->len_cvt - 128;
  1269.      const int dstsize = (int) (((double)(cvt->len_cvt/8)) * cvt->rate_incr) * 8;
  1270.      register int eps = 0;
  1271. @@ -3444,6 +3674,8 @@
  1272.      fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_U16LSB, 4 channels.\n", cvt->rate_incr);
  1273.  #endif
  1274.  
  1275. +    (void)format;
  1276. +
  1277.      const int srcsize = cvt->len_cvt - 128;
  1278.      const int dstsize = (int) (((double)(cvt->len_cvt/8)) * cvt->rate_incr) * 8;
  1279.      register int eps = 0;
  1280. @@ -3491,6 +3723,8 @@
  1281.      fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_U16LSB, 6 channels.\n", cvt->rate_incr);
  1282.  #endif
  1283.  
  1284. +    (void)format;
  1285. +
  1286.      const int srcsize = cvt->len_cvt - 192;
  1287.      const int dstsize = (int) (((double)(cvt->len_cvt/12)) * cvt->rate_incr) * 12;
  1288.      register int eps = 0;
  1289. @@ -3548,6 +3782,8 @@
  1290.      fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_U16LSB, 6 channels.\n", cvt->rate_incr);
  1291.  #endif
  1292.  
  1293. +    (void)format;
  1294. +
  1295.      const int srcsize = cvt->len_cvt - 192;
  1296.      const int dstsize = (int) (((double)(cvt->len_cvt/12)) * cvt->rate_incr) * 12;
  1297.      register int eps = 0;
  1298. @@ -3605,6 +3841,8 @@
  1299.      fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_U16LSB, 8 channels.\n", cvt->rate_incr);
  1300.  #endif
  1301.  
  1302. +    (void)format;
  1303. +
  1304.      const int srcsize = cvt->len_cvt - 256;
  1305.      const int dstsize = (int) (((double)(cvt->len_cvt/16)) * cvt->rate_incr) * 16;
  1306.      register int eps = 0;
  1307. @@ -3672,6 +3910,8 @@
  1308.      fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_U16LSB, 8 channels.\n", cvt->rate_incr);
  1309.  #endif
  1310.  
  1311. +    (void)format;
  1312. +
  1313.      const int srcsize = cvt->len_cvt - 256;
  1314.      const int dstsize = (int) (((double)(cvt->len_cvt/16)) * cvt->rate_incr) * 16;
  1315.      register int eps = 0;
  1316. @@ -3739,6 +3979,8 @@
  1317.      fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S16LSB, 1 channels.\n", cvt->rate_incr);
  1318.  #endif
  1319.  
  1320. +    (void)format;
  1321. +
  1322.      const int srcsize = cvt->len_cvt - 32;
  1323.      const int dstsize = (int) (((double)(cvt->len_cvt/2)) * cvt->rate_incr) * 2;
  1324.      register int eps = 0;
  1325. @@ -3771,6 +4013,8 @@
  1326.      fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S16LSB, 1 channels.\n", cvt->rate_incr);
  1327.  #endif
  1328.  
  1329. +    (void)format;
  1330. +
  1331.      const int srcsize = cvt->len_cvt - 32;
  1332.      const int dstsize = (int) (((double)(cvt->len_cvt/2)) * cvt->rate_incr) * 2;
  1333.      register int eps = 0;
  1334. @@ -3803,6 +4047,8 @@
  1335.      fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S16LSB, 2 channels.\n", cvt->rate_incr);
  1336.  #endif
  1337.  
  1338. +    (void)format;
  1339. +
  1340.      const int srcsize = cvt->len_cvt - 64;
  1341.      const int dstsize = (int) (((double)(cvt->len_cvt/4)) * cvt->rate_incr) * 4;
  1342.      register int eps = 0;
  1343. @@ -3840,6 +4086,8 @@
  1344.      fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S16LSB, 2 channels.\n", cvt->rate_incr);
  1345.  #endif
  1346.  
  1347. +    (void)format;
  1348. +
  1349.      const int srcsize = cvt->len_cvt - 64;
  1350.      const int dstsize = (int) (((double)(cvt->len_cvt/4)) * cvt->rate_incr) * 4;
  1351.      register int eps = 0;
  1352. @@ -3877,6 +4125,8 @@
  1353.      fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S16LSB, 4 channels.\n", cvt->rate_incr);
  1354.  #endif
  1355.  
  1356. +    (void)format;
  1357. +
  1358.      const int srcsize = cvt->len_cvt - 128;
  1359.      const int dstsize = (int) (((double)(cvt->len_cvt/8)) * cvt->rate_incr) * 8;
  1360.      register int eps = 0;
  1361. @@ -3924,6 +4174,8 @@
  1362.      fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S16LSB, 4 channels.\n", cvt->rate_incr);
  1363.  #endif
  1364.  
  1365. +    (void)format;
  1366. +
  1367.      const int srcsize = cvt->len_cvt - 128;
  1368.      const int dstsize = (int) (((double)(cvt->len_cvt/8)) * cvt->rate_incr) * 8;
  1369.      register int eps = 0;
  1370. @@ -3971,6 +4223,8 @@
  1371.      fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S16LSB, 6 channels.\n", cvt->rate_incr);
  1372.  #endif
  1373.  
  1374. +    (void)format;
  1375. +
  1376.      const int srcsize = cvt->len_cvt - 192;
  1377.      const int dstsize = (int) (((double)(cvt->len_cvt/12)) * cvt->rate_incr) * 12;
  1378.      register int eps = 0;
  1379. @@ -4028,6 +4282,8 @@
  1380.      fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S16LSB, 6 channels.\n", cvt->rate_incr);
  1381.  #endif
  1382.  
  1383. +    (void)format;
  1384. +
  1385.      const int srcsize = cvt->len_cvt - 192;
  1386.      const int dstsize = (int) (((double)(cvt->len_cvt/12)) * cvt->rate_incr) * 12;
  1387.      register int eps = 0;
  1388. @@ -4085,6 +4341,8 @@
  1389.      fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S16LSB, 8 channels.\n", cvt->rate_incr);
  1390.  #endif
  1391.  
  1392. +    (void)format;
  1393. +
  1394.      const int srcsize = cvt->len_cvt - 256;
  1395.      const int dstsize = (int) (((double)(cvt->len_cvt/16)) * cvt->rate_incr) * 16;
  1396.      register int eps = 0;
  1397. @@ -4152,6 +4410,8 @@
  1398.      fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S16LSB, 8 channels.\n", cvt->rate_incr);
  1399.  #endif
  1400.  
  1401. +    (void)format;
  1402. +
  1403.      const int srcsize = cvt->len_cvt - 256;
  1404.      const int dstsize = (int) (((double)(cvt->len_cvt/16)) * cvt->rate_incr) * 16;
  1405.      register int eps = 0;
  1406. @@ -4219,6 +4479,8 @@
  1407.      fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_U16MSB, 1 channels.\n", cvt->rate_incr);
  1408.  #endif
  1409.  
  1410. +    (void)format;
  1411. +
  1412.      const int srcsize = cvt->len_cvt - 32;
  1413.      const int dstsize = (int) (((double)(cvt->len_cvt/2)) * cvt->rate_incr) * 2;
  1414.      register int eps = 0;
  1415. @@ -4251,6 +4513,8 @@
  1416.      fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_U16MSB, 1 channels.\n", cvt->rate_incr);
  1417.  #endif
  1418.  
  1419. +    (void)format;
  1420. +
  1421.      const int srcsize = cvt->len_cvt - 32;
  1422.      const int dstsize = (int) (((double)(cvt->len_cvt/2)) * cvt->rate_incr) * 2;
  1423.      register int eps = 0;
  1424. @@ -4283,6 +4547,8 @@
  1425.      fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_U16MSB, 2 channels.\n", cvt->rate_incr);
  1426.  #endif
  1427.  
  1428. +    (void)format;
  1429. +
  1430.      const int srcsize = cvt->len_cvt - 64;
  1431.      const int dstsize = (int) (((double)(cvt->len_cvt/4)) * cvt->rate_incr) * 4;
  1432.      register int eps = 0;
  1433. @@ -4320,6 +4586,8 @@
  1434.      fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_U16MSB, 2 channels.\n", cvt->rate_incr);
  1435.  #endif
  1436.  
  1437. +    (void)format;
  1438. +
  1439.      const int srcsize = cvt->len_cvt - 64;
  1440.      const int dstsize = (int) (((double)(cvt->len_cvt/4)) * cvt->rate_incr) * 4;
  1441.      register int eps = 0;
  1442. @@ -4357,6 +4625,8 @@
  1443.      fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_U16MSB, 4 channels.\n", cvt->rate_incr);
  1444.  #endif
  1445.  
  1446. +    (void)format;
  1447. +
  1448.      const int srcsize = cvt->len_cvt - 128;
  1449.      const int dstsize = (int) (((double)(cvt->len_cvt/8)) * cvt->rate_incr) * 8;
  1450.      register int eps = 0;
  1451. @@ -4404,6 +4674,8 @@
  1452.      fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_U16MSB, 4 channels.\n", cvt->rate_incr);
  1453.  #endif
  1454.  
  1455. +    (void)format;
  1456. +
  1457.      const int srcsize = cvt->len_cvt - 128;
  1458.      const int dstsize = (int) (((double)(cvt->len_cvt/8)) * cvt->rate_incr) * 8;
  1459.      register int eps = 0;
  1460. @@ -4451,6 +4723,8 @@
  1461.      fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_U16MSB, 6 channels.\n", cvt->rate_incr);
  1462.  #endif
  1463.  
  1464. +    (void)format;
  1465. +
  1466.      const int srcsize = cvt->len_cvt - 192;
  1467.      const int dstsize = (int) (((double)(cvt->len_cvt/12)) * cvt->rate_incr) * 12;
  1468.      register int eps = 0;
  1469. @@ -4508,6 +4782,8 @@
  1470.      fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_U16MSB, 6 channels.\n", cvt->rate_incr);
  1471.  #endif
  1472.  
  1473. +    (void)format;
  1474. +
  1475.      const int srcsize = cvt->len_cvt - 192;
  1476.      const int dstsize = (int) (((double)(cvt->len_cvt/12)) * cvt->rate_incr) * 12;
  1477.      register int eps = 0;
  1478. @@ -4565,6 +4841,8 @@
  1479.      fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_U16MSB, 8 channels.\n", cvt->rate_incr);
  1480.  #endif
  1481.  
  1482. +    (void)format;
  1483. +
  1484.      const int srcsize = cvt->len_cvt - 256;
  1485.      const int dstsize = (int) (((double)(cvt->len_cvt/16)) * cvt->rate_incr) * 16;
  1486.      register int eps = 0;
  1487. @@ -4632,6 +4910,8 @@
  1488.      fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_U16MSB, 8 channels.\n", cvt->rate_incr);
  1489.  #endif
  1490.  
  1491. +    (void)format;
  1492. +
  1493.      const int srcsize = cvt->len_cvt - 256;
  1494.      const int dstsize = (int) (((double)(cvt->len_cvt/16)) * cvt->rate_incr) * 16;
  1495.      register int eps = 0;
  1496. @@ -4699,6 +4979,8 @@
  1497.      fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S16MSB, 1 channels.\n", cvt->rate_incr);
  1498.  #endif
  1499.  
  1500. +    (void)format;
  1501. +
  1502.      const int srcsize = cvt->len_cvt - 32;
  1503.      const int dstsize = (int) (((double)(cvt->len_cvt/2)) * cvt->rate_incr) * 2;
  1504.      register int eps = 0;
  1505. @@ -4731,6 +5013,8 @@
  1506.      fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S16MSB, 1 channels.\n", cvt->rate_incr);
  1507.  #endif
  1508.  
  1509. +    (void)format;
  1510. +
  1511.      const int srcsize = cvt->len_cvt - 32;
  1512.      const int dstsize = (int) (((double)(cvt->len_cvt/2)) * cvt->rate_incr) * 2;
  1513.      register int eps = 0;
  1514. @@ -4763,6 +5047,8 @@
  1515.      fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S16MSB, 2 channels.\n", cvt->rate_incr);
  1516.  #endif
  1517.  
  1518. +    (void)format;
  1519. +
  1520.      const int srcsize = cvt->len_cvt - 64;
  1521.      const int dstsize = (int) (((double)(cvt->len_cvt/4)) * cvt->rate_incr) * 4;
  1522.      register int eps = 0;
  1523. @@ -4800,6 +5086,8 @@
  1524.      fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S16MSB, 2 channels.\n", cvt->rate_incr);
  1525.  #endif
  1526.  
  1527. +    (void)format;
  1528. +
  1529.      const int srcsize = cvt->len_cvt - 64;
  1530.      const int dstsize = (int) (((double)(cvt->len_cvt/4)) * cvt->rate_incr) * 4;
  1531.      register int eps = 0;
  1532. @@ -4837,6 +5125,8 @@
  1533.      fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S16MSB, 4 channels.\n", cvt->rate_incr);
  1534.  #endif
  1535.  
  1536. +    (void)format;
  1537. +
  1538.      const int srcsize = cvt->len_cvt - 128;
  1539.      const int dstsize = (int) (((double)(cvt->len_cvt/8)) * cvt->rate_incr) * 8;
  1540.      register int eps = 0;
  1541. @@ -4884,6 +5174,8 @@
  1542.      fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S16MSB, 4 channels.\n", cvt->rate_incr);
  1543.  #endif
  1544.  
  1545. +    (void)format;
  1546. +
  1547.      const int srcsize = cvt->len_cvt - 128;
  1548.      const int dstsize = (int) (((double)(cvt->len_cvt/8)) * cvt->rate_incr) * 8;
  1549.      register int eps = 0;
  1550. @@ -4931,6 +5223,8 @@
  1551.      fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S16MSB, 6 channels.\n", cvt->rate_incr);
  1552.  #endif
  1553.  
  1554. +    (void)format;
  1555. +
  1556.      const int srcsize = cvt->len_cvt - 192;
  1557.      const int dstsize = (int) (((double)(cvt->len_cvt/12)) * cvt->rate_incr) * 12;
  1558.      register int eps = 0;
  1559. @@ -4988,6 +5282,8 @@
  1560.      fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S16MSB, 6 channels.\n", cvt->rate_incr);
  1561.  #endif
  1562.  
  1563. +    (void)format;
  1564. +
  1565.      const int srcsize = cvt->len_cvt - 192;
  1566.      const int dstsize = (int) (((double)(cvt->len_cvt/12)) * cvt->rate_incr) * 12;
  1567.      register int eps = 0;
  1568. @@ -5045,6 +5341,8 @@
  1569.      fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S16MSB, 8 channels.\n", cvt->rate_incr);
  1570.  #endif
  1571.  
  1572. +    (void)format;
  1573. +
  1574.      const int srcsize = cvt->len_cvt - 256;
  1575.      const int dstsize = (int) (((double)(cvt->len_cvt/16)) * cvt->rate_incr) * 16;
  1576.      register int eps = 0;
  1577. @@ -5112,6 +5410,8 @@
  1578.      fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S16MSB, 8 channels.\n", cvt->rate_incr);
  1579.  #endif
  1580.  
  1581. +    (void)format;
  1582. +
  1583.      const int srcsize = cvt->len_cvt - 256;
  1584.      const int dstsize = (int) (((double)(cvt->len_cvt/16)) * cvt->rate_incr) * 16;
  1585.      register int eps = 0;
  1586. @@ -5179,6 +5479,8 @@
  1587.      fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S32LSB, 1 channels.\n", cvt->rate_incr);
  1588.  #endif
  1589.  
  1590. +    (void)format;
  1591. +
  1592.      const int srcsize = cvt->len_cvt - 64;
  1593.      const int dstsize = (int) (((double)(cvt->len_cvt/4)) * cvt->rate_incr) * 4;
  1594.      register int eps = 0;
  1595. @@ -5211,6 +5513,8 @@
  1596.      fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S32LSB, 1 channels.\n", cvt->rate_incr);
  1597.  #endif
  1598.  
  1599. +    (void)format;
  1600. +
  1601.      const int srcsize = cvt->len_cvt - 64;
  1602.      const int dstsize = (int) (((double)(cvt->len_cvt/4)) * cvt->rate_incr) * 4;
  1603.      register int eps = 0;
  1604. @@ -5243,6 +5547,8 @@
  1605.      fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S32LSB, 2 channels.\n", cvt->rate_incr);
  1606.  #endif
  1607.  
  1608. +    (void)format;
  1609. +
  1610.      const int srcsize = cvt->len_cvt - 128;
  1611.      const int dstsize = (int) (((double)(cvt->len_cvt/8)) * cvt->rate_incr) * 8;
  1612.      register int eps = 0;
  1613. @@ -5280,6 +5586,8 @@
  1614.      fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S32LSB, 2 channels.\n", cvt->rate_incr);
  1615.  #endif
  1616.  
  1617. +    (void)format;
  1618. +
  1619.      const int srcsize = cvt->len_cvt - 128;
  1620.      const int dstsize = (int) (((double)(cvt->len_cvt/8)) * cvt->rate_incr) * 8;
  1621.      register int eps = 0;
  1622. @@ -5317,6 +5625,8 @@
  1623.      fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S32LSB, 4 channels.\n", cvt->rate_incr);
  1624.  #endif
  1625.  
  1626. +    (void)format;
  1627. +
  1628.      const int srcsize = cvt->len_cvt - 256;
  1629.      const int dstsize = (int) (((double)(cvt->len_cvt/16)) * cvt->rate_incr) * 16;
  1630.      register int eps = 0;
  1631. @@ -5364,6 +5674,8 @@
  1632.      fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S32LSB, 4 channels.\n", cvt->rate_incr);
  1633.  #endif
  1634.  
  1635. +    (void)format;
  1636. +
  1637.      const int srcsize = cvt->len_cvt - 256;
  1638.      const int dstsize = (int) (((double)(cvt->len_cvt/16)) * cvt->rate_incr) * 16;
  1639.      register int eps = 0;
  1640. @@ -5411,6 +5723,8 @@
  1641.      fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S32LSB, 6 channels.\n", cvt->rate_incr);
  1642.  #endif
  1643.  
  1644. +    (void)format;
  1645. +
  1646.      const int srcsize = cvt->len_cvt - 384;
  1647.      const int dstsize = (int) (((double)(cvt->len_cvt/24)) * cvt->rate_incr) * 24;
  1648.      register int eps = 0;
  1649. @@ -5468,6 +5782,8 @@
  1650.      fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S32LSB, 6 channels.\n", cvt->rate_incr);
  1651.  #endif
  1652.  
  1653. +    (void)format;
  1654. +
  1655.      const int srcsize = cvt->len_cvt - 384;
  1656.      const int dstsize = (int) (((double)(cvt->len_cvt/24)) * cvt->rate_incr) * 24;
  1657.      register int eps = 0;
  1658. @@ -5525,6 +5841,8 @@
  1659.      fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S32LSB, 8 channels.\n", cvt->rate_incr);
  1660.  #endif
  1661.  
  1662. +    (void)format;
  1663. +
  1664.      const int srcsize = cvt->len_cvt - 512;
  1665.      const int dstsize = (int) (((double)(cvt->len_cvt/32)) * cvt->rate_incr) * 32;
  1666.      register int eps = 0;
  1667. @@ -5592,6 +5910,8 @@
  1668.      fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S32LSB, 8 channels.\n", cvt->rate_incr);
  1669.  #endif
  1670.  
  1671. +    (void)format;
  1672. +
  1673.      const int srcsize = cvt->len_cvt - 512;
  1674.      const int dstsize = (int) (((double)(cvt->len_cvt/32)) * cvt->rate_incr) * 32;
  1675.      register int eps = 0;
  1676. @@ -5659,6 +5979,8 @@
  1677.      fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S32MSB, 1 channels.\n", cvt->rate_incr);
  1678.  #endif
  1679.  
  1680. +    (void)format;
  1681. +
  1682.      const int srcsize = cvt->len_cvt - 64;
  1683.      const int dstsize = (int) (((double)(cvt->len_cvt/4)) * cvt->rate_incr) * 4;
  1684.      register int eps = 0;
  1685. @@ -5691,6 +6013,8 @@
  1686.      fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S32MSB, 1 channels.\n", cvt->rate_incr);
  1687.  #endif
  1688.  
  1689. +    (void)format;
  1690. +
  1691.      const int srcsize = cvt->len_cvt - 64;
  1692.      const int dstsize = (int) (((double)(cvt->len_cvt/4)) * cvt->rate_incr) * 4;
  1693.      register int eps = 0;
  1694. @@ -5723,6 +6047,8 @@
  1695.      fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S32MSB, 2 channels.\n", cvt->rate_incr);
  1696.  #endif
  1697.  
  1698. +    (void)format;
  1699. +
  1700.      const int srcsize = cvt->len_cvt - 128;
  1701.      const int dstsize = (int) (((double)(cvt->len_cvt/8)) * cvt->rate_incr) * 8;
  1702.      register int eps = 0;
  1703. @@ -5760,6 +6086,8 @@
  1704.      fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S32MSB, 2 channels.\n", cvt->rate_incr);
  1705.  #endif
  1706.  
  1707. +    (void)format;
  1708. +
  1709.      const int srcsize = cvt->len_cvt - 128;
  1710.      const int dstsize = (int) (((double)(cvt->len_cvt/8)) * cvt->rate_incr) * 8;
  1711.      register int eps = 0;
  1712. @@ -5797,6 +6125,8 @@
  1713.      fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S32MSB, 4 channels.\n", cvt->rate_incr);
  1714.  #endif
  1715.  
  1716. +    (void)format;
  1717. +
  1718.      const int srcsize = cvt->len_cvt - 256;
  1719.      const int dstsize = (int) (((double)(cvt->len_cvt/16)) * cvt->rate_incr) * 16;
  1720.      register int eps = 0;
  1721. @@ -5844,6 +6174,8 @@
  1722.      fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S32MSB, 4 channels.\n", cvt->rate_incr);
  1723.  #endif
  1724.  
  1725. +    (void)format;
  1726. +
  1727.      const int srcsize = cvt->len_cvt - 256;
  1728.      const int dstsize = (int) (((double)(cvt->len_cvt/16)) * cvt->rate_incr) * 16;
  1729.      register int eps = 0;
  1730. @@ -5891,6 +6223,8 @@
  1731.      fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S32MSB, 6 channels.\n", cvt->rate_incr);
  1732.  #endif
  1733.  
  1734. +    (void)format;
  1735. +
  1736.      const int srcsize = cvt->len_cvt - 384;
  1737.      const int dstsize = (int) (((double)(cvt->len_cvt/24)) * cvt->rate_incr) * 24;
  1738.      register int eps = 0;
  1739. @@ -5948,6 +6282,8 @@
  1740.      fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S32MSB, 6 channels.\n", cvt->rate_incr);
  1741.  #endif
  1742.  
  1743. +    (void)format;
  1744. +
  1745.      const int srcsize = cvt->len_cvt - 384;
  1746.      const int dstsize = (int) (((double)(cvt->len_cvt/24)) * cvt->rate_incr) * 24;
  1747.      register int eps = 0;
  1748. @@ -6005,6 +6341,8 @@
  1749.      fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S32MSB, 8 channels.\n", cvt->rate_incr);
  1750.  #endif
  1751.  
  1752. +    (void)format;
  1753. +
  1754.      const int srcsize = cvt->len_cvt - 512;
  1755.      const int dstsize = (int) (((double)(cvt->len_cvt/32)) * cvt->rate_incr) * 32;
  1756.      register int eps = 0;
  1757. @@ -6072,6 +6410,8 @@
  1758.      fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S32MSB, 8 channels.\n", cvt->rate_incr);
  1759.  #endif
  1760.  
  1761. +    (void)format;
  1762. +
  1763.      const int srcsize = cvt->len_cvt - 512;
  1764.      const int dstsize = (int) (((double)(cvt->len_cvt/32)) * cvt->rate_incr) * 32;
  1765.      register int eps = 0;
  1766. @@ -6139,6 +6479,8 @@
  1767.      fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_F32LSB, 1 channels.\n", cvt->rate_incr);
  1768.  #endif
  1769.  
  1770. +    (void)format;
  1771. +
  1772.      const int srcsize = cvt->len_cvt - 64;
  1773.      const int dstsize = (int) (((double)(cvt->len_cvt/4)) * cvt->rate_incr) * 4;
  1774.      register int eps = 0;
  1775. @@ -6171,6 +6513,8 @@
  1776.      fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_F32LSB, 1 channels.\n", cvt->rate_incr);
  1777.  #endif
  1778.  
  1779. +    (void)format;
  1780. +
  1781.      const int srcsize = cvt->len_cvt - 64;
  1782.      const int dstsize = (int) (((double)(cvt->len_cvt/4)) * cvt->rate_incr) * 4;
  1783.      register int eps = 0;
  1784. @@ -6203,6 +6547,8 @@
  1785.      fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_F32LSB, 2 channels.\n", cvt->rate_incr);
  1786.  #endif
  1787.  
  1788. +    (void)format;
  1789. +
  1790.      const int srcsize = cvt->len_cvt - 128;
  1791.      const int dstsize = (int) (((double)(cvt->len_cvt/8)) * cvt->rate_incr) * 8;
  1792.      register int eps = 0;
  1793. @@ -6240,6 +6586,8 @@
  1794.      fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_F32LSB, 2 channels.\n", cvt->rate_incr);
  1795.  #endif
  1796.  
  1797. +    (void)format;
  1798. +
  1799.      const int srcsize = cvt->len_cvt - 128;
  1800.      const int dstsize = (int) (((double)(cvt->len_cvt/8)) * cvt->rate_incr) * 8;
  1801.      register int eps = 0;
  1802. @@ -6277,6 +6625,8 @@
  1803.      fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_F32LSB, 4 channels.\n", cvt->rate_incr);
  1804.  #endif
  1805.  
  1806. +    (void)format;
  1807. +
  1808.      const int srcsize = cvt->len_cvt - 256;
  1809.      const int dstsize = (int) (((double)(cvt->len_cvt/16)) * cvt->rate_incr) * 16;
  1810.      register int eps = 0;
  1811. @@ -6324,6 +6674,8 @@
  1812.      fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_F32LSB, 4 channels.\n", cvt->rate_incr);
  1813.  #endif
  1814.  
  1815. +    (void)format;
  1816. +
  1817.      const int srcsize = cvt->len_cvt - 256;
  1818.      const int dstsize = (int) (((double)(cvt->len_cvt/16)) * cvt->rate_incr) * 16;
  1819.      register int eps = 0;
  1820. @@ -6371,6 +6723,8 @@
  1821.      fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_F32LSB, 6 channels.\n", cvt->rate_incr);
  1822.  #endif
  1823.  
  1824. +    (void)format;
  1825. +
  1826.      const int srcsize = cvt->len_cvt - 384;
  1827.      const int dstsize = (int) (((double)(cvt->len_cvt/24)) * cvt->rate_incr) * 24;
  1828.      register int eps = 0;
  1829. @@ -6428,6 +6782,8 @@
  1830.      fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_F32LSB, 6 channels.\n", cvt->rate_incr);
  1831.  #endif
  1832.  
  1833. +    (void)format;
  1834. +
  1835.      const int srcsize = cvt->len_cvt - 384;
  1836.      const int dstsize = (int) (((double)(cvt->len_cvt/24)) * cvt->rate_incr) * 24;
  1837.      register int eps = 0;
  1838. @@ -6485,6 +6841,8 @@
  1839.      fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_F32LSB, 8 channels.\n", cvt->rate_incr);
  1840.  #endif
  1841.  
  1842. +    (void)format;
  1843. +
  1844.      const int srcsize = cvt->len_cvt - 512;
  1845.      const int dstsize = (int) (((double)(cvt->len_cvt/32)) * cvt->rate_incr) * 32;
  1846.      register int eps = 0;
  1847. @@ -6552,6 +6910,8 @@
  1848.      fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_F32LSB, 8 channels.\n", cvt->rate_incr);
  1849.  #endif
  1850.  
  1851. +    (void)format;
  1852. +
  1853.      const int srcsize = cvt->len_cvt - 512;
  1854.      const int dstsize = (int) (((double)(cvt->len_cvt/32)) * cvt->rate_incr) * 32;
  1855.      register int eps = 0;
  1856. @@ -6619,6 +6979,8 @@
  1857.      fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_F32MSB, 1 channels.\n", cvt->rate_incr);
  1858.  #endif
  1859.  
  1860. +    (void)format;
  1861. +
  1862.      const int srcsize = cvt->len_cvt - 64;
  1863.      const int dstsize = (int) (((double)(cvt->len_cvt/4)) * cvt->rate_incr) * 4;
  1864.      register int eps = 0;
  1865. @@ -6651,6 +7013,8 @@
  1866.      fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_F32MSB, 1 channels.\n", cvt->rate_incr);
  1867.  #endif
  1868.  
  1869. +    (void)format;
  1870. +
  1871.      const int srcsize = cvt->len_cvt - 64;
  1872.      const int dstsize = (int) (((double)(cvt->len_cvt/4)) * cvt->rate_incr) * 4;
  1873.      register int eps = 0;
  1874. @@ -6683,6 +7047,8 @@
  1875.      fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_F32MSB, 2 channels.\n", cvt->rate_incr);
  1876.  #endif
  1877.  
  1878. +    (void)format;
  1879. +
  1880.      const int srcsize = cvt->len_cvt - 128;
  1881.      const int dstsize = (int) (((double)(cvt->len_cvt/8)) * cvt->rate_incr) * 8;
  1882.      register int eps = 0;
  1883. @@ -6720,6 +7086,8 @@
  1884.      fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_F32MSB, 2 channels.\n", cvt->rate_incr);
  1885.  #endif
  1886.  
  1887. +    (void)format;
  1888. +
  1889.      const int srcsize = cvt->len_cvt - 128;
  1890.      const int dstsize = (int) (((double)(cvt->len_cvt/8)) * cvt->rate_incr) * 8;
  1891.      register int eps = 0;
  1892. @@ -6757,6 +7125,8 @@
  1893.      fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_F32MSB, 4 channels.\n", cvt->rate_incr);
  1894.  #endif
  1895.  
  1896. +    (void)format;
  1897. +
  1898.      const int srcsize = cvt->len_cvt - 256;
  1899.      const int dstsize = (int) (((double)(cvt->len_cvt/16)) * cvt->rate_incr) * 16;
  1900.      register int eps = 0;
  1901. @@ -6804,6 +7174,8 @@
  1902.      fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_F32MSB, 4 channels.\n", cvt->rate_incr);
  1903.  #endif
  1904.  
  1905. +    (void)format;
  1906. +
  1907.      const int srcsize = cvt->len_cvt - 256;
  1908.      const int dstsize = (int) (((double)(cvt->len_cvt/16)) * cvt->rate_incr) * 16;
  1909.      register int eps = 0;
  1910. @@ -6851,6 +7223,8 @@
  1911.      fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_F32MSB, 6 channels.\n", cvt->rate_incr);
  1912.  #endif
  1913.  
  1914. +    (void)format;
  1915. +
  1916.      const int srcsize = cvt->len_cvt - 384;
  1917.      const int dstsize = (int) (((double)(cvt->len_cvt/24)) * cvt->rate_incr) * 24;
  1918.      register int eps = 0;
  1919. @@ -6908,6 +7282,8 @@
  1920.      fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_F32MSB, 6 channels.\n", cvt->rate_incr);
  1921.  #endif
  1922.  
  1923. +    (void)format;
  1924. +
  1925.      const int srcsize = cvt->len_cvt - 384;
  1926.      const int dstsize = (int) (((double)(cvt->len_cvt/24)) * cvt->rate_incr) * 24;
  1927.      register int eps = 0;
  1928. @@ -6965,6 +7341,8 @@
  1929.      fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_F32MSB, 8 channels.\n", cvt->rate_incr);
  1930.  #endif
  1931.  
  1932. +    (void)format;
  1933. +
  1934.      const int srcsize = cvt->len_cvt - 512;
  1935.      const int dstsize = (int) (((double)(cvt->len_cvt/32)) * cvt->rate_incr) * 32;
  1936.      register int eps = 0;
  1937. @@ -7032,6 +7410,8 @@
  1938.      fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_F32MSB, 8 channels.\n", cvt->rate_incr);
  1939.  #endif
  1940.  
  1941. +    (void)format;
  1942. +
  1943.      const int srcsize = cvt->len_cvt - 512;
  1944.      const int dstsize = (int) (((double)(cvt->len_cvt/32)) * cvt->rate_incr) * 32;
  1945.      register int eps = 0;
  1946. @@ -7102,6 +7482,8 @@
  1947.      fprintf(stderr, "Upsample (x2) AUDIO_U8, 1 channels.\n");
  1948.  #endif
  1949.  
  1950. +    (void)format;
  1951. +
  1952.      const int dstsize = cvt->len_cvt * 2;
  1953.      Uint8 *dst = ((Uint8 *) (cvt->buf + dstsize)) - 1 * 2;
  1954.      const Uint8 *src = ((Uint8 *) (cvt->buf + cvt->len_cvt)) - 1;
  1955. @@ -7129,6 +7511,8 @@
  1956.      fprintf(stderr, "Downsample (x2) AUDIO_U8, 1 channels.\n");
  1957.  #endif
  1958.  
  1959. +    (void)format;
  1960. +
  1961.      const int dstsize = cvt->len_cvt / 2;
  1962.      Uint8 *dst = (Uint8 *) cvt->buf;
  1963.      const Uint8 *src = (Uint8 *) cvt->buf;
  1964. @@ -7155,6 +7539,8 @@
  1965.      fprintf(stderr, "Upsample (x4) AUDIO_U8, 1 channels.\n");
  1966.  #endif
  1967.  
  1968. +    (void)format;
  1969. +
  1970.      const int dstsize = cvt->len_cvt * 4;
  1971.      Uint8 *dst = ((Uint8 *) (cvt->buf + dstsize)) - 1 * 4;
  1972.      const Uint8 *src = ((Uint8 *) (cvt->buf + cvt->len_cvt)) - 1;
  1973. @@ -7184,6 +7570,8 @@
  1974.      fprintf(stderr, "Downsample (x4) AUDIO_U8, 1 channels.\n");
  1975.  #endif
  1976.  
  1977. +    (void)format;
  1978. +
  1979.      const int dstsize = cvt->len_cvt / 4;
  1980.      Uint8 *dst = (Uint8 *) cvt->buf;
  1981.      const Uint8 *src = (Uint8 *) cvt->buf;
  1982. @@ -7210,6 +7598,8 @@
  1983.      fprintf(stderr, "Upsample (x2) AUDIO_U8, 2 channels.\n");
  1984.  #endif
  1985.  
  1986. +    (void)format;
  1987. +
  1988.      const int dstsize = cvt->len_cvt * 2;
  1989.      Uint8 *dst = ((Uint8 *) (cvt->buf + dstsize)) - 2 * 2;
  1990.      const Uint8 *src = ((Uint8 *) (cvt->buf + cvt->len_cvt)) - 2;
  1991. @@ -7242,6 +7632,8 @@
  1992.      fprintf(stderr, "Downsample (x2) AUDIO_U8, 2 channels.\n");
  1993.  #endif
  1994.  
  1995. +    (void)format;
  1996. +
  1997.      const int dstsize = cvt->len_cvt / 2;
  1998.      Uint8 *dst = (Uint8 *) cvt->buf;
  1999.      const Uint8 *src = (Uint8 *) cvt->buf;
  2000. @@ -7272,6 +7664,8 @@
  2001.      fprintf(stderr, "Upsample (x4) AUDIO_U8, 2 channels.\n");
  2002.  #endif
  2003.  
  2004. +    (void)format;
  2005. +
  2006.      const int dstsize = cvt->len_cvt * 4;
  2007.      Uint8 *dst = ((Uint8 *) (cvt->buf + dstsize)) - 2 * 4;
  2008.      const Uint8 *src = ((Uint8 *) (cvt->buf + cvt->len_cvt)) - 2;
  2009. @@ -7308,6 +7702,8 @@
  2010.      fprintf(stderr, "Downsample (x4) AUDIO_U8, 2 channels.\n");
  2011.  #endif
  2012.  
  2013. +    (void)format;
  2014. +
  2015.      const int dstsize = cvt->len_cvt / 4;
  2016.      Uint8 *dst = (Uint8 *) cvt->buf;
  2017.      const Uint8 *src = (Uint8 *) cvt->buf;
  2018. @@ -7338,6 +7734,8 @@
  2019.      fprintf(stderr, "Upsample (x2) AUDIO_U8, 4 channels.\n");
  2020.  #endif
  2021.  
  2022. +    (void)format;
  2023. +
  2024.      const int dstsize = cvt->len_cvt * 2;
  2025.      Uint8 *dst = ((Uint8 *) (cvt->buf + dstsize)) - 4 * 2;
  2026.      const Uint8 *src = ((Uint8 *) (cvt->buf + cvt->len_cvt)) - 4;
  2027. @@ -7380,6 +7778,8 @@
  2028.      fprintf(stderr, "Downsample (x2) AUDIO_U8, 4 channels.\n");
  2029.  #endif
  2030.  
  2031. +    (void)format;
  2032. +
  2033.      const int dstsize = cvt->len_cvt / 2;
  2034.      Uint8 *dst = (Uint8 *) cvt->buf;
  2035.      const Uint8 *src = (Uint8 *) cvt->buf;
  2036. @@ -7418,6 +7818,8 @@
  2037.      fprintf(stderr, "Upsample (x4) AUDIO_U8, 4 channels.\n");
  2038.  #endif
  2039.  
  2040. +    (void)format;
  2041. +
  2042.      const int dstsize = cvt->len_cvt * 4;
  2043.      Uint8 *dst = ((Uint8 *) (cvt->buf + dstsize)) - 4 * 4;
  2044.      const Uint8 *src = ((Uint8 *) (cvt->buf + cvt->len_cvt)) - 4;
  2045. @@ -7468,6 +7870,8 @@
  2046.      fprintf(stderr, "Downsample (x4) AUDIO_U8, 4 channels.\n");
  2047.  #endif
  2048.  
  2049. +    (void)format;
  2050. +
  2051.      const int dstsize = cvt->len_cvt / 4;
  2052.      Uint8 *dst = (Uint8 *) cvt->buf;
  2053.      const Uint8 *src = (Uint8 *) cvt->buf;
  2054. @@ -7506,6 +7910,8 @@
  2055.      fprintf(stderr, "Upsample (x2) AUDIO_U8, 6 channels.\n");
  2056.  #endif
  2057.  
  2058. +    (void)format;
  2059. +
  2060.      const int dstsize = cvt->len_cvt * 2;
  2061.      Uint8 *dst = ((Uint8 *) (cvt->buf + dstsize)) - 6 * 2;
  2062.      const Uint8 *src = ((Uint8 *) (cvt->buf + cvt->len_cvt)) - 6;
  2063. @@ -7558,6 +7964,8 @@
  2064.      fprintf(stderr, "Downsample (x2) AUDIO_U8, 6 channels.\n");
  2065.  #endif
  2066.  
  2067. +    (void)format;
  2068. +
  2069.      const int dstsize = cvt->len_cvt / 2;
  2070.      Uint8 *dst = (Uint8 *) cvt->buf;
  2071.      const Uint8 *src = (Uint8 *) cvt->buf;
  2072. @@ -7604,6 +8012,8 @@
  2073.      fprintf(stderr, "Upsample (x4) AUDIO_U8, 6 channels.\n");
  2074.  #endif
  2075.  
  2076. +    (void)format;
  2077. +
  2078.      const int dstsize = cvt->len_cvt * 4;
  2079.      Uint8 *dst = ((Uint8 *) (cvt->buf + dstsize)) - 6 * 4;
  2080.      const Uint8 *src = ((Uint8 *) (cvt->buf + cvt->len_cvt)) - 6;
  2081. @@ -7668,6 +8078,8 @@
  2082.      fprintf(stderr, "Downsample (x4) AUDIO_U8, 6 channels.\n");
  2083.  #endif
  2084.  
  2085. +    (void)format;
  2086. +
  2087.      const int dstsize = cvt->len_cvt / 4;
  2088.      Uint8 *dst = (Uint8 *) cvt->buf;
  2089.      const Uint8 *src = (Uint8 *) cvt->buf;
  2090. @@ -7714,6 +8126,8 @@
  2091.      fprintf(stderr, "Upsample (x2) AUDIO_U8, 8 channels.\n");
  2092.  #endif
  2093.  
  2094. +    (void)format;
  2095. +
  2096.      const int dstsize = cvt->len_cvt * 2;
  2097.      Uint8 *dst = ((Uint8 *) (cvt->buf + dstsize)) - 8 * 2;
  2098.      const Uint8 *src = ((Uint8 *) (cvt->buf + cvt->len_cvt)) - 8;
  2099. @@ -7776,6 +8190,8 @@
  2100.      fprintf(stderr, "Downsample (x2) AUDIO_U8, 8 channels.\n");
  2101.  #endif
  2102.  
  2103. +    (void)format;
  2104. +
  2105.      const int dstsize = cvt->len_cvt / 2;
  2106.      Uint8 *dst = (Uint8 *) cvt->buf;
  2107.      const Uint8 *src = (Uint8 *) cvt->buf;
  2108. @@ -7830,6 +8246,8 @@
  2109.      fprintf(stderr, "Upsample (x4) AUDIO_U8, 8 channels.\n");
  2110.  #endif
  2111.  
  2112. +    (void)format;
  2113. +
  2114.      const int dstsize = cvt->len_cvt * 4;
  2115.      Uint8 *dst = ((Uint8 *) (cvt->buf + dstsize)) - 8 * 4;
  2116.      const Uint8 *src = ((Uint8 *) (cvt->buf + cvt->len_cvt)) - 8;
  2117. @@ -7908,6 +8326,8 @@
  2118.      fprintf(stderr, "Downsample (x4) AUDIO_U8, 8 channels.\n");
  2119.  #endif
  2120.  
  2121. +    (void)format;
  2122. +
  2123.      const int dstsize = cvt->len_cvt / 4;
  2124.      Uint8 *dst = (Uint8 *) cvt->buf;
  2125.      const Uint8 *src = (Uint8 *) cvt->buf;
  2126. @@ -7962,6 +8382,8 @@
  2127.      fprintf(stderr, "Upsample (x2) AUDIO_S8, 1 channels.\n");
  2128.  #endif
  2129.  
  2130. +    (void)format;
  2131. +
  2132.      const int dstsize = cvt->len_cvt * 2;
  2133.      Sint8 *dst = ((Sint8 *) (cvt->buf + dstsize)) - 1 * 2;
  2134.      const Sint8 *src = ((Sint8 *) (cvt->buf + cvt->len_cvt)) - 1;
  2135. @@ -7989,6 +8411,8 @@
  2136.      fprintf(stderr, "Downsample (x2) AUDIO_S8, 1 channels.\n");
  2137.  #endif
  2138.  
  2139. +    (void)format;
  2140. +
  2141.      const int dstsize = cvt->len_cvt / 2;
  2142.      Sint8 *dst = (Sint8 *) cvt->buf;
  2143.      const Sint8 *src = (Sint8 *) cvt->buf;
  2144. @@ -8015,6 +8439,8 @@
  2145.      fprintf(stderr, "Upsample (x4) AUDIO_S8, 1 channels.\n");
  2146.  #endif
  2147.  
  2148. +    (void)format;
  2149. +
  2150.      const int dstsize = cvt->len_cvt * 4;
  2151.      Sint8 *dst = ((Sint8 *) (cvt->buf + dstsize)) - 1 * 4;
  2152.      const Sint8 *src = ((Sint8 *) (cvt->buf + cvt->len_cvt)) - 1;
  2153. @@ -8044,6 +8470,8 @@
  2154.      fprintf(stderr, "Downsample (x4) AUDIO_S8, 1 channels.\n");
  2155.  #endif
  2156.  
  2157. +    (void)format;
  2158. +
  2159.      const int dstsize = cvt->len_cvt / 4;
  2160.      Sint8 *dst = (Sint8 *) cvt->buf;
  2161.      const Sint8 *src = (Sint8 *) cvt->buf;
  2162. @@ -8070,6 +8498,8 @@
  2163.      fprintf(stderr, "Upsample (x2) AUDIO_S8, 2 channels.\n");
  2164.  #endif
  2165.  
  2166. +    (void)format;
  2167. +
  2168.      const int dstsize = cvt->len_cvt * 2;
  2169.      Sint8 *dst = ((Sint8 *) (cvt->buf + dstsize)) - 2 * 2;
  2170.      const Sint8 *src = ((Sint8 *) (cvt->buf + cvt->len_cvt)) - 2;
  2171. @@ -8102,6 +8532,8 @@
  2172.      fprintf(stderr, "Downsample (x2) AUDIO_S8, 2 channels.\n");
  2173.  #endif
  2174.  
  2175. +    (void)format;
  2176. +
  2177.      const int dstsize = cvt->len_cvt / 2;
  2178.      Sint8 *dst = (Sint8 *) cvt->buf;
  2179.      const Sint8 *src = (Sint8 *) cvt->buf;
  2180. @@ -8132,6 +8564,8 @@
  2181.      fprintf(stderr, "Upsample (x4) AUDIO_S8, 2 channels.\n");
  2182.  #endif
  2183.  
  2184. +    (void)format;
  2185. +
  2186.      const int dstsize = cvt->len_cvt * 4;
  2187.      Sint8 *dst = ((Sint8 *) (cvt->buf + dstsize)) - 2 * 4;
  2188.      const Sint8 *src = ((Sint8 *) (cvt->buf + cvt->len_cvt)) - 2;
  2189. @@ -8168,6 +8602,8 @@
  2190.      fprintf(stderr, "Downsample (x4) AUDIO_S8, 2 channels.\n");
  2191.  #endif
  2192.  
  2193. +    (void)format;
  2194. +
  2195.      const int dstsize = cvt->len_cvt / 4;
  2196.      Sint8 *dst = (Sint8 *) cvt->buf;
  2197.      const Sint8 *src = (Sint8 *) cvt->buf;
  2198. @@ -8198,6 +8634,8 @@
  2199.      fprintf(stderr, "Upsample (x2) AUDIO_S8, 4 channels.\n");
  2200.  #endif
  2201.  
  2202. +    (void)format;
  2203. +
  2204.      const int dstsize = cvt->len_cvt * 2;
  2205.      Sint8 *dst = ((Sint8 *) (cvt->buf + dstsize)) - 4 * 2;
  2206.      const Sint8 *src = ((Sint8 *) (cvt->buf + cvt->len_cvt)) - 4;
  2207. @@ -8240,6 +8678,8 @@
  2208.      fprintf(stderr, "Downsample (x2) AUDIO_S8, 4 channels.\n");
  2209.  #endif
  2210.  
  2211. +    (void)format;
  2212. +
  2213.      const int dstsize = cvt->len_cvt / 2;
  2214.      Sint8 *dst = (Sint8 *) cvt->buf;
  2215.      const Sint8 *src = (Sint8 *) cvt->buf;
  2216. @@ -8278,6 +8718,8 @@
  2217.      fprintf(stderr, "Upsample (x4) AUDIO_S8, 4 channels.\n");
  2218.  #endif
  2219.  
  2220. +    (void)format;
  2221. +
  2222.      const int dstsize = cvt->len_cvt * 4;
  2223.      Sint8 *dst = ((Sint8 *) (cvt->buf + dstsize)) - 4 * 4;
  2224.      const Sint8 *src = ((Sint8 *) (cvt->buf + cvt->len_cvt)) - 4;
  2225. @@ -8328,6 +8770,8 @@
  2226.      fprintf(stderr, "Downsample (x4) AUDIO_S8, 4 channels.\n");
  2227.  #endif
  2228.  
  2229. +    (void)format;
  2230. +
  2231.      const int dstsize = cvt->len_cvt / 4;
  2232.      Sint8 *dst = (Sint8 *) cvt->buf;
  2233.      const Sint8 *src = (Sint8 *) cvt->buf;
  2234. @@ -8366,6 +8810,8 @@
  2235.      fprintf(stderr, "Upsample (x2) AUDIO_S8, 6 channels.\n");
  2236.  #endif
  2237.  
  2238. +    (void)format;
  2239. +
  2240.      const int dstsize = cvt->len_cvt * 2;
  2241.      Sint8 *dst = ((Sint8 *) (cvt->buf + dstsize)) - 6 * 2;
  2242.      const Sint8 *src = ((Sint8 *) (cvt->buf + cvt->len_cvt)) - 6;
  2243. @@ -8418,6 +8864,8 @@
  2244.      fprintf(stderr, "Downsample (x2) AUDIO_S8, 6 channels.\n");
  2245.  #endif
  2246.  
  2247. +    (void)format;
  2248. +
  2249.      const int dstsize = cvt->len_cvt / 2;
  2250.      Sint8 *dst = (Sint8 *) cvt->buf;
  2251.      const Sint8 *src = (Sint8 *) cvt->buf;
  2252. @@ -8464,6 +8912,8 @@
  2253.      fprintf(stderr, "Upsample (x4) AUDIO_S8, 6 channels.\n");
  2254.  #endif
  2255.  
  2256. +    (void)format;
  2257. +
  2258.      const int dstsize = cvt->len_cvt * 4;
  2259.      Sint8 *dst = ((Sint8 *) (cvt->buf + dstsize)) - 6 * 4;
  2260.      const Sint8 *src = ((Sint8 *) (cvt->buf + cvt->len_cvt)) - 6;
  2261. @@ -8528,6 +8978,8 @@
  2262.      fprintf(stderr, "Downsample (x4) AUDIO_S8, 6 channels.\n");
  2263.  #endif
  2264.  
  2265. +    (void)format;
  2266. +
  2267.      const int dstsize = cvt->len_cvt / 4;
  2268.      Sint8 *dst = (Sint8 *) cvt->buf;
  2269.      const Sint8 *src = (Sint8 *) cvt->buf;
  2270. @@ -8574,6 +9026,8 @@
  2271.      fprintf(stderr, "Upsample (x2) AUDIO_S8, 8 channels.\n");
  2272.  #endif
  2273.  
  2274. +    (void)format;
  2275. +
  2276.      const int dstsize = cvt->len_cvt * 2;
  2277.      Sint8 *dst = ((Sint8 *) (cvt->buf + dstsize)) - 8 * 2;
  2278.      const Sint8 *src = ((Sint8 *) (cvt->buf + cvt->len_cvt)) - 8;
  2279. @@ -8636,6 +9090,8 @@
  2280.      fprintf(stderr, "Downsample (x2) AUDIO_S8, 8 channels.\n");
  2281.  #endif
  2282.  
  2283. +    (void)format;
  2284. +
  2285.      const int dstsize = cvt->len_cvt / 2;
  2286.      Sint8 *dst = (Sint8 *) cvt->buf;
  2287.      const Sint8 *src = (Sint8 *) cvt->buf;
  2288. @@ -8690,6 +9146,8 @@
  2289.      fprintf(stderr, "Upsample (x4) AUDIO_S8, 8 channels.\n");
  2290.  #endif
  2291.  
  2292. +    (void)format;
  2293. +
  2294.      const int dstsize = cvt->len_cvt * 4;
  2295.      Sint8 *dst = ((Sint8 *) (cvt->buf + dstsize)) - 8 * 4;
  2296.      const Sint8 *src = ((Sint8 *) (cvt->buf + cvt->len_cvt)) - 8;
  2297. @@ -8768,6 +9226,8 @@
  2298.      fprintf(stderr, "Downsample (x4) AUDIO_S8, 8 channels.\n");
  2299.  #endif
  2300.  
  2301. +    (void)format;
  2302. +
  2303.      const int dstsize = cvt->len_cvt / 4;
  2304.      Sint8 *dst = (Sint8 *) cvt->buf;
  2305.      const Sint8 *src = (Sint8 *) cvt->buf;
  2306. @@ -8822,6 +9282,8 @@
  2307.      fprintf(stderr, "Upsample (x2) AUDIO_U16LSB, 1 channels.\n");
  2308.  #endif
  2309.  
  2310. +    (void)format;
  2311. +
  2312.      const int dstsize = cvt->len_cvt * 2;
  2313.      Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 1 * 2;
  2314.      const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 1;
  2315. @@ -8849,6 +9311,8 @@
  2316.      fprintf(stderr, "Downsample (x2) AUDIO_U16LSB, 1 channels.\n");
  2317.  #endif
  2318.  
  2319. +    (void)format;
  2320. +
  2321.      const int dstsize = cvt->len_cvt / 2;
  2322.      Uint16 *dst = (Uint16 *) cvt->buf;
  2323.      const Uint16 *src = (Uint16 *) cvt->buf;
  2324. @@ -8875,6 +9339,8 @@
  2325.      fprintf(stderr, "Upsample (x4) AUDIO_U16LSB, 1 channels.\n");
  2326.  #endif
  2327.  
  2328. +    (void)format;
  2329. +
  2330.      const int dstsize = cvt->len_cvt * 4;
  2331.      Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 1 * 4;
  2332.      const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 1;
  2333. @@ -8904,6 +9370,8 @@
  2334.      fprintf(stderr, "Downsample (x4) AUDIO_U16LSB, 1 channels.\n");
  2335.  #endif
  2336.  
  2337. +    (void)format;
  2338. +
  2339.      const int dstsize = cvt->len_cvt / 4;
  2340.      Uint16 *dst = (Uint16 *) cvt->buf;
  2341.      const Uint16 *src = (Uint16 *) cvt->buf;
  2342. @@ -8930,6 +9398,8 @@
  2343.      fprintf(stderr, "Upsample (x2) AUDIO_U16LSB, 2 channels.\n");
  2344.  #endif
  2345.  
  2346. +    (void)format;
  2347. +
  2348.      const int dstsize = cvt->len_cvt * 2;
  2349.      Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 2 * 2;
  2350.      const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 2;
  2351. @@ -8962,6 +9432,8 @@
  2352.      fprintf(stderr, "Downsample (x2) AUDIO_U16LSB, 2 channels.\n");
  2353.  #endif
  2354.  
  2355. +    (void)format;
  2356. +
  2357.      const int dstsize = cvt->len_cvt / 2;
  2358.      Uint16 *dst = (Uint16 *) cvt->buf;
  2359.      const Uint16 *src = (Uint16 *) cvt->buf;
  2360. @@ -8992,6 +9464,8 @@
  2361.      fprintf(stderr, "Upsample (x4) AUDIO_U16LSB, 2 channels.\n");
  2362.  #endif
  2363.  
  2364. +    (void)format;
  2365. +
  2366.      const int dstsize = cvt->len_cvt * 4;
  2367.      Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 2 * 4;
  2368.      const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 2;
  2369. @@ -9028,6 +9502,8 @@
  2370.      fprintf(stderr, "Downsample (x4) AUDIO_U16LSB, 2 channels.\n");
  2371.  #endif
  2372.  
  2373. +    (void)format;
  2374. +
  2375.      const int dstsize = cvt->len_cvt / 4;
  2376.      Uint16 *dst = (Uint16 *) cvt->buf;
  2377.      const Uint16 *src = (Uint16 *) cvt->buf;
  2378. @@ -9058,6 +9534,8 @@
  2379.      fprintf(stderr, "Upsample (x2) AUDIO_U16LSB, 4 channels.\n");
  2380.  #endif
  2381.  
  2382. +    (void)format;
  2383. +
  2384.      const int dstsize = cvt->len_cvt * 2;
  2385.      Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 4 * 2;
  2386.      const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 4;
  2387. @@ -9100,6 +9578,8 @@
  2388.      fprintf(stderr, "Downsample (x2) AUDIO_U16LSB, 4 channels.\n");
  2389.  #endif
  2390.  
  2391. +    (void)format;
  2392. +
  2393.      const int dstsize = cvt->len_cvt / 2;
  2394.      Uint16 *dst = (Uint16 *) cvt->buf;
  2395.      const Uint16 *src = (Uint16 *) cvt->buf;
  2396. @@ -9138,6 +9618,8 @@
  2397.      fprintf(stderr, "Upsample (x4) AUDIO_U16LSB, 4 channels.\n");
  2398.  #endif
  2399.  
  2400. +    (void)format;
  2401. +
  2402.      const int dstsize = cvt->len_cvt * 4;
  2403.      Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 4 * 4;
  2404.      const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 4;
  2405. @@ -9188,6 +9670,8 @@
  2406.      fprintf(stderr, "Downsample (x4) AUDIO_U16LSB, 4 channels.\n");
  2407.  #endif
  2408.  
  2409. +    (void)format;
  2410. +
  2411.      const int dstsize = cvt->len_cvt / 4;
  2412.      Uint16 *dst = (Uint16 *) cvt->buf;
  2413.      const Uint16 *src = (Uint16 *) cvt->buf;
  2414. @@ -9226,6 +9710,8 @@
  2415.      fprintf(stderr, "Upsample (x2) AUDIO_U16LSB, 6 channels.\n");
  2416.  #endif
  2417.  
  2418. +    (void)format;
  2419. +
  2420.      const int dstsize = cvt->len_cvt * 2;
  2421.      Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 6 * 2;
  2422.      const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 6;
  2423. @@ -9278,6 +9764,8 @@
  2424.      fprintf(stderr, "Downsample (x2) AUDIO_U16LSB, 6 channels.\n");
  2425.  #endif
  2426.  
  2427. +    (void)format;
  2428. +
  2429.      const int dstsize = cvt->len_cvt / 2;
  2430.      Uint16 *dst = (Uint16 *) cvt->buf;
  2431.      const Uint16 *src = (Uint16 *) cvt->buf;
  2432. @@ -9324,6 +9812,8 @@
  2433.      fprintf(stderr, "Upsample (x4) AUDIO_U16LSB, 6 channels.\n");
  2434.  #endif
  2435.  
  2436. +    (void)format;
  2437. +
  2438.      const int dstsize = cvt->len_cvt * 4;
  2439.      Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 6 * 4;
  2440.      const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 6;
  2441. @@ -9388,6 +9878,8 @@
  2442.      fprintf(stderr, "Downsample (x4) AUDIO_U16LSB, 6 channels.\n");
  2443.  #endif
  2444.  
  2445. +    (void)format;
  2446. +
  2447.      const int dstsize = cvt->len_cvt / 4;
  2448.      Uint16 *dst = (Uint16 *) cvt->buf;
  2449.      const Uint16 *src = (Uint16 *) cvt->buf;
  2450. @@ -9434,6 +9926,8 @@
  2451.      fprintf(stderr, "Upsample (x2) AUDIO_U16LSB, 8 channels.\n");
  2452.  #endif
  2453.  
  2454. +    (void)format;
  2455. +
  2456.      const int dstsize = cvt->len_cvt * 2;
  2457.      Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 8 * 2;
  2458.      const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 8;
  2459. @@ -9496,6 +9990,8 @@
  2460.      fprintf(stderr, "Downsample (x2) AUDIO_U16LSB, 8 channels.\n");
  2461.  #endif
  2462.  
  2463. +    (void)format;
  2464. +
  2465.      const int dstsize = cvt->len_cvt / 2;
  2466.      Uint16 *dst = (Uint16 *) cvt->buf;
  2467.      const Uint16 *src = (Uint16 *) cvt->buf;
  2468. @@ -9550,6 +10046,8 @@
  2469.      fprintf(stderr, "Upsample (x4) AUDIO_U16LSB, 8 channels.\n");
  2470.  #endif
  2471.  
  2472. +    (void)format;
  2473. +
  2474.      const int dstsize = cvt->len_cvt * 4;
  2475.      Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 8 * 4;
  2476.      const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 8;
  2477. @@ -9628,6 +10126,8 @@
  2478.      fprintf(stderr, "Downsample (x4) AUDIO_U16LSB, 8 channels.\n");
  2479.  #endif
  2480.  
  2481. +    (void)format;
  2482. +
  2483.      const int dstsize = cvt->len_cvt / 4;
  2484.      Uint16 *dst = (Uint16 *) cvt->buf;
  2485.      const Uint16 *src = (Uint16 *) cvt->buf;
  2486. @@ -9682,6 +10182,8 @@
  2487.      fprintf(stderr, "Upsample (x2) AUDIO_S16LSB, 1 channels.\n");
  2488.  #endif
  2489.  
  2490. +    (void)format;
  2491. +
  2492.      const int dstsize = cvt->len_cvt * 2;
  2493.      Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 1 * 2;
  2494.      const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 1;
  2495. @@ -9709,6 +10211,8 @@
  2496.      fprintf(stderr, "Downsample (x2) AUDIO_S16LSB, 1 channels.\n");
  2497.  #endif
  2498.  
  2499. +    (void)format;
  2500. +
  2501.      const int dstsize = cvt->len_cvt / 2;
  2502.      Sint16 *dst = (Sint16 *) cvt->buf;
  2503.      const Sint16 *src = (Sint16 *) cvt->buf;
  2504. @@ -9735,6 +10239,8 @@
  2505.      fprintf(stderr, "Upsample (x4) AUDIO_S16LSB, 1 channels.\n");
  2506.  #endif
  2507.  
  2508. +    (void)format;
  2509. +
  2510.      const int dstsize = cvt->len_cvt * 4;
  2511.      Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 1 * 4;
  2512.      const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 1;
  2513. @@ -9764,6 +10270,8 @@
  2514.      fprintf(stderr, "Downsample (x4) AUDIO_S16LSB, 1 channels.\n");
  2515.  #endif
  2516.  
  2517. +    (void)format;
  2518. +
  2519.      const int dstsize = cvt->len_cvt / 4;
  2520.      Sint16 *dst = (Sint16 *) cvt->buf;
  2521.      const Sint16 *src = (Sint16 *) cvt->buf;
  2522. @@ -9790,6 +10298,8 @@
  2523.      fprintf(stderr, "Upsample (x2) AUDIO_S16LSB, 2 channels.\n");
  2524.  #endif
  2525.  
  2526. +    (void)format;
  2527. +
  2528.      const int dstsize = cvt->len_cvt * 2;
  2529.      Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 2 * 2;
  2530.      const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 2;
  2531. @@ -9822,6 +10332,8 @@
  2532.      fprintf(stderr, "Downsample (x2) AUDIO_S16LSB, 2 channels.\n");
  2533.  #endif
  2534.  
  2535. +    (void)format;
  2536. +
  2537.      const int dstsize = cvt->len_cvt / 2;
  2538.      Sint16 *dst = (Sint16 *) cvt->buf;
  2539.      const Sint16 *src = (Sint16 *) cvt->buf;
  2540. @@ -9852,6 +10364,8 @@
  2541.      fprintf(stderr, "Upsample (x4) AUDIO_S16LSB, 2 channels.\n");
  2542.  #endif
  2543.  
  2544. +    (void)format;
  2545. +
  2546.      const int dstsize = cvt->len_cvt * 4;
  2547.      Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 2 * 4;
  2548.      const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 2;
  2549. @@ -9888,6 +10402,8 @@
  2550.      fprintf(stderr, "Downsample (x4) AUDIO_S16LSB, 2 channels.\n");
  2551.  #endif
  2552.  
  2553. +    (void)format;
  2554. +
  2555.      const int dstsize = cvt->len_cvt / 4;
  2556.      Sint16 *dst = (Sint16 *) cvt->buf;
  2557.      const Sint16 *src = (Sint16 *) cvt->buf;
  2558. @@ -9918,6 +10434,8 @@
  2559.      fprintf(stderr, "Upsample (x2) AUDIO_S16LSB, 4 channels.\n");
  2560.  #endif
  2561.  
  2562. +    (void)format;
  2563. +
  2564.      const int dstsize = cvt->len_cvt * 2;
  2565.      Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 4 * 2;
  2566.      const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 4;
  2567. @@ -9960,6 +10478,8 @@
  2568.      fprintf(stderr, "Downsample (x2) AUDIO_S16LSB, 4 channels.\n");
  2569.  #endif
  2570.  
  2571. +    (void)format;
  2572. +
  2573.      const int dstsize = cvt->len_cvt / 2;
  2574.      Sint16 *dst = (Sint16 *) cvt->buf;
  2575.      const Sint16 *src = (Sint16 *) cvt->buf;
  2576. @@ -9998,6 +10518,8 @@
  2577.      fprintf(stderr, "Upsample (x4) AUDIO_S16LSB, 4 channels.\n");
  2578.  #endif
  2579.  
  2580. +    (void)format;
  2581. +
  2582.      const int dstsize = cvt->len_cvt * 4;
  2583.      Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 4 * 4;
  2584.      const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 4;
  2585. @@ -10048,6 +10570,8 @@
  2586.      fprintf(stderr, "Downsample (x4) AUDIO_S16LSB, 4 channels.\n");
  2587.  #endif
  2588.  
  2589. +    (void)format;
  2590. +
  2591.      const int dstsize = cvt->len_cvt / 4;
  2592.      Sint16 *dst = (Sint16 *) cvt->buf;
  2593.      const Sint16 *src = (Sint16 *) cvt->buf;
  2594. @@ -10086,6 +10610,8 @@
  2595.      fprintf(stderr, "Upsample (x2) AUDIO_S16LSB, 6 channels.\n");
  2596.  #endif
  2597.  
  2598. +    (void)format;
  2599. +
  2600.      const int dstsize = cvt->len_cvt * 2;
  2601.      Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 6 * 2;
  2602.      const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 6;
  2603. @@ -10138,6 +10664,8 @@
  2604.      fprintf(stderr, "Downsample (x2) AUDIO_S16LSB, 6 channels.\n");
  2605.  #endif
  2606.  
  2607. +    (void)format;
  2608. +
  2609.      const int dstsize = cvt->len_cvt / 2;
  2610.      Sint16 *dst = (Sint16 *) cvt->buf;
  2611.      const Sint16 *src = (Sint16 *) cvt->buf;
  2612. @@ -10184,6 +10712,8 @@
  2613.      fprintf(stderr, "Upsample (x4) AUDIO_S16LSB, 6 channels.\n");
  2614.  #endif
  2615.  
  2616. +    (void)format;
  2617. +
  2618.      const int dstsize = cvt->len_cvt * 4;
  2619.      Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 6 * 4;
  2620.      const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 6;
  2621. @@ -10248,6 +10778,8 @@
  2622.      fprintf(stderr, "Downsample (x4) AUDIO_S16LSB, 6 channels.\n");
  2623.  #endif
  2624.  
  2625. +    (void)format;
  2626. +
  2627.      const int dstsize = cvt->len_cvt / 4;
  2628.      Sint16 *dst = (Sint16 *) cvt->buf;
  2629.      const Sint16 *src = (Sint16 *) cvt->buf;
  2630. @@ -10294,6 +10826,8 @@
  2631.      fprintf(stderr, "Upsample (x2) AUDIO_S16LSB, 8 channels.\n");
  2632.  #endif
  2633.  
  2634. +    (void)format;
  2635. +
  2636.      const int dstsize = cvt->len_cvt * 2;
  2637.      Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 8 * 2;
  2638.      const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 8;
  2639. @@ -10356,6 +10890,8 @@
  2640.      fprintf(stderr, "Downsample (x2) AUDIO_S16LSB, 8 channels.\n");
  2641.  #endif
  2642.  
  2643. +    (void)format;
  2644. +
  2645.      const int dstsize = cvt->len_cvt / 2;
  2646.      Sint16 *dst = (Sint16 *) cvt->buf;
  2647.      const Sint16 *src = (Sint16 *) cvt->buf;
  2648. @@ -10410,6 +10946,8 @@
  2649.      fprintf(stderr, "Upsample (x4) AUDIO_S16LSB, 8 channels.\n");
  2650.  #endif
  2651.  
  2652. +    (void)format;
  2653. +
  2654.      const int dstsize = cvt->len_cvt * 4;
  2655.      Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 8 * 4;
  2656.      const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 8;
  2657. @@ -10488,6 +11026,8 @@
  2658.      fprintf(stderr, "Downsample (x4) AUDIO_S16LSB, 8 channels.\n");
  2659.  #endif
  2660.  
  2661. +    (void)format;
  2662. +
  2663.      const int dstsize = cvt->len_cvt / 4;
  2664.      Sint16 *dst = (Sint16 *) cvt->buf;
  2665.      const Sint16 *src = (Sint16 *) cvt->buf;
  2666. @@ -10542,6 +11082,8 @@
  2667.      fprintf(stderr, "Upsample (x2) AUDIO_U16MSB, 1 channels.\n");
  2668.  #endif
  2669.  
  2670. +    (void)format;
  2671. +
  2672.      const int dstsize = cvt->len_cvt * 2;
  2673.      Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 1 * 2;
  2674.      const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 1;
  2675. @@ -10569,6 +11111,8 @@
  2676.      fprintf(stderr, "Downsample (x2) AUDIO_U16MSB, 1 channels.\n");
  2677.  #endif
  2678.  
  2679. +    (void)format;
  2680. +
  2681.      const int dstsize = cvt->len_cvt / 2;
  2682.      Uint16 *dst = (Uint16 *) cvt->buf;
  2683.      const Uint16 *src = (Uint16 *) cvt->buf;
  2684. @@ -10595,6 +11139,8 @@
  2685.      fprintf(stderr, "Upsample (x4) AUDIO_U16MSB, 1 channels.\n");
  2686.  #endif
  2687.  
  2688. +    (void)format;
  2689. +
  2690.      const int dstsize = cvt->len_cvt * 4;
  2691.      Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 1 * 4;
  2692.      const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 1;
  2693. @@ -10624,6 +11170,8 @@
  2694.      fprintf(stderr, "Downsample (x4) AUDIO_U16MSB, 1 channels.\n");
  2695.  #endif
  2696.  
  2697. +    (void)format;
  2698. +
  2699.      const int dstsize = cvt->len_cvt / 4;
  2700.      Uint16 *dst = (Uint16 *) cvt->buf;
  2701.      const Uint16 *src = (Uint16 *) cvt->buf;
  2702. @@ -10650,6 +11198,8 @@
  2703.      fprintf(stderr, "Upsample (x2) AUDIO_U16MSB, 2 channels.\n");
  2704.  #endif
  2705.  
  2706. +    (void)format;
  2707. +
  2708.      const int dstsize = cvt->len_cvt * 2;
  2709.      Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 2 * 2;
  2710.      const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 2;
  2711. @@ -10682,6 +11232,8 @@
  2712.      fprintf(stderr, "Downsample (x2) AUDIO_U16MSB, 2 channels.\n");
  2713.  #endif
  2714.  
  2715. +    (void)format;
  2716. +
  2717.      const int dstsize = cvt->len_cvt / 2;
  2718.      Uint16 *dst = (Uint16 *) cvt->buf;
  2719.      const Uint16 *src = (Uint16 *) cvt->buf;
  2720. @@ -10712,6 +11264,8 @@
  2721.      fprintf(stderr, "Upsample (x4) AUDIO_U16MSB, 2 channels.\n");
  2722.  #endif
  2723.  
  2724. +    (void)format;
  2725. +
  2726.      const int dstsize = cvt->len_cvt * 4;
  2727.      Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 2 * 4;
  2728.      const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 2;
  2729. @@ -10748,6 +11302,8 @@
  2730.      fprintf(stderr, "Downsample (x4) AUDIO_U16MSB, 2 channels.\n");
  2731.  #endif
  2732.  
  2733. +    (void)format;
  2734. +
  2735.      const int dstsize = cvt->len_cvt / 4;
  2736.      Uint16 *dst = (Uint16 *) cvt->buf;
  2737.      const Uint16 *src = (Uint16 *) cvt->buf;
  2738. @@ -10778,6 +11334,8 @@
  2739.      fprintf(stderr, "Upsample (x2) AUDIO_U16MSB, 4 channels.\n");
  2740.  #endif
  2741.  
  2742. +    (void)format;
  2743. +
  2744.      const int dstsize = cvt->len_cvt * 2;
  2745.      Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 4 * 2;
  2746.      const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 4;
  2747. @@ -10820,6 +11378,8 @@
  2748.      fprintf(stderr, "Downsample (x2) AUDIO_U16MSB, 4 channels.\n");
  2749.  #endif
  2750.  
  2751. +    (void)format;
  2752. +
  2753.      const int dstsize = cvt->len_cvt / 2;
  2754.      Uint16 *dst = (Uint16 *) cvt->buf;
  2755.      const Uint16 *src = (Uint16 *) cvt->buf;
  2756. @@ -10858,6 +11418,8 @@
  2757.      fprintf(stderr, "Upsample (x4) AUDIO_U16MSB, 4 channels.\n");
  2758.  #endif
  2759.  
  2760. +    (void)format;
  2761. +
  2762.      const int dstsize = cvt->len_cvt * 4;
  2763.      Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 4 * 4;
  2764.      const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 4;
  2765. @@ -10908,6 +11470,8 @@
  2766.      fprintf(stderr, "Downsample (x4) AUDIO_U16MSB, 4 channels.\n");
  2767.  #endif
  2768.  
  2769. +    (void)format;
  2770. +
  2771.      const int dstsize = cvt->len_cvt / 4;
  2772.      Uint16 *dst = (Uint16 *) cvt->buf;
  2773.      const Uint16 *src = (Uint16 *) cvt->buf;
  2774. @@ -10946,6 +11510,8 @@
  2775.      fprintf(stderr, "Upsample (x2) AUDIO_U16MSB, 6 channels.\n");
  2776.  #endif
  2777.  
  2778. +    (void)format;
  2779. +
  2780.      const int dstsize = cvt->len_cvt * 2;
  2781.      Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 6 * 2;
  2782.      const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 6;
  2783. @@ -10998,6 +11564,8 @@
  2784.      fprintf(stderr, "Downsample (x2) AUDIO_U16MSB, 6 channels.\n");
  2785.  #endif
  2786.  
  2787. +    (void)format;
  2788. +
  2789.      const int dstsize = cvt->len_cvt / 2;
  2790.      Uint16 *dst = (Uint16 *) cvt->buf;
  2791.      const Uint16 *src = (Uint16 *) cvt->buf;
  2792. @@ -11044,6 +11612,8 @@
  2793.      fprintf(stderr, "Upsample (x4) AUDIO_U16MSB, 6 channels.\n");
  2794.  #endif
  2795.  
  2796. +    (void)format;
  2797. +
  2798.      const int dstsize = cvt->len_cvt * 4;
  2799.      Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 6 * 4;
  2800.      const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 6;
  2801. @@ -11108,6 +11678,8 @@
  2802.      fprintf(stderr, "Downsample (x4) AUDIO_U16MSB, 6 channels.\n");
  2803.  #endif
  2804.  
  2805. +    (void)format;
  2806. +
  2807.      const int dstsize = cvt->len_cvt / 4;
  2808.      Uint16 *dst = (Uint16 *) cvt->buf;
  2809.      const Uint16 *src = (Uint16 *) cvt->buf;
  2810. @@ -11154,6 +11726,8 @@
  2811.      fprintf(stderr, "Upsample (x2) AUDIO_U16MSB, 8 channels.\n");
  2812.  #endif
  2813.  
  2814. +    (void)format;
  2815. +
  2816.      const int dstsize = cvt->len_cvt * 2;
  2817.      Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 8 * 2;
  2818.      const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 8;
  2819. @@ -11216,6 +11790,8 @@
  2820.      fprintf(stderr, "Downsample (x2) AUDIO_U16MSB, 8 channels.\n");
  2821.  #endif
  2822.  
  2823. +    (void)format;
  2824. +
  2825.      const int dstsize = cvt->len_cvt / 2;
  2826.      Uint16 *dst = (Uint16 *) cvt->buf;
  2827.      const Uint16 *src = (Uint16 *) cvt->buf;
  2828. @@ -11270,6 +11846,8 @@
  2829.      fprintf(stderr, "Upsample (x4) AUDIO_U16MSB, 8 channels.\n");
  2830.  #endif
  2831.  
  2832. +    (void)format;
  2833. +
  2834.      const int dstsize = cvt->len_cvt * 4;
  2835.      Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 8 * 4;
  2836.      const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 8;
  2837. @@ -11348,6 +11926,8 @@
  2838.      fprintf(stderr, "Downsample (x4) AUDIO_U16MSB, 8 channels.\n");
  2839.  #endif
  2840.  
  2841. +    (void)format;
  2842. +
  2843.      const int dstsize = cvt->len_cvt / 4;
  2844.      Uint16 *dst = (Uint16 *) cvt->buf;
  2845.      const Uint16 *src = (Uint16 *) cvt->buf;
  2846. @@ -11402,6 +11982,8 @@
  2847.      fprintf(stderr, "Upsample (x2) AUDIO_S16MSB, 1 channels.\n");
  2848.  #endif
  2849.  
  2850. +    (void)format;
  2851. +
  2852.      const int dstsize = cvt->len_cvt * 2;
  2853.      Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 1 * 2;
  2854.      const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 1;
  2855. @@ -11429,6 +12011,8 @@
  2856.      fprintf(stderr, "Downsample (x2) AUDIO_S16MSB, 1 channels.\n");
  2857.  #endif
  2858.  
  2859. +    (void)format;
  2860. +
  2861.      const int dstsize = cvt->len_cvt / 2;
  2862.      Sint16 *dst = (Sint16 *) cvt->buf;
  2863.      const Sint16 *src = (Sint16 *) cvt->buf;
  2864. @@ -11455,6 +12039,8 @@
  2865.      fprintf(stderr, "Upsample (x4) AUDIO_S16MSB, 1 channels.\n");
  2866.  #endif
  2867.  
  2868. +    (void)format;
  2869. +
  2870.      const int dstsize = cvt->len_cvt * 4;
  2871.      Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 1 * 4;
  2872.      const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 1;
  2873. @@ -11484,6 +12070,8 @@
  2874.      fprintf(stderr, "Downsample (x4) AUDIO_S16MSB, 1 channels.\n");
  2875.  #endif
  2876.  
  2877. +    (void)format;
  2878. +
  2879.      const int dstsize = cvt->len_cvt / 4;
  2880.      Sint16 *dst = (Sint16 *) cvt->buf;
  2881.      const Sint16 *src = (Sint16 *) cvt->buf;
  2882. @@ -11510,6 +12098,8 @@
  2883.      fprintf(stderr, "Upsample (x2) AUDIO_S16MSB, 2 channels.\n");
  2884.  #endif
  2885.  
  2886. +    (void)format;
  2887. +
  2888.      const int dstsize = cvt->len_cvt * 2;
  2889.      Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 2 * 2;
  2890.      const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 2;
  2891. @@ -11542,6 +12132,8 @@
  2892.      fprintf(stderr, "Downsample (x2) AUDIO_S16MSB, 2 channels.\n");
  2893.  #endif
  2894.  
  2895. +    (void)format;
  2896. +
  2897.      const int dstsize = cvt->len_cvt / 2;
  2898.      Sint16 *dst = (Sint16 *) cvt->buf;
  2899.      const Sint16 *src = (Sint16 *) cvt->buf;
  2900. @@ -11572,6 +12164,8 @@
  2901.      fprintf(stderr, "Upsample (x4) AUDIO_S16MSB, 2 channels.\n");
  2902.  #endif
  2903.  
  2904. +    (void)format;
  2905. +
  2906.      const int dstsize = cvt->len_cvt * 4;
  2907.      Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 2 * 4;
  2908.      const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 2;
  2909. @@ -11608,6 +12202,8 @@
  2910.      fprintf(stderr, "Downsample (x4) AUDIO_S16MSB, 2 channels.\n");
  2911.  #endif
  2912.  
  2913. +    (void)format;
  2914. +
  2915.      const int dstsize = cvt->len_cvt / 4;
  2916.      Sint16 *dst = (Sint16 *) cvt->buf;
  2917.      const Sint16 *src = (Sint16 *) cvt->buf;
  2918. @@ -11638,6 +12234,8 @@
  2919.      fprintf(stderr, "Upsample (x2) AUDIO_S16MSB, 4 channels.\n");
  2920.  #endif
  2921.  
  2922. +    (void)format;
  2923. +
  2924.      const int dstsize = cvt->len_cvt * 2;
  2925.      Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 4 * 2;
  2926.      const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 4;
  2927. @@ -11680,6 +12278,8 @@
  2928.      fprintf(stderr, "Downsample (x2) AUDIO_S16MSB, 4 channels.\n");
  2929.  #endif
  2930.  
  2931. +    (void)format;
  2932. +
  2933.      const int dstsize = cvt->len_cvt / 2;
  2934.      Sint16 *dst = (Sint16 *) cvt->buf;
  2935.      const Sint16 *src = (Sint16 *) cvt->buf;
  2936. @@ -11718,6 +12318,8 @@
  2937.      fprintf(stderr, "Upsample (x4) AUDIO_S16MSB, 4 channels.\n");
  2938.  #endif
  2939.  
  2940. +    (void)format;
  2941. +
  2942.      const int dstsize = cvt->len_cvt * 4;
  2943.      Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 4 * 4;
  2944.      const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 4;
  2945. @@ -11768,6 +12370,8 @@
  2946.      fprintf(stderr, "Downsample (x4) AUDIO_S16MSB, 4 channels.\n");
  2947.  #endif
  2948.  
  2949. +    (void)format;
  2950. +
  2951.      const int dstsize = cvt->len_cvt / 4;
  2952.      Sint16 *dst = (Sint16 *) cvt->buf;
  2953.      const Sint16 *src = (Sint16 *) cvt->buf;
  2954. @@ -11806,6 +12410,8 @@
  2955.      fprintf(stderr, "Upsample (x2) AUDIO_S16MSB, 6 channels.\n");
  2956.  #endif
  2957.  
  2958. +    (void)format;
  2959. +
  2960.      const int dstsize = cvt->len_cvt * 2;
  2961.      Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 6 * 2;
  2962.      const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 6;
  2963. @@ -11858,6 +12464,8 @@
  2964.      fprintf(stderr, "Downsample (x2) AUDIO_S16MSB, 6 channels.\n");
  2965.  #endif
  2966.  
  2967. +    (void)format;
  2968. +
  2969.      const int dstsize = cvt->len_cvt / 2;
  2970.      Sint16 *dst = (Sint16 *) cvt->buf;
  2971.      const Sint16 *src = (Sint16 *) cvt->buf;
  2972. @@ -11904,6 +12512,8 @@
  2973.      fprintf(stderr, "Upsample (x4) AUDIO_S16MSB, 6 channels.\n");
  2974.  #endif
  2975.  
  2976. +    (void)format;
  2977. +
  2978.      const int dstsize = cvt->len_cvt * 4;
  2979.      Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 6 * 4;
  2980.      const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 6;
  2981. @@ -11968,6 +12578,8 @@
  2982.      fprintf(stderr, "Downsample (x4) AUDIO_S16MSB, 6 channels.\n");
  2983.  #endif
  2984.  
  2985. +    (void)format;
  2986. +
  2987.      const int dstsize = cvt->len_cvt / 4;
  2988.      Sint16 *dst = (Sint16 *) cvt->buf;
  2989.      const Sint16 *src = (Sint16 *) cvt->buf;
  2990. @@ -12014,6 +12626,8 @@
  2991.      fprintf(stderr, "Upsample (x2) AUDIO_S16MSB, 8 channels.\n");
  2992.  #endif
  2993.  
  2994. +    (void)format;
  2995. +
  2996.      const int dstsize = cvt->len_cvt * 2;
  2997.      Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 8 * 2;
  2998.      const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 8;
  2999. @@ -12076,6 +12690,8 @@
  3000.      fprintf(stderr, "Downsample (x2) AUDIO_S16MSB, 8 channels.\n");
  3001.  #endif
  3002.  
  3003. +    (void)format;
  3004. +
  3005.      const int dstsize = cvt->len_cvt / 2;
  3006.      Sint16 *dst = (Sint16 *) cvt->buf;
  3007.      const Sint16 *src = (Sint16 *) cvt->buf;
  3008. @@ -12130,6 +12746,8 @@
  3009.      fprintf(stderr, "Upsample (x4) AUDIO_S16MSB, 8 channels.\n");
  3010.  #endif
  3011.  
  3012. +    (void)format;
  3013. +
  3014.      const int dstsize = cvt->len_cvt * 4;
  3015.      Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 8 * 4;
  3016.      const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 8;
  3017. @@ -12208,6 +12826,8 @@
  3018.      fprintf(stderr, "Downsample (x4) AUDIO_S16MSB, 8 channels.\n");
  3019.  #endif
  3020.  
  3021. +    (void)format;
  3022. +
  3023.      const int dstsize = cvt->len_cvt / 4;
  3024.      Sint16 *dst = (Sint16 *) cvt->buf;
  3025.      const Sint16 *src = (Sint16 *) cvt->buf;
  3026. @@ -12262,6 +12882,8 @@
  3027.      fprintf(stderr, "Upsample (x2) AUDIO_S32LSB, 1 channels.\n");
  3028.  #endif
  3029.  
  3030. +    (void)format;
  3031. +
  3032.      const int dstsize = cvt->len_cvt * 2;
  3033.      Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 1 * 2;
  3034.      const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 1;
  3035. @@ -12289,6 +12911,8 @@
  3036.      fprintf(stderr, "Downsample (x2) AUDIO_S32LSB, 1 channels.\n");
  3037.  #endif
  3038.  
  3039. +    (void)format;
  3040. +
  3041.      const int dstsize = cvt->len_cvt / 2;
  3042.      Sint32 *dst = (Sint32 *) cvt->buf;
  3043.      const Sint32 *src = (Sint32 *) cvt->buf;
  3044. @@ -12315,6 +12939,8 @@
  3045.      fprintf(stderr, "Upsample (x4) AUDIO_S32LSB, 1 channels.\n");
  3046.  #endif
  3047.  
  3048. +    (void)format;
  3049. +
  3050.      const int dstsize = cvt->len_cvt * 4;
  3051.      Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 1 * 4;
  3052.      const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 1;
  3053. @@ -12344,6 +12970,8 @@
  3054.      fprintf(stderr, "Downsample (x4) AUDIO_S32LSB, 1 channels.\n");
  3055.  #endif
  3056.  
  3057. +    (void)format;
  3058. +
  3059.      const int dstsize = cvt->len_cvt / 4;
  3060.      Sint32 *dst = (Sint32 *) cvt->buf;
  3061.      const Sint32 *src = (Sint32 *) cvt->buf;
  3062. @@ -12370,6 +12998,8 @@
  3063.      fprintf(stderr, "Upsample (x2) AUDIO_S32LSB, 2 channels.\n");
  3064.  #endif
  3065.  
  3066. +    (void)format;
  3067. +
  3068.      const int dstsize = cvt->len_cvt * 2;
  3069.      Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 2 * 2;
  3070.      const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 2;
  3071. @@ -12402,6 +13032,8 @@
  3072.      fprintf(stderr, "Downsample (x2) AUDIO_S32LSB, 2 channels.\n");
  3073.  #endif
  3074.  
  3075. +    (void)format;
  3076. +
  3077.      const int dstsize = cvt->len_cvt / 2;
  3078.      Sint32 *dst = (Sint32 *) cvt->buf;
  3079.      const Sint32 *src = (Sint32 *) cvt->buf;
  3080. @@ -12432,6 +13064,8 @@
  3081.      fprintf(stderr, "Upsample (x4) AUDIO_S32LSB, 2 channels.\n");
  3082.  #endif
  3083.  
  3084. +    (void)format;
  3085. +
  3086.      const int dstsize = cvt->len_cvt * 4;
  3087.      Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 2 * 4;
  3088.      const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 2;
  3089. @@ -12468,6 +13102,8 @@
  3090.      fprintf(stderr, "Downsample (x4) AUDIO_S32LSB, 2 channels.\n");
  3091.  #endif
  3092.  
  3093. +    (void)format;
  3094. +
  3095.      const int dstsize = cvt->len_cvt / 4;
  3096.      Sint32 *dst = (Sint32 *) cvt->buf;
  3097.      const Sint32 *src = (Sint32 *) cvt->buf;
  3098. @@ -12498,6 +13134,8 @@
  3099.      fprintf(stderr, "Upsample (x2) AUDIO_S32LSB, 4 channels.\n");
  3100.  #endif
  3101.  
  3102. +    (void)format;
  3103. +
  3104.      const int dstsize = cvt->len_cvt * 2;
  3105.      Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 4 * 2;
  3106.      const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 4;
  3107. @@ -12540,6 +13178,8 @@
  3108.      fprintf(stderr, "Downsample (x2) AUDIO_S32LSB, 4 channels.\n");
  3109.  #endif
  3110.  
  3111. +    (void)format;
  3112. +
  3113.      const int dstsize = cvt->len_cvt / 2;
  3114.      Sint32 *dst = (Sint32 *) cvt->buf;
  3115.      const Sint32 *src = (Sint32 *) cvt->buf;
  3116. @@ -12578,6 +13218,8 @@
  3117.      fprintf(stderr, "Upsample (x4) AUDIO_S32LSB, 4 channels.\n");
  3118.  #endif
  3119.  
  3120. +    (void)format;
  3121. +
  3122.      const int dstsize = cvt->len_cvt * 4;
  3123.      Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 4 * 4;
  3124.      const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 4;
  3125. @@ -12628,6 +13270,8 @@
  3126.      fprintf(stderr, "Downsample (x4) AUDIO_S32LSB, 4 channels.\n");
  3127.  #endif
  3128.  
  3129. +    (void)format;
  3130. +
  3131.      const int dstsize = cvt->len_cvt / 4;
  3132.      Sint32 *dst = (Sint32 *) cvt->buf;
  3133.      const Sint32 *src = (Sint32 *) cvt->buf;
  3134. @@ -12666,6 +13310,8 @@
  3135.      fprintf(stderr, "Upsample (x2) AUDIO_S32LSB, 6 channels.\n");
  3136.  #endif
  3137.  
  3138. +    (void)format;
  3139. +
  3140.      const int dstsize = cvt->len_cvt * 2;
  3141.      Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 6 * 2;
  3142.      const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 6;
  3143. @@ -12718,6 +13364,8 @@
  3144.      fprintf(stderr, "Downsample (x2) AUDIO_S32LSB, 6 channels.\n");
  3145.  #endif
  3146.  
  3147. +    (void)format;
  3148. +
  3149.      const int dstsize = cvt->len_cvt / 2;
  3150.      Sint32 *dst = (Sint32 *) cvt->buf;
  3151.      const Sint32 *src = (Sint32 *) cvt->buf;
  3152. @@ -12764,6 +13412,8 @@
  3153.      fprintf(stderr, "Upsample (x4) AUDIO_S32LSB, 6 channels.\n");
  3154.  #endif
  3155.  
  3156. +    (void)format;
  3157. +
  3158.      const int dstsize = cvt->len_cvt * 4;
  3159.      Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 6 * 4;
  3160.      const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 6;
  3161. @@ -12828,6 +13478,8 @@
  3162.      fprintf(stderr, "Downsample (x4) AUDIO_S32LSB, 6 channels.\n");
  3163.  #endif
  3164.  
  3165. +    (void)format;
  3166. +
  3167.      const int dstsize = cvt->len_cvt / 4;
  3168.      Sint32 *dst = (Sint32 *) cvt->buf;
  3169.      const Sint32 *src = (Sint32 *) cvt->buf;
  3170. @@ -12874,6 +13526,8 @@
  3171.      fprintf(stderr, "Upsample (x2) AUDIO_S32LSB, 8 channels.\n");
  3172.  #endif
  3173.  
  3174. +    (void)format;
  3175. +
  3176.      const int dstsize = cvt->len_cvt * 2;
  3177.      Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 8 * 2;
  3178.      const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 8;
  3179. @@ -12936,6 +13590,8 @@
  3180.      fprintf(stderr, "Downsample (x2) AUDIO_S32LSB, 8 channels.\n");
  3181.  #endif
  3182.  
  3183. +    (void)format;
  3184. +
  3185.      const int dstsize = cvt->len_cvt / 2;
  3186.      Sint32 *dst = (Sint32 *) cvt->buf;
  3187.      const Sint32 *src = (Sint32 *) cvt->buf;
  3188. @@ -12990,6 +13646,8 @@
  3189.      fprintf(stderr, "Upsample (x4) AUDIO_S32LSB, 8 channels.\n");
  3190.  #endif
  3191.  
  3192. +    (void)format;
  3193. +
  3194.      const int dstsize = cvt->len_cvt * 4;
  3195.      Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 8 * 4;
  3196.      const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 8;
  3197. @@ -13068,6 +13726,8 @@
  3198.      fprintf(stderr, "Downsample (x4) AUDIO_S32LSB, 8 channels.\n");
  3199.  #endif
  3200.  
  3201. +    (void)format;
  3202. +
  3203.      const int dstsize = cvt->len_cvt / 4;
  3204.      Sint32 *dst = (Sint32 *) cvt->buf;
  3205.      const Sint32 *src = (Sint32 *) cvt->buf;
  3206. @@ -13122,6 +13782,8 @@
  3207.      fprintf(stderr, "Upsample (x2) AUDIO_S32MSB, 1 channels.\n");
  3208.  #endif
  3209.  
  3210. +    (void)format;
  3211. +
  3212.      const int dstsize = cvt->len_cvt * 2;
  3213.      Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 1 * 2;
  3214.      const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 1;
  3215. @@ -13149,6 +13811,8 @@
  3216.      fprintf(stderr, "Downsample (x2) AUDIO_S32MSB, 1 channels.\n");
  3217.  #endif
  3218.  
  3219. +    (void)format;
  3220. +
  3221.      const int dstsize = cvt->len_cvt / 2;
  3222.      Sint32 *dst = (Sint32 *) cvt->buf;
  3223.      const Sint32 *src = (Sint32 *) cvt->buf;
  3224. @@ -13175,6 +13839,8 @@
  3225.      fprintf(stderr, "Upsample (x4) AUDIO_S32MSB, 1 channels.\n");
  3226.  #endif
  3227.  
  3228. +    (void)format;
  3229. +
  3230.      const int dstsize = cvt->len_cvt * 4;
  3231.      Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 1 * 4;
  3232.      const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 1;
  3233. @@ -13204,6 +13870,8 @@
  3234.      fprintf(stderr, "Downsample (x4) AUDIO_S32MSB, 1 channels.\n");
  3235.  #endif
  3236.  
  3237. +    (void)format;
  3238. +
  3239.      const int dstsize = cvt->len_cvt / 4;
  3240.      Sint32 *dst = (Sint32 *) cvt->buf;
  3241.      const Sint32 *src = (Sint32 *) cvt->buf;
  3242. @@ -13230,6 +13898,8 @@
  3243.      fprintf(stderr, "Upsample (x2) AUDIO_S32MSB, 2 channels.\n");
  3244.  #endif
  3245.  
  3246. +    (void)format;
  3247. +
  3248.      const int dstsize = cvt->len_cvt * 2;
  3249.      Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 2 * 2;
  3250.      const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 2;
  3251. @@ -13262,6 +13932,8 @@
  3252.      fprintf(stderr, "Downsample (x2) AUDIO_S32MSB, 2 channels.\n");
  3253.  #endif
  3254.  
  3255. +    (void)format;
  3256. +
  3257.      const int dstsize = cvt->len_cvt / 2;
  3258.      Sint32 *dst = (Sint32 *) cvt->buf;
  3259.      const Sint32 *src = (Sint32 *) cvt->buf;
  3260. @@ -13292,6 +13964,8 @@
  3261.      fprintf(stderr, "Upsample (x4) AUDIO_S32MSB, 2 channels.\n");
  3262.  #endif
  3263.  
  3264. +    (void)format;
  3265. +
  3266.      const int dstsize = cvt->len_cvt * 4;
  3267.      Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 2 * 4;
  3268.      const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 2;
  3269. @@ -13328,6 +14002,8 @@
  3270.      fprintf(stderr, "Downsample (x4) AUDIO_S32MSB, 2 channels.\n");
  3271.  #endif
  3272.  
  3273. +    (void)format;
  3274. +
  3275.      const int dstsize = cvt->len_cvt / 4;
  3276.      Sint32 *dst = (Sint32 *) cvt->buf;
  3277.      const Sint32 *src = (Sint32 *) cvt->buf;
  3278. @@ -13358,6 +14034,8 @@
  3279.      fprintf(stderr, "Upsample (x2) AUDIO_S32MSB, 4 channels.\n");
  3280.  #endif
  3281.  
  3282. +    (void)format;
  3283. +
  3284.      const int dstsize = cvt->len_cvt * 2;
  3285.      Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 4 * 2;
  3286.      const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 4;
  3287. @@ -13400,6 +14078,8 @@
  3288.      fprintf(stderr, "Downsample (x2) AUDIO_S32MSB, 4 channels.\n");
  3289.  #endif
  3290.  
  3291. +    (void)format;
  3292. +
  3293.      const int dstsize = cvt->len_cvt / 2;
  3294.      Sint32 *dst = (Sint32 *) cvt->buf;
  3295.      const Sint32 *src = (Sint32 *) cvt->buf;
  3296. @@ -13438,6 +14118,8 @@
  3297.      fprintf(stderr, "Upsample (x4) AUDIO_S32MSB, 4 channels.\n");
  3298.  #endif
  3299.  
  3300. +    (void)format;
  3301. +
  3302.      const int dstsize = cvt->len_cvt * 4;
  3303.      Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 4 * 4;
  3304.      const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 4;
  3305. @@ -13488,6 +14170,8 @@
  3306.      fprintf(stderr, "Downsample (x4) AUDIO_S32MSB, 4 channels.\n");
  3307.  #endif
  3308.  
  3309. +    (void)format;
  3310. +
  3311.      const int dstsize = cvt->len_cvt / 4;
  3312.      Sint32 *dst = (Sint32 *) cvt->buf;
  3313.      const Sint32 *src = (Sint32 *) cvt->buf;
  3314. @@ -13526,6 +14210,8 @@
  3315.      fprintf(stderr, "Upsample (x2) AUDIO_S32MSB, 6 channels.\n");
  3316.  #endif
  3317.  
  3318. +    (void)format;
  3319. +
  3320.      const int dstsize = cvt->len_cvt * 2;
  3321.      Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 6 * 2;
  3322.      const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 6;
  3323. @@ -13578,6 +14264,8 @@
  3324.      fprintf(stderr, "Downsample (x2) AUDIO_S32MSB, 6 channels.\n");
  3325.  #endif
  3326.  
  3327. +    (void)format;
  3328. +
  3329.      const int dstsize = cvt->len_cvt / 2;
  3330.      Sint32 *dst = (Sint32 *) cvt->buf;
  3331.      const Sint32 *src = (Sint32 *) cvt->buf;
  3332. @@ -13624,6 +14312,8 @@
  3333.      fprintf(stderr, "Upsample (x4) AUDIO_S32MSB, 6 channels.\n");
  3334.  #endif
  3335.  
  3336. +    (void)format;
  3337. +
  3338.      const int dstsize = cvt->len_cvt * 4;
  3339.      Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 6 * 4;
  3340.      const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 6;
  3341. @@ -13688,6 +14378,8 @@
  3342.      fprintf(stderr, "Downsample (x4) AUDIO_S32MSB, 6 channels.\n");
  3343.  #endif
  3344.  
  3345. +    (void)format;
  3346. +
  3347.      const int dstsize = cvt->len_cvt / 4;
  3348.      Sint32 *dst = (Sint32 *) cvt->buf;
  3349.      const Sint32 *src = (Sint32 *) cvt->buf;
  3350. @@ -13734,6 +14426,8 @@
  3351.      fprintf(stderr, "Upsample (x2) AUDIO_S32MSB, 8 channels.\n");
  3352.  #endif
  3353.  
  3354. +    (void)format;
  3355. +
  3356.      const int dstsize = cvt->len_cvt * 2;
  3357.      Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 8 * 2;
  3358.      const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 8;
  3359. @@ -13796,6 +14490,8 @@
  3360.      fprintf(stderr, "Downsample (x2) AUDIO_S32MSB, 8 channels.\n");
  3361.  #endif
  3362.  
  3363. +    (void)format;
  3364. +
  3365.      const int dstsize = cvt->len_cvt / 2;
  3366.      Sint32 *dst = (Sint32 *) cvt->buf;
  3367.      const Sint32 *src = (Sint32 *) cvt->buf;
  3368. @@ -13850,6 +14546,8 @@
  3369.      fprintf(stderr, "Upsample (x4) AUDIO_S32MSB, 8 channels.\n");
  3370.  #endif
  3371.  
  3372. +    (void)format;
  3373. +
  3374.      const int dstsize = cvt->len_cvt * 4;
  3375.      Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 8 * 4;
  3376.      const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 8;
  3377. @@ -13928,6 +14626,8 @@
  3378.      fprintf(stderr, "Downsample (x4) AUDIO_S32MSB, 8 channels.\n");
  3379.  #endif
  3380.  
  3381. +    (void)format;
  3382. +
  3383.      const int dstsize = cvt->len_cvt / 4;
  3384.      Sint32 *dst = (Sint32 *) cvt->buf;
  3385.      const Sint32 *src = (Sint32 *) cvt->buf;
  3386. @@ -13982,6 +14682,8 @@
  3387.      fprintf(stderr, "Upsample (x2) AUDIO_F32LSB, 1 channels.\n");
  3388.  #endif
  3389.  
  3390. +    (void)format;
  3391. +
  3392.      const int dstsize = cvt->len_cvt * 2;
  3393.      float *dst = ((float *) (cvt->buf + dstsize)) - 1 * 2;
  3394.      const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 1;
  3395. @@ -14009,6 +14711,8 @@
  3396.      fprintf(stderr, "Downsample (x2) AUDIO_F32LSB, 1 channels.\n");
  3397.  #endif
  3398.  
  3399. +    (void)format;
  3400. +
  3401.      const int dstsize = cvt->len_cvt / 2;
  3402.      float *dst = (float *) cvt->buf;
  3403.      const float *src = (float *) cvt->buf;
  3404. @@ -14035,6 +14739,8 @@
  3405.      fprintf(stderr, "Upsample (x4) AUDIO_F32LSB, 1 channels.\n");
  3406.  #endif
  3407.  
  3408. +    (void)format;
  3409. +
  3410.      const int dstsize = cvt->len_cvt * 4;
  3411.      float *dst = ((float *) (cvt->buf + dstsize)) - 1 * 4;
  3412.      const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 1;
  3413. @@ -14064,6 +14770,8 @@
  3414.      fprintf(stderr, "Downsample (x4) AUDIO_F32LSB, 1 channels.\n");
  3415.  #endif
  3416.  
  3417. +    (void)format;
  3418. +
  3419.      const int dstsize = cvt->len_cvt / 4;
  3420.      float *dst = (float *) cvt->buf;
  3421.      const float *src = (float *) cvt->buf;
  3422. @@ -14090,6 +14798,8 @@
  3423.      fprintf(stderr, "Upsample (x2) AUDIO_F32LSB, 2 channels.\n");
  3424.  #endif
  3425.  
  3426. +    (void)format;
  3427. +
  3428.      const int dstsize = cvt->len_cvt * 2;
  3429.      float *dst = ((float *) (cvt->buf + dstsize)) - 2 * 2;
  3430.      const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 2;
  3431. @@ -14122,6 +14832,8 @@
  3432.      fprintf(stderr, "Downsample (x2) AUDIO_F32LSB, 2 channels.\n");
  3433.  #endif
  3434.  
  3435. +    (void)format;
  3436. +
  3437.      const int dstsize = cvt->len_cvt / 2;
  3438.      float *dst = (float *) cvt->buf;
  3439.      const float *src = (float *) cvt->buf;
  3440. @@ -14152,6 +14864,8 @@
  3441.      fprintf(stderr, "Upsample (x4) AUDIO_F32LSB, 2 channels.\n");
  3442.  #endif
  3443.  
  3444. +    (void)format;
  3445. +
  3446.      const int dstsize = cvt->len_cvt * 4;
  3447.      float *dst = ((float *) (cvt->buf + dstsize)) - 2 * 4;
  3448.      const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 2;
  3449. @@ -14188,6 +14902,8 @@
  3450.      fprintf(stderr, "Downsample (x4) AUDIO_F32LSB, 2 channels.\n");
  3451.  #endif
  3452.  
  3453. +    (void)format;
  3454. +
  3455.      const int dstsize = cvt->len_cvt / 4;
  3456.      float *dst = (float *) cvt->buf;
  3457.      const float *src = (float *) cvt->buf;
  3458. @@ -14218,6 +14934,8 @@
  3459.      fprintf(stderr, "Upsample (x2) AUDIO_F32LSB, 4 channels.\n");
  3460.  #endif
  3461.  
  3462. +    (void)format;
  3463. +
  3464.      const int dstsize = cvt->len_cvt * 2;
  3465.      float *dst = ((float *) (cvt->buf + dstsize)) - 4 * 2;
  3466.      const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 4;
  3467. @@ -14260,6 +14978,8 @@
  3468.      fprintf(stderr, "Downsample (x2) AUDIO_F32LSB, 4 channels.\n");
  3469.  #endif
  3470.  
  3471. +    (void)format;
  3472. +
  3473.      const int dstsize = cvt->len_cvt / 2;
  3474.      float *dst = (float *) cvt->buf;
  3475.      const float *src = (float *) cvt->buf;
  3476. @@ -14298,6 +15018,8 @@
  3477.      fprintf(stderr, "Upsample (x4) AUDIO_F32LSB, 4 channels.\n");
  3478.  #endif
  3479.  
  3480. +    (void)format;
  3481. +
  3482.      const int dstsize = cvt->len_cvt * 4;
  3483.      float *dst = ((float *) (cvt->buf + dstsize)) - 4 * 4;
  3484.      const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 4;
  3485. @@ -14348,6 +15070,8 @@
  3486.      fprintf(stderr, "Downsample (x4) AUDIO_F32LSB, 4 channels.\n");
  3487.  #endif
  3488.  
  3489. +    (void)format;
  3490. +
  3491.      const int dstsize = cvt->len_cvt / 4;
  3492.      float *dst = (float *) cvt->buf;
  3493.      const float *src = (float *) cvt->buf;
  3494. @@ -14386,6 +15110,8 @@
  3495.      fprintf(stderr, "Upsample (x2) AUDIO_F32LSB, 6 channels.\n");
  3496.  #endif
  3497.  
  3498. +    (void)format;
  3499. +
  3500.      const int dstsize = cvt->len_cvt * 2;
  3501.      float *dst = ((float *) (cvt->buf + dstsize)) - 6 * 2;
  3502.      const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 6;
  3503. @@ -14438,6 +15164,8 @@
  3504.      fprintf(stderr, "Downsample (x2) AUDIO_F32LSB, 6 channels.\n");
  3505.  #endif
  3506.  
  3507. +    (void)format;
  3508. +
  3509.      const int dstsize = cvt->len_cvt / 2;
  3510.      float *dst = (float *) cvt->buf;
  3511.      const float *src = (float *) cvt->buf;
  3512. @@ -14484,6 +15212,8 @@
  3513.      fprintf(stderr, "Upsample (x4) AUDIO_F32LSB, 6 channels.\n");
  3514.  #endif
  3515.  
  3516. +    (void)format;
  3517. +
  3518.      const int dstsize = cvt->len_cvt * 4;
  3519.      float *dst = ((float *) (cvt->buf + dstsize)) - 6 * 4;
  3520.      const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 6;
  3521. @@ -14548,6 +15278,8 @@
  3522.      fprintf(stderr, "Downsample (x4) AUDIO_F32LSB, 6 channels.\n");
  3523.  #endif
  3524.  
  3525. +    (void)format;
  3526. +
  3527.      const int dstsize = cvt->len_cvt / 4;
  3528.      float *dst = (float *) cvt->buf;
  3529.      const float *src = (float *) cvt->buf;
  3530. @@ -14594,6 +15326,8 @@
  3531.      fprintf(stderr, "Upsample (x2) AUDIO_F32LSB, 8 channels.\n");
  3532.  #endif
  3533.  
  3534. +    (void)format;
  3535. +
  3536.      const int dstsize = cvt->len_cvt * 2;
  3537.      float *dst = ((float *) (cvt->buf + dstsize)) - 8 * 2;
  3538.      const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 8;
  3539. @@ -14656,6 +15390,8 @@
  3540.      fprintf(stderr, "Downsample (x2) AUDIO_F32LSB, 8 channels.\n");
  3541.  #endif
  3542.  
  3543. +    (void)format;
  3544. +
  3545.      const int dstsize = cvt->len_cvt / 2;
  3546.      float *dst = (float *) cvt->buf;
  3547.      const float *src = (float *) cvt->buf;
  3548. @@ -14710,6 +15446,8 @@
  3549.      fprintf(stderr, "Upsample (x4) AUDIO_F32LSB, 8 channels.\n");
  3550.  #endif
  3551.  
  3552. +    (void)format;
  3553. +
  3554.      const int dstsize = cvt->len_cvt * 4;
  3555.      float *dst = ((float *) (cvt->buf + dstsize)) - 8 * 4;
  3556.      const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 8;
  3557. @@ -14788,6 +15526,8 @@
  3558.      fprintf(stderr, "Downsample (x4) AUDIO_F32LSB, 8 channels.\n");
  3559.  #endif
  3560.  
  3561. +    (void)format;
  3562. +
  3563.      const int dstsize = cvt->len_cvt / 4;
  3564.      float *dst = (float *) cvt->buf;
  3565.      const float *src = (float *) cvt->buf;
  3566. @@ -14842,6 +15582,8 @@
  3567.      fprintf(stderr, "Upsample (x2) AUDIO_F32MSB, 1 channels.\n");
  3568.  #endif
  3569.  
  3570. +    (void)format;
  3571. +
  3572.      const int dstsize = cvt->len_cvt * 2;
  3573.      float *dst = ((float *) (cvt->buf + dstsize)) - 1 * 2;
  3574.      const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 1;
  3575. @@ -14869,6 +15611,8 @@
  3576.      fprintf(stderr, "Downsample (x2) AUDIO_F32MSB, 1 channels.\n");
  3577.  #endif
  3578.  
  3579. +    (void)format;
  3580. +
  3581.      const int dstsize = cvt->len_cvt / 2;
  3582.      float *dst = (float *) cvt->buf;
  3583.      const float *src = (float *) cvt->buf;
  3584. @@ -14895,6 +15639,8 @@
  3585.      fprintf(stderr, "Upsample (x4) AUDIO_F32MSB, 1 channels.\n");
  3586.  #endif
  3587.  
  3588. +    (void)format;
  3589. +
  3590.      const int dstsize = cvt->len_cvt * 4;
  3591.      float *dst = ((float *) (cvt->buf + dstsize)) - 1 * 4;
  3592.      const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 1;
  3593. @@ -14924,6 +15670,8 @@
  3594.      fprintf(stderr, "Downsample (x4) AUDIO_F32MSB, 1 channels.\n");
  3595.  #endif
  3596.  
  3597. +    (void)format;
  3598. +
  3599.      const int dstsize = cvt->len_cvt / 4;
  3600.      float *dst = (float *) cvt->buf;
  3601.      const float *src = (float *) cvt->buf;
  3602. @@ -14950,6 +15698,8 @@
  3603.      fprintf(stderr, "Upsample (x2) AUDIO_F32MSB, 2 channels.\n");
  3604.  #endif
  3605.  
  3606. +    (void)format;
  3607. +
  3608.      const int dstsize = cvt->len_cvt * 2;
  3609.      float *dst = ((float *) (cvt->buf + dstsize)) - 2 * 2;
  3610.      const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 2;
  3611. @@ -14982,6 +15732,8 @@
  3612.      fprintf(stderr, "Downsample (x2) AUDIO_F32MSB, 2 channels.\n");
  3613.  #endif
  3614.  
  3615. +    (void)format;
  3616. +
  3617.      const int dstsize = cvt->len_cvt / 2;
  3618.      float *dst = (float *) cvt->buf;
  3619.      const float *src = (float *) cvt->buf;
  3620. @@ -15012,6 +15764,8 @@
  3621.      fprintf(stderr, "Upsample (x4) AUDIO_F32MSB, 2 channels.\n");
  3622.  #endif
  3623.  
  3624. +    (void)format;
  3625. +
  3626.      const int dstsize = cvt->len_cvt * 4;
  3627.      float *dst = ((float *) (cvt->buf + dstsize)) - 2 * 4;
  3628.      const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 2;
  3629. @@ -15048,6 +15802,8 @@
  3630.      fprintf(stderr, "Downsample (x4) AUDIO_F32MSB, 2 channels.\n");
  3631.  #endif
  3632.  
  3633. +    (void)format;
  3634. +
  3635.      const int dstsize = cvt->len_cvt / 4;
  3636.      float *dst = (float *) cvt->buf;
  3637.      const float *src = (float *) cvt->buf;
  3638. @@ -15078,6 +15834,8 @@
  3639.      fprintf(stderr, "Upsample (x2) AUDIO_F32MSB, 4 channels.\n");
  3640.  #endif
  3641.  
  3642. +    (void)format;
  3643. +
  3644.      const int dstsize = cvt->len_cvt * 2;
  3645.      float *dst = ((float *) (cvt->buf + dstsize)) - 4 * 2;
  3646.      const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 4;
  3647. @@ -15120,6 +15878,8 @@
  3648.      fprintf(stderr, "Downsample (x2) AUDIO_F32MSB, 4 channels.\n");
  3649.  #endif
  3650.  
  3651. +    (void)format;
  3652. +
  3653.      const int dstsize = cvt->len_cvt / 2;
  3654.      float *dst = (float *) cvt->buf;
  3655.      const float *src = (float *) cvt->buf;
  3656. @@ -15158,6 +15918,8 @@
  3657.      fprintf(stderr, "Upsample (x4) AUDIO_F32MSB, 4 channels.\n");
  3658.  #endif
  3659.  
  3660. +    (void)format;
  3661. +
  3662.      const int dstsize = cvt->len_cvt * 4;
  3663.      float *dst = ((float *) (cvt->buf + dstsize)) - 4 * 4;
  3664.      const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 4;
  3665. @@ -15208,6 +15970,8 @@
  3666.      fprintf(stderr, "Downsample (x4) AUDIO_F32MSB, 4 channels.\n");
  3667.  #endif
  3668.  
  3669. +    (void)format;
  3670. +
  3671.      const int dstsize = cvt->len_cvt / 4;
  3672.      float *dst = (float *) cvt->buf;
  3673.      const float *src = (float *) cvt->buf;
  3674. @@ -15246,6 +16010,8 @@
  3675.      fprintf(stderr, "Upsample (x2) AUDIO_F32MSB, 6 channels.\n");
  3676.  #endif
  3677.  
  3678. +    (void)format;
  3679. +
  3680.      const int dstsize = cvt->len_cvt * 2;
  3681.      float *dst = ((float *) (cvt->buf + dstsize)) - 6 * 2;
  3682.      const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 6;
  3683. @@ -15298,6 +16064,8 @@
  3684.      fprintf(stderr, "Downsample (x2) AUDIO_F32MSB, 6 channels.\n");
  3685.  #endif
  3686.  
  3687. +    (void)format;
  3688. +
  3689.      const int dstsize = cvt->len_cvt / 2;
  3690.      float *dst = (float *) cvt->buf;
  3691.      const float *src = (float *) cvt->buf;
  3692. @@ -15344,6 +16112,8 @@
  3693.      fprintf(stderr, "Upsample (x4) AUDIO_F32MSB, 6 channels.\n");
  3694.  #endif
  3695.  
  3696. +    (void)format;
  3697. +
  3698.      const int dstsize = cvt->len_cvt * 4;
  3699.      float *dst = ((float *) (cvt->buf + dstsize)) - 6 * 4;
  3700.      const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 6;
  3701. @@ -15408,6 +16178,8 @@
  3702.      fprintf(stderr, "Downsample (x4) AUDIO_F32MSB, 6 channels.\n");
  3703.  #endif
  3704.  
  3705. +    (void)format;
  3706. +
  3707.      const int dstsize = cvt->len_cvt / 4;
  3708.      float *dst = (float *) cvt->buf;
  3709.      const float *src = (float *) cvt->buf;
  3710. @@ -15454,6 +16226,8 @@
  3711.      fprintf(stderr, "Upsample (x2) AUDIO_F32MSB, 8 channels.\n");
  3712.  #endif
  3713.  
  3714. +    (void)format;
  3715. +
  3716.      const int dstsize = cvt->len_cvt * 2;
  3717.      float *dst = ((float *) (cvt->buf + dstsize)) - 8 * 2;
  3718.      const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 8;
  3719. @@ -15516,6 +16290,8 @@
  3720.      fprintf(stderr, "Downsample (x2) AUDIO_F32MSB, 8 channels.\n");
  3721.  #endif
  3722.  
  3723. +    (void)format;
  3724. +
  3725.      const int dstsize = cvt->len_cvt / 2;
  3726.      float *dst = (float *) cvt->buf;
  3727.      const float *src = (float *) cvt->buf;
  3728. @@ -15570,6 +16346,8 @@
  3729.      fprintf(stderr, "Upsample (x4) AUDIO_F32MSB, 8 channels.\n");
  3730.  #endif
  3731.  
  3732. +    (void)format;
  3733. +
  3734.      const int dstsize = cvt->len_cvt * 4;
  3735.      float *dst = ((float *) (cvt->buf + dstsize)) - 8 * 4;
  3736.      const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 8;
  3737. @@ -15648,6 +16426,8 @@
  3738.      fprintf(stderr, "Downsample (x4) AUDIO_F32MSB, 8 channels.\n");
  3739.  #endif
  3740.  
  3741. +    (void)format;
  3742. +
  3743.      const int dstsize = cvt->len_cvt / 4;
  3744.      float *dst = (float *) cvt->buf;
  3745.      const float *src = (float *) cvt->buf;
  3746. diff -ru SDL2-2.0.5/src/audio/sdlgenaudiocvt.pl SDL2-2.0.5_fix-warnings/src/audio/sdlgenaudiocvt.pl
  3747. --- SDL2-2.0.5/src/audio/sdlgenaudiocvt.pl  2016-10-20 07:56:26.000000000 +0300
  3748. +++ SDL2-2.0.5_fix-warnings/src/audio/sdlgenaudiocvt.pl 2016-11-03 18:05:24.404400000 +0200
  3749. @@ -211,6 +211,8 @@
  3750.  static void SDLCALL
  3751.  ${sym}(SDL_AudioCVT * cvt, SDL_AudioFormat format)
  3752.  {
  3753. +    (void)format;
  3754. +
  3755.      int i;
  3756.      const $srctype *src;
  3757.      $tctype *dst;
  3758. @@ -395,6 +397,8 @@
  3759.      fprintf(stderr, "$resample arbitrary (x%f) AUDIO_${from}, ${channels} channels.\\n", cvt->rate_incr);
  3760.  #endif
  3761.  
  3762. +    (void)format;
  3763. +
  3764.      const int srcsize = cvt->len_cvt - $fudge;
  3765.      const int dstsize = (int) (((double)(cvt->len_cvt/${block_align})) * cvt->rate_incr) * ${block_align};
  3766.      register int eps = 0;
  3767. @@ -537,6 +541,8 @@
  3768.      fprintf(stderr, "$resample (x${multiple}) AUDIO_${from}, ${channels} channels.\\n");
  3769.  #endif
  3770.  
  3771. +    (void)format;
  3772. +
  3773.      const int dstsize = cvt->len_cvt $lencvtop $multiple;
  3774.  EOF
  3775.  
  3776. diff -ru SDL2-2.0.5/src/audio/winmm/SDL_winmm.c SDL2-2.0.5_fix-warnings/src/audio/winmm/SDL_winmm.c
  3777. --- SDL2-2.0.5/src/audio/winmm/SDL_winmm.c  2016-10-20 07:56:26.000000000 +0300
  3778. +++ SDL2-2.0.5_fix-warnings/src/audio/winmm/SDL_winmm.c 2016-11-04 01:24:45.299600000 +0200
  3779. @@ -68,6 +68,10 @@
  3780.  CaptureSound(HWAVEIN hwi, UINT uMsg, DWORD_PTR dwInstance,
  3781.            DWORD_PTR dwParam1, DWORD_PTR dwParam2)
  3782.  {
  3783. +    (void)hwi;
  3784. +    (void)dwParam1;
  3785. +    (void)dwParam2;
  3786. +
  3787.      SDL_AudioDevice *this = (SDL_AudioDevice *) dwInstance;
  3788.  
  3789.      /* Only service "buffer is filled" messages */
  3790. @@ -84,6 +88,10 @@
  3791.  FillSound(HWAVEOUT hwo, UINT uMsg, DWORD_PTR dwInstance,
  3792.            DWORD_PTR dwParam1, DWORD_PTR dwParam2)
  3793.  {
  3794. +    (void)hwo;
  3795. +    (void)dwParam1;
  3796. +    (void)dwParam2;
  3797. +
  3798.      SDL_AudioDevice *this = (SDL_AudioDevice *) dwInstance;
  3799.  
  3800.      /* Only service "buffer done playing" messages */
  3801. @@ -141,7 +149,7 @@
  3802.      const int nextbuf = this->hidden->next_buffer;
  3803.      MMRESULT result;
  3804.  
  3805. -    SDL_assert(buflen == this->spec.size);
  3806. +    SDL_assert((Uint32)buflen == this->spec.size);
  3807.  
  3808.      /* Wait for an audio chunk to finish */
  3809.      WaitForSingleObject(this->hidden->audio_sem, INFINITE);
  3810. @@ -245,6 +253,8 @@
  3811.  static int
  3812.  WINMM_OpenDevice(_THIS, void *handle, const char *devname, int iscapture)
  3813.  {
  3814. +    (void)devname;
  3815. +
  3816.      SDL_AudioFormat test_format = SDL_FirstAudioFormat(this->spec.format);
  3817.      int valid_datatype = 0;
  3818.      MMRESULT result;
  3819. diff -ru SDL2-2.0.5/src/cpuinfo/SDL_cpuinfo.c SDL2-2.0.5_fix-warnings/src/cpuinfo/SDL_cpuinfo.c
  3820. --- SDL2-2.0.5/src/cpuinfo/SDL_cpuinfo.c    2016-10-20 07:56:26.000000000 +0300
  3821. +++ SDL2-2.0.5_fix-warnings/src/cpuinfo/SDL_cpuinfo.c   2016-11-03 18:29:57.627400000 +0200
  3822. @@ -315,7 +315,7 @@
  3823.          int a, b, c, d;
  3824.  
  3825.          cpuid(0x80000000, a, b, c, d);
  3826. -        if (a >= 0x80000001) {
  3827. +        if ((unsigned int)a >= 0x80000001) {
  3828.              cpuid(0x80000001, a, b, c, d);
  3829.              return (d & 0x80000000);
  3830.          }
  3831. diff -ru SDL2-2.0.5/src/events/SDL_events.c SDL2-2.0.5_fix-warnings/src/events/SDL_events.c
  3832. --- SDL2-2.0.5/src/events/SDL_events.c  2016-10-20 07:56:26.000000000 +0300
  3833. +++ SDL2-2.0.5_fix-warnings/src/events/SDL_events.c 2016-11-03 18:36:39.690400000 +0200
  3834. @@ -90,7 +90,7 @@
  3835.  SDL_StopEventLoop(void)
  3836.  {
  3837.      const char *report = SDL_GetHint("SDL_EVENT_QUEUE_STATISTICS");
  3838. -    int i;
  3839. +    size_t i;
  3840.      SDL_EventEntry *entry;
  3841.      SDL_SysWMEntry *wmmsg;
  3842.  
  3843. diff -ru SDL2-2.0.5/src/events/SDL_keyboard.c SDL2-2.0.5_fix-warnings/src/events/SDL_keyboard.c
  3844. --- SDL2-2.0.5/src/events/SDL_keyboard.c    2016-10-20 07:56:26.000000000 +0300
  3845. +++ SDL2-2.0.5_fix-warnings/src/events/SDL_keyboard.c   2016-11-03 18:37:32.398400000 +0200
  3846. @@ -904,7 +904,7 @@
  3847.  
  3848.  SDL_Scancode SDL_GetScancodeFromName(const char *name)
  3849.  {
  3850. -    int i;
  3851. +    size_t i;
  3852.  
  3853.      if (!name || !*name) {
  3854.              SDL_InvalidParamError("name");
  3855. diff -ru SDL2-2.0.5/src/events/SDL_mouse.c SDL2-2.0.5_fix-warnings/src/events/SDL_mouse.c
  3856. --- SDL2-2.0.5/src/events/SDL_mouse.c   2016-10-20 07:56:26.000000000 +0300
  3857. +++ SDL2-2.0.5_fix-warnings/src/events/SDL_mouse.c  2016-11-03 18:40:46.878400000 +0200
  3858. @@ -139,6 +139,10 @@
  3859.  static SDL_bool
  3860.  SDL_UpdateMouseFocus(SDL_Window * window, int x, int y, Uint32 buttonstate)
  3861.  {
  3862. +#ifndef SUPPORT_DRAG_OUTSIDE_WINDOW
  3863. +    (void)buttonstate;
  3864. +#endif
  3865. +
  3866.      SDL_Mouse *mouse = SDL_GetMouse();
  3867.      SDL_bool inWindow = SDL_TRUE;
  3868.  
  3869. diff -ru SDL2-2.0.5/src/events/SDL_touch.c SDL2-2.0.5_fix-warnings/src/events/SDL_touch.c
  3870. --- SDL2-2.0.5/src/events/SDL_touch.c   2016-10-20 07:56:26.000000000 +0300
  3871. +++ SDL2-2.0.5_fix-warnings/src/events/SDL_touch.c  2016-11-03 18:42:33.420400000 +0200
  3872. @@ -129,6 +129,8 @@
  3873.  int
  3874.  SDL_AddTouch(SDL_TouchID touchID, const char *name)
  3875.  {
  3876. +    (void)name;
  3877. +
  3878.      SDL_Touch **touchDevices;
  3879.      int index;
  3880.  
  3881. diff -ru SDL2-2.0.5/src/file/SDL_rwops.c SDL2-2.0.5_fix-warnings/src/file/SDL_rwops.c
  3882. --- SDL2-2.0.5/src/file/SDL_rwops.c 2016-10-20 07:56:26.000000000 +0300
  3883. +++ SDL2-2.0.5_fix-warnings/src/file/SDL_rwops.c    2016-11-03 18:47:18.605400000 +0200
  3884. @@ -216,7 +216,7 @@
  3885.              SDL_Error(SDL_EFREAD);
  3886.              return 0;
  3887.          }
  3888. -        read_ahead = SDL_min(total_need, (int) byte_read);
  3889. +        read_ahead = SDL_min(total_need, (size_t) byte_read);
  3890.          SDL_memcpy(ptr, context->hidden.windowsio.buffer.data, read_ahead);
  3891.          context->hidden.windowsio.buffer.size = byte_read;
  3892.          context->hidden.windowsio.buffer.left = byte_read - read_ahead;
  3893. @@ -446,6 +446,11 @@
  3894.  static size_t SDLCALL
  3895.  mem_writeconst(SDL_RWops * context, const void *ptr, size_t size, size_t num)
  3896.  {
  3897. +    (void)context;
  3898. +    (void)ptr;
  3899. +    (void)size;
  3900. +    (void)num;
  3901. +
  3902.      SDL_SetError("Can't write to read-only memory");
  3903.      return 0;
  3904.  }
  3905. diff -ru SDL2-2.0.5/src/haptic/windows/SDL_dinputhaptic.c SDL2-2.0.5_fix-warnings/src/haptic/windows/SDL_dinputhaptic.c
  3906. --- SDL2-2.0.5/src/haptic/windows/SDL_dinputhaptic.c    2016-10-20 07:56:26.000000000 +0300
  3907. +++ SDL2-2.0.5_fix-warnings/src/haptic/windows/SDL_dinputhaptic.c   2016-11-04 10:55:07.514200000 +0200
  3908. @@ -51,6 +51,8 @@
  3909.  static int
  3910.  DI_SetError(const char *str, HRESULT err)
  3911.  {
  3912. +    (void)err;
  3913. +
  3914.      /*
  3915.         SDL_SetError("Haptic: %s - %s: %s", str,
  3916.         DXGetErrorString8A(err), DXGetErrorDescription8A(err));
  3917. @@ -914,7 +916,20 @@
  3918.  /*
  3919.   * Gets the effect type from the generic SDL haptic effect wrapper.
  3920.   */
  3921. -static REFGUID
  3922. +/*
  3923. + * Original return type was REFGUID, which according to the MS docs should be:
  3924. + *      typedef GUID* REFGUID;
  3925. + * https://msdn.microsoft.com/en-us/library/cc237815.aspx
  3926. + *
  3927. + * However in TDM-GCC 5.1.0 x64 it is #define'd as:
  3928. + *      #define REFGUID const GUID *__MIDL_CONST
  3929. + * c:\TDM-GCC-64\x86_64-w64-mingw32\include\guiddef.h:113
  3930. + *
  3931. + * The extra const qualifier is ignored for returned types, causing a
  3932. + * "-Wignored-qualifiers" warning.
  3933. + *
  3934. + */
  3935. +static const GUID *
  3936.  SDL_SYS_HapticEffectType(SDL_HapticEffect * effect)
  3937.  {
  3938.      switch (effect->type) {
  3939. @@ -1035,6 +1050,8 @@
  3940.  int
  3941.  SDL_DINPUT_HapticRunEffect(SDL_Haptic * haptic, struct haptic_effect *effect, Uint32 iterations)
  3942.  {
  3943. +    (void)haptic;
  3944. +
  3945.      HRESULT ret;
  3946.      DWORD iter;
  3947.  
  3948. @@ -1056,6 +1073,8 @@
  3949.  int
  3950.  SDL_DINPUT_HapticStopEffect(SDL_Haptic * haptic, struct haptic_effect *effect)
  3951.  {
  3952. +    (void)haptic;
  3953. +
  3954.      HRESULT ret;
  3955.  
  3956.      ret = IDirectInputEffect_Stop(effect->hweffect->ref);
  3957. @@ -1068,6 +1087,8 @@
  3958.  void
  3959.  SDL_DINPUT_HapticDestroyEffect(SDL_Haptic * haptic, struct haptic_effect *effect)
  3960.  {
  3961. +    (void)haptic;
  3962. +
  3963.      HRESULT ret;
  3964.  
  3965.      ret = IDirectInputEffect_Unload(effect->hweffect->ref);
  3966. @@ -1080,6 +1101,8 @@
  3967.  int
  3968.  SDL_DINPUT_HapticGetEffectStatus(SDL_Haptic * haptic, struct haptic_effect *effect)
  3969.  {
  3970. +    (void)haptic;
  3971. +
  3972.      HRESULT ret;
  3973.      DWORD status;
  3974.  
  3975. diff -ru SDL2-2.0.5/src/haptic/windows/SDL_xinputhaptic.c SDL2-2.0.5_fix-warnings/src/haptic/windows/SDL_xinputhaptic.c
  3976. --- SDL2-2.0.5/src/haptic/windows/SDL_xinputhaptic.c    2016-10-20 07:56:26.000000000 +0300
  3977. +++ SDL2-2.0.5_fix-warnings/src/haptic/windows/SDL_xinputhaptic.c   2016-11-04 10:57:44.519200000 +0200
  3978. @@ -311,6 +311,8 @@
  3979.  int
  3980.  SDL_XINPUT_HapticStopEffect(SDL_Haptic * haptic, struct haptic_effect *effect)
  3981.  {
  3982. +    (void)effect;
  3983. +
  3984.      XINPUT_VIBRATION vibration = { 0, 0 };
  3985.      SDL_LockMutex(haptic->hwdata->mutex);
  3986.      haptic->hwdata->stopTicks = 0;
  3987. @@ -327,30 +329,43 @@
  3988.  int
  3989.  SDL_XINPUT_HapticGetEffectStatus(SDL_Haptic * haptic, struct haptic_effect *effect)
  3990.  {
  3991. +    (void)haptic;
  3992. +    (void)effect;
  3993. +
  3994.      return SDL_Unsupported();
  3995.  }
  3996.  
  3997.  int
  3998.  SDL_XINPUT_HapticSetGain(SDL_Haptic * haptic, int gain)
  3999.  {
  4000. +    (void)haptic;
  4001. +    (void)gain;
  4002. +
  4003.      return SDL_Unsupported();
  4004.  }
  4005.  
  4006.  int
  4007.  SDL_XINPUT_HapticSetAutocenter(SDL_Haptic * haptic, int autocenter)
  4008.  {
  4009. +    (void)haptic;
  4010. +    (void)autocenter;
  4011. +
  4012.      return SDL_Unsupported();
  4013.  }
  4014.  
  4015.  int
  4016.  SDL_XINPUT_HapticPause(SDL_Haptic * haptic)
  4017.  {
  4018. +    (void)haptic;
  4019. +
  4020.      return SDL_Unsupported();
  4021.  }
  4022.  
  4023.  int
  4024.  SDL_XINPUT_HapticUnpause(SDL_Haptic * haptic)
  4025.  {
  4026. +    (void)haptic;
  4027. +
  4028.      return SDL_Unsupported();
  4029.  }
  4030.  
  4031. diff -ru SDL2-2.0.5/src/joystick/SDL_gamecontroller.c SDL2-2.0.5_fix-warnings/src/joystick/SDL_gamecontroller.c
  4032. --- SDL2-2.0.5/src/joystick/SDL_gamecontroller.c    2016-10-20 07:56:26.000000000 +0300
  4033. +++ SDL2-2.0.5_fix-warnings/src/joystick/SDL_gamecontroller.c   2016-11-03 18:53:09.017400000 +0200
  4034. @@ -140,6 +140,8 @@
  4035.   */
  4036.  int SDL_GameControllerEventWatcher(void *userdata, SDL_Event * event)
  4037.  {
  4038. +    (void)userdata;
  4039. +
  4040.      switch(event->type) {
  4041.      case SDL_JOYAXISMOTION:
  4042.          {
  4043. @@ -450,7 +452,7 @@
  4044.      char szGameButton[20];
  4045.      char szJoystickButton[20];
  4046.      SDL_bool bGameButton = SDL_TRUE;
  4047. -    int i = 0;
  4048. +    size_t i = 0;
  4049.      const char *pchPos = pchString;
  4050.  
  4051.      SDL_memset(szGameButton, 0x0, sizeof(szGameButton));
  4052. diff -ru SDL2-2.0.5/src/joystick/SDL_joystick.c SDL2-2.0.5_fix-warnings/src/joystick/SDL_joystick.c
  4053. --- SDL2-2.0.5/src/joystick/SDL_joystick.c  2016-10-20 07:56:26.000000000 +0300
  4054. +++ SDL2-2.0.5_fix-warnings/src/joystick/SDL_joystick.c 2016-11-03 19:07:24.507400000 +0200
  4055. @@ -39,6 +39,10 @@
  4056.  static void
  4057.  SDL_JoystickAllowBackgroundEventsChanged(void *userdata, const char *name, const char *oldValue, const char *hint)
  4058.  {
  4059. +    (void)userdata;
  4060. +    (void)name;
  4061. +    (void)oldValue;
  4062. +
  4063.      if (hint && *hint == '1') {
  4064.          SDL_joystick_allows_background_events = SDL_TRUE;
  4065.      } else {
  4066. @@ -843,13 +847,13 @@
  4067.  void SDL_JoystickGetGUIDString(SDL_JoystickGUID guid, char *pszGUID, int cbGUID)
  4068.  {
  4069.      static const char k_rgchHexToASCII[] = "0123456789abcdef";
  4070. -    int i;
  4071. +    size_t i;
  4072.  
  4073.      if ((pszGUID == NULL) || (cbGUID <= 0)) {
  4074.          return;
  4075.      }
  4076.  
  4077. -    for (i = 0; i < sizeof(guid.data) && i < (cbGUID-1)/2; i++) {
  4078. +    for (i = 0; i < sizeof(guid.data) && i < (size_t)((cbGUID-1)/2); i++) {
  4079.          /* each input byte writes 2 ascii chars, and might write a null byte. */
  4080.          /* If we don't have room for next input byte, stop */
  4081.          unsigned char c = guid.data[i];
  4082. diff -ru SDL2-2.0.5/src/joystick/windows/SDL_dinputjoystick.c SDL2-2.0.5_fix-warnings/src/joystick/windows/SDL_dinputjoystick.c
  4083. --- SDL2-2.0.5/src/joystick/windows/SDL_dinputjoystick.c    2016-10-20 07:56:26.000000000 +0300
  4084. +++ SDL2-2.0.5_fix-warnings/src/joystick/windows/SDL_dinputjoystick.c   2016-11-04 01:34:52.647800000 +0200
  4085. @@ -277,7 +277,7 @@
  4086.      /* Go through RAWINPUT (WinXP and later) to find HID devices. */
  4087.      /* Cache this if we end up using it. */
  4088.      if (SDL_RawDevList == NULL) {
  4089. -        if ((GetRawInputDeviceList(NULL, &SDL_RawDevListCount, sizeof(RAWINPUTDEVICELIST)) == -1) || (!SDL_RawDevListCount)) {
  4090. +        if ((GetRawInputDeviceList(NULL, &SDL_RawDevListCount, sizeof(RAWINPUTDEVICELIST)) == (UINT)-1) || (!SDL_RawDevListCount)) {
  4091.              return SDL_FALSE;  /* oh well. */
  4092.          }
  4093.  
  4094. @@ -287,7 +287,7 @@
  4095.              return SDL_FALSE;
  4096.          }
  4097.  
  4098. -        if (GetRawInputDeviceList(SDL_RawDevList, &SDL_RawDevListCount, sizeof(RAWINPUTDEVICELIST)) == -1) {
  4099. +        if (GetRawInputDeviceList(SDL_RawDevList, &SDL_RawDevListCount, sizeof(RAWINPUTDEVICELIST)) == (UINT)-1) {
  4100.              SDL_free(SDL_RawDevList);
  4101.              SDL_RawDevList = NULL;
  4102.              return SDL_FALSE;  /* oh well. */
  4103. diff -ru SDL2-2.0.5/src/joystick/windows/SDL_windowsjoystick.c SDL2-2.0.5_fix-warnings/src/joystick/windows/SDL_windowsjoystick.c
  4104. --- SDL2-2.0.5/src/joystick/windows/SDL_windowsjoystick.c   2016-10-20 07:56:26.000000000 +0300
  4105. +++ SDL2-2.0.5_fix-warnings/src/joystick/windows/SDL_windowsjoystick.c  2016-11-04 01:36:14.581000000 +0200
  4106. @@ -212,6 +212,8 @@
  4107.  static int
  4108.  SDL_JoystickThread(void *_data)
  4109.  {
  4110. +    (void)_data;
  4111. +
  4112.      SDL_DeviceNotificationData notification_data;
  4113.  
  4114.  #if SDL_JOYSTICK_XINPUT
  4115. diff -ru SDL2-2.0.5/src/joystick/windows/SDL_xinputjoystick.c SDL2-2.0.5_fix-warnings/src/joystick/windows/SDL_xinputjoystick.c
  4116. --- SDL2-2.0.5/src/joystick/windows/SDL_xinputjoystick.c    2016-10-20 07:56:26.000000000 +0300
  4117. +++ SDL2-2.0.5_fix-warnings/src/joystick/windows/SDL_xinputjoystick.c   2016-11-04 01:36:46.155400000 +0200
  4118. @@ -353,6 +353,7 @@
  4119.  void
  4120.  SDL_XINPUT_JoystickClose(SDL_Joystick * joystick)
  4121.  {
  4122. +    (void)joystick;
  4123.  }
  4124.  
  4125.  void
  4126. diff -ru SDL2-2.0.5/src/libm/e_pow.c SDL2-2.0.5_fix-warnings/src/libm/e_pow.c
  4127. --- SDL2-2.0.5/src/libm/e_pow.c 2016-10-20 07:56:26.000000000 +0300
  4128. +++ SDL2-2.0.5_fix-warnings/src/libm/e_pow.c    2016-11-03 19:09:42.450400000 +0200
  4129. @@ -140,7 +140,7 @@
  4130.                   k = (iy >> 20) - 0x3ff;        /* exponent */
  4131.                   if (k > 20) {
  4132.                       j = ly >> (52 - k);
  4133. -                     if ((j << (52 - k)) == ly)
  4134. +                     if ((u_int32_t)(j << (52 - k)) == ly)
  4135.                           yisint = 2 - (j & 1);
  4136.                   } else if (ly == 0) {
  4137.                       j = iy >> (20 - k);
  4138. diff -ru SDL2-2.0.5/src/libm/e_sqrt.c SDL2-2.0.5_fix-warnings/src/libm/e_sqrt.c
  4139. --- SDL2-2.0.5/src/libm/e_sqrt.c    2016-10-20 07:56:26.000000000 +0300
  4140. +++ SDL2-2.0.5_fix-warnings/src/libm/e_sqrt.c   2016-11-03 19:14:06.904400000 +0200
  4141. @@ -168,7 +168,7 @@
  4142.          t = s0;
  4143.          if ((t < ix0) || ((t == ix0) && (t1 <= ix1))) {
  4144.              s1 = t1 + r;
  4145. -            if (((t1 & sign) == sign) && (s1 & sign) == 0)
  4146. +            if (((t1 & sign) == (u_int32_t)sign) && (s1 & sign) == 0)
  4147.                  s0 += 1;
  4148.              ix0 -= t;
  4149.              if (ix1 < t1)
  4150. diff -ru SDL2-2.0.5/src/libm/k_rem_pio2.c SDL2-2.0.5_fix-warnings/src/libm/k_rem_pio2.c
  4151. --- SDL2-2.0.5/src/libm/k_rem_pio2.c    2016-10-20 07:56:26.000000000 +0300
  4152. +++ SDL2-2.0.5_fix-warnings/src/libm/k_rem_pio2.c   2016-11-03 19:16:27.743400000 +0200
  4153. @@ -183,7 +183,7 @@
  4154.      double z, fw, f[20], fq[20], q[20];
  4155.  
  4156.      /* initialize jk */
  4157. -    SDL_assert((prec >= 0) && (prec < SDL_arraysize(init_jk)));
  4158. +    SDL_assert((prec >= 0) && ((size_t)prec < SDL_arraysize(init_jk)));
  4159.      jk = init_jk[prec];
  4160.      SDL_assert((jk >= 2) && (jk <= 6));
  4161.      jp = jk;
  4162. diff -ru SDL2-2.0.5/src/main/windows/SDL_windows_main.c SDL2-2.0.5_fix-warnings/src/main/windows/SDL_windows_main.c
  4163. --- SDL2-2.0.5/src/main/windows/SDL_windows_main.c  2016-10-20 07:56:26.000000000 +0300
  4164. +++ SDL2-2.0.5_fix-warnings/src/main/windows/SDL_windows_main.c 2016-11-04 11:03:56.223200000 +0200
  4165. @@ -168,6 +168,9 @@
  4166.  int
  4167.  console_ansi_main(int argc, char *argv[])
  4168.  {
  4169. +    (void)argc;
  4170. +    (void)argv;
  4171. +
  4172.      return main_getcmdline();
  4173.  }
  4174.  
  4175. @@ -177,6 +180,8 @@
  4176.  int
  4177.  console_wmain(int argc, wchar_t *wargv[], wchar_t *wenvp)
  4178.  {
  4179. +    (void)wenvp;
  4180. +
  4181.      int retval = 0;
  4182.      char **argv = SDL_stack_alloc(char*, argc + 1);
  4183.      int i;
  4184. @@ -199,6 +204,11 @@
  4185.  int WINAPI
  4186.  WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR szCmdLine, int sw)
  4187.  {
  4188. +    (void)hInst;
  4189. +    (void)hPrev;
  4190. +    (void)szCmdLine;
  4191. +    (void)sw;
  4192. +
  4193.      return main_getcmdline();
  4194.  }
  4195.  
  4196. diff -ru SDL2-2.0.5/src/power/windows/SDL_syspower.c SDL2-2.0.5_fix-warnings/src/power/windows/SDL_syspower.c
  4197. --- SDL2-2.0.5/src/power/windows/SDL_syspower.c 2016-10-20 07:56:26.000000000 +0300
  4198. +++ SDL2-2.0.5_fix-warnings/src/power/windows/SDL_syspower.c    2016-11-04 10:59:37.326200000 +0200
  4199. @@ -62,7 +62,7 @@
  4200.          if (pct != 255) {       /* 255 == unknown */
  4201.              *percent = (pct > 100) ? 100 : pct; /* clamp between 0%, 100% */
  4202.          }
  4203. -        if (secs != 0xFFFFFFFF) {       /* ((DWORD)-1) == unknown */
  4204. +        if ((unsigned int)secs != 0xFFFFFFFF) {       /* ((DWORD)-1) == unknown */
  4205.              *seconds = secs;
  4206.          }
  4207.      }
  4208. diff -ru SDL2-2.0.5/src/render/direct3d/SDL_render_d3d.c SDL2-2.0.5_fix-warnings/src/render/direct3d/SDL_render_d3d.c
  4209. --- SDL2-2.0.5/src/render/direct3d/SDL_render_d3d.c 2016-10-20 07:56:26.000000000 +0300
  4210. +++ SDL2-2.0.5_fix-warnings/src/render/direct3d/SDL_render_d3d.c    2016-11-03 19:39:53.963400000 +0200
  4211. @@ -881,6 +881,11 @@
  4212.  static int
  4213.  D3D_RecreateTextureRep(IDirect3DDevice9 *device, D3D_TextureRep *texture, Uint32 format, int w, int h)
  4214.  {
  4215. +    (void)device;
  4216. +    (void)format;
  4217. +    (void)w;
  4218. +    (void)h;
  4219. +
  4220.      if (texture->texture) {
  4221.          IDirect3DTexture9_Release(texture->texture);
  4222.          texture->texture = NULL;
  4223. @@ -1917,6 +1922,8 @@
  4224.  static void
  4225.  D3D_DestroyTexture(SDL_Renderer * renderer, SDL_Texture * texture)
  4226.  {
  4227. +    (void)renderer;
  4228. +
  4229.      D3D_TextureData *data = (D3D_TextureData *) texture->driverdata;
  4230.  
  4231.      if (!data) {
  4232. diff -ru SDL2-2.0.5/src/render/direct3d11/SDL_render_d3d11.c SDL2-2.0.5_fix-warnings/src/render/direct3d11/SDL_render_d3d11.c
  4233. --- SDL2-2.0.5/src/render/direct3d11/SDL_render_d3d11.c 2016-10-20 07:56:26.000000000 +0300
  4234. +++ SDL2-2.0.5_fix-warnings/src/render/direct3d11/SDL_render_d3d11.c    2016-11-03 19:59:37.904400000 +0200
  4235. @@ -149,7 +149,7 @@
  4236.  
  4237.  #ifdef __GNUC__
  4238.  #pragma GCC diagnostic push
  4239. -#pragma GCC diagnostic ignored "-Wunused-const-variable"
  4240. +#pragma GCC diagnostic ignored "-Wunused-variable"
  4241.  #endif
  4242.  
  4243.  static const GUID SDL_IID_IDXGIFactory2 = { 0x50c83a1c, 0xe072, 0x4c48, { 0x87, 0xb0, 0x36, 0x30, 0xfa, 0x36, 0xa6, 0xd0 } };
  4244. @@ -1682,7 +1682,11 @@
  4245.  
  4246.      IDXGIDevice3_Trim(dxgiDevice);
  4247.      SAFE_RELEASE(dxgiDevice);
  4248. +#else
  4249. +    (void)renderer;
  4250.  #endif
  4251. +#else
  4252. +    (void)renderer;
  4253.  #endif
  4254.  }
  4255.  
  4256. @@ -1856,6 +1860,8 @@
  4257.  D3D11_DestroyTexture(SDL_Renderer * renderer,
  4258.                       SDL_Texture * texture)
  4259.  {
  4260. +    (void)renderer;
  4261. +
  4262.      D3D11_TextureData *data = (D3D11_TextureData *)texture->driverdata;
  4263.  
  4264.      if (!data) {
  4265. @@ -1921,7 +1927,7 @@
  4266.      src = (const Uint8 *)pixels;
  4267.      dst = textureMemory.pData;
  4268.      length = w * SDL_BYTESPERPIXEL(format);
  4269. -    if (length == pitch && length == textureMemory.RowPitch) {
  4270. +    if (length == (UINT)pitch && length == textureMemory.RowPitch) {
  4271.          SDL_memcpy(dst, src, length*h);
  4272.      } else {
  4273.          if (length > (UINT)pitch) {
  4274. diff -ru SDL2-2.0.5/src/render/opengl/SDL_render_gl.c SDL2-2.0.5_fix-warnings/src/render/opengl/SDL_render_gl.c
  4275. --- SDL2-2.0.5/src/render/opengl/SDL_render_gl.c    2016-10-20 07:56:26.000000000 +0300
  4276. +++ SDL2-2.0.5_fix-warnings/src/render/opengl/SDL_render_gl.c   2016-11-03 20:02:09.622400000 +0200
  4277. @@ -580,6 +580,8 @@
  4278.  static void
  4279.  GL_WindowEvent(SDL_Renderer * renderer, const SDL_WindowEvent *event)
  4280.  {
  4281. +    (void)renderer;
  4282. +
  4283.      if (event->event == SDL_WINDOWEVENT_SIZE_CHANGED ||
  4284.          event->event == SDL_WINDOWEVENT_SHOWN ||
  4285.          event->event == SDL_WINDOWEVENT_HIDDEN) {
  4286. @@ -610,6 +612,8 @@
  4287.  convert_format(GL_RenderData *renderdata, Uint32 pixel_format,
  4288.                 GLint* internalFormat, GLenum* format, GLenum* type)
  4289.  {
  4290. +    (void)renderdata;
  4291. +
  4292.      switch (pixel_format) {
  4293.      case SDL_PIXELFORMAT_ARGB8888:
  4294.          *internalFormat = GL_RGBA8;
  4295. @@ -949,6 +953,8 @@
  4296.  GL_LockTexture(SDL_Renderer * renderer, SDL_Texture * texture,
  4297.                 const SDL_Rect * rect, void **pixels, int *pitch)
  4298.  {
  4299. +    (void)renderer;
  4300. +
  4301.      GL_TextureData *data = (GL_TextureData *) texture->driverdata;
  4302.  
  4303.      data->locked_rect = *rect;
  4304. diff -ru SDL2-2.0.5/src/render/SDL_yuv_sw.c SDL2-2.0.5_fix-warnings/src/render/SDL_yuv_sw.c
  4305. --- SDL2-2.0.5/src/render/SDL_yuv_sw.c  2016-10-20 07:56:26.000000000 +0300
  4306. +++ SDL2-2.0.5_fix-warnings/src/render/SDL_yuv_sw.c 2016-11-03 19:17:40.513400000 +0200
  4307. @@ -1267,6 +1267,7 @@
  4308.  void
  4309.  SDL_SW_UnlockYUVTexture(SDL_SW_YUVTexture * swdata)
  4310.  {
  4311. +    (void)swdata;
  4312.  }
  4313.  
  4314.  int
  4315. diff -ru SDL2-2.0.5/src/render/software/SDL_render_sw.c SDL2-2.0.5_fix-warnings/src/render/software/SDL_render_sw.c
  4316. --- SDL2-2.0.5/src/render/software/SDL_render_sw.c  2016-10-20 07:56:26.000000000 +0300
  4317. +++ SDL2-2.0.5_fix-warnings/src/render/software/SDL_render_sw.c 2016-11-03 20:13:26.889400000 +0200
  4318. @@ -181,6 +181,8 @@
  4319.  SDL_Renderer *
  4320.  SW_CreateRenderer(SDL_Window * window, Uint32 flags)
  4321.  {
  4322. +    (void)flags;
  4323. +
  4324.      SDL_Surface *surface;
  4325.  
  4326.      surface = SDL_GetWindowSurface(window);
  4327. @@ -223,6 +225,8 @@
  4328.  static int
  4329.  SW_CreateTexture(SDL_Renderer * renderer, SDL_Texture * texture)
  4330.  {
  4331. +    (void)renderer;
  4332. +
  4333.      int bpp;
  4334.      Uint32 Rmask, Gmask, Bmask, Amask;
  4335.  
  4336. @@ -252,6 +256,8 @@
  4337.  static int
  4338.  SW_SetTextureColorMod(SDL_Renderer * renderer, SDL_Texture * texture)
  4339.  {
  4340. +    (void)renderer;
  4341. +
  4342.      SDL_Surface *surface = (SDL_Surface *) texture->driverdata;
  4343.      /* If the color mod is ever enabled (non-white), permanently disable RLE (which doesn't support
  4344.       * color mod) to avoid potentially frequent RLE encoding/decoding.
  4345. @@ -266,6 +272,8 @@
  4346.  static int
  4347.  SW_SetTextureAlphaMod(SDL_Renderer * renderer, SDL_Texture * texture)
  4348.  {
  4349. +    (void)renderer;
  4350. +
  4351.      SDL_Surface *surface = (SDL_Surface *) texture->driverdata;
  4352.      /* If the texture ever has multiple alpha values (surface alpha plus alpha channel), permanently
  4353.       * disable RLE (which doesn't support this) to avoid potentially frequent RLE encoding/decoding.
  4354. @@ -279,6 +287,8 @@
  4355.  static int
  4356.  SW_SetTextureBlendMode(SDL_Renderer * renderer, SDL_Texture * texture)
  4357.  {
  4358. +    (void)renderer;
  4359. +
  4360.      SDL_Surface *surface = (SDL_Surface *) texture->driverdata;
  4361.      /* If add or mod blending are ever enabled, permanently disable RLE (which doesn't support
  4362.       * them) to avoid potentially frequent RLE encoding/decoding.
  4363. @@ -293,6 +303,8 @@
  4364.  SW_UpdateTexture(SDL_Renderer * renderer, SDL_Texture * texture,
  4365.                   const SDL_Rect * rect, const void *pixels, int pitch)
  4366.  {
  4367. +    (void)renderer;
  4368. +
  4369.      SDL_Surface *surface = (SDL_Surface *) texture->driverdata;
  4370.      Uint8 *src, *dst;
  4371.      int row;
  4372. @@ -319,6 +331,8 @@
  4373.  SW_LockTexture(SDL_Renderer * renderer, SDL_Texture * texture,
  4374.                 const SDL_Rect * rect, void **pixels, int *pitch)
  4375.  {
  4376. +    (void)renderer;
  4377. +
  4378.      SDL_Surface *surface = (SDL_Surface *) texture->driverdata;
  4379.  
  4380.      *pixels =
  4381. @@ -331,6 +345,8 @@
  4382.  static void
  4383.  SW_UnlockTexture(SDL_Renderer * renderer, SDL_Texture * texture)
  4384.  {
  4385. +    (void)renderer;
  4386. +    (void)texture;
  4387.  }
  4388.  
  4389.  static int
  4390. @@ -775,6 +791,8 @@
  4391.  static void
  4392.  SW_DestroyTexture(SDL_Renderer * renderer, SDL_Texture * texture)
  4393.  {
  4394. +    (void)renderer;
  4395. +
  4396.      SDL_Surface *surface = (SDL_Surface *) texture->driverdata;
  4397.  
  4398.      SDL_FreeSurface(surface);
  4399. diff -ru SDL2-2.0.5/src/SDL_log.c SDL2-2.0.5_fix-warnings/src/SDL_log.c
  4400. --- SDL2-2.0.5/src/SDL_log.c    2016-10-20 07:56:26.000000000 +0300
  4401. +++ SDL2-2.0.5_fix-warnings/src/SDL_log.c   2016-11-03 16:42:43.358400000 +0200
  4402. @@ -304,7 +304,7 @@
  4403.      SDL_stack_free(message);
  4404.  }
  4405.  
  4406. -#if defined(__WIN32__)
  4407. +#if defined(__WIN32__) && !defined(HAVE_STDIO_H) && !defined(__WINRT__)
  4408.  /* Flag tracking the attachment of the console: 0=unattached, 1=attached, -1=error */
  4409.  static int consoleAttached = 0;
  4410.  
  4411. @@ -320,6 +320,9 @@
  4412.      /* Way too many allocations here, urgh */
  4413.      /* Note: One can't call SDL_SetError here, since that function itself logs. */
  4414.      {
  4415. +        (void)userdata;
  4416. +        (void)category;
  4417. +
  4418.          char *output;
  4419.          size_t length;
  4420.          LPTSTR tstr;
  4421. diff -ru SDL2-2.0.5/src/stdlib/SDL_iconv.c SDL2-2.0.5_fix-warnings/src/stdlib/SDL_iconv.c
  4422. --- SDL2-2.0.5/src/stdlib/SDL_iconv.c   2016-10-20 07:56:26.000000000 +0300
  4423. +++ SDL2-2.0.5_fix-warnings/src/stdlib/SDL_iconv.c  2016-11-03 20:14:38.032400000 +0200
  4424. @@ -208,7 +208,7 @@
  4425.  {
  4426.      int src_fmt = ENCODING_UNKNOWN;
  4427.      int dst_fmt = ENCODING_UNKNOWN;
  4428. -    int i;
  4429. +    size_t i;
  4430.      char fromcode_buffer[64];
  4431.      char tocode_buffer[64];
  4432.  
  4433. diff -ru SDL2-2.0.5/src/stdlib/SDL_malloc.c SDL2-2.0.5_fix-warnings/src/stdlib/SDL_malloc.c
  4434. --- SDL2-2.0.5/src/stdlib/SDL_malloc.c  2016-10-20 07:56:26.000000000 +0300
  4435. +++ SDL2-2.0.5_fix-warnings/src/stdlib/SDL_malloc.c 2016-11-03 20:19:49.371400000 +0200
  4436. @@ -2580,7 +2580,9 @@
  4437.              ((MCHUNK_SIZE & (MCHUNK_SIZE - SIZE_T_ONE)) != 0) ||
  4438.              ((mparams.granularity & (mparams.granularity - SIZE_T_ONE)) != 0)
  4439.              || ((mparams.page_size & (mparams.page_size - SIZE_T_ONE)) != 0))
  4440. +        {
  4441.              ABORT;
  4442. +        }
  4443.      }
  4444.      return 0;
  4445.  }
  4446. @@ -2947,6 +2949,7 @@
  4447.  {
  4448.      if (!PREACTION(m)) {
  4449.          size_t maxfp = 0;
  4450. +        (void)maxfp;
  4451.          size_t fp = 0;
  4452.          size_t used = 0;
  4453.          check_malloc_state(m);
  4454. @@ -3169,8 +3172,9 @@
  4455.        else \
  4456.          XP->child[1] = R;\
  4457.      }\
  4458. -    else\
  4459. +    else {\
  4460.        CORRUPTION_ERROR_ACTION(M);\
  4461. +    }\
  4462.      if (R != 0) {\
  4463.        if (RTCHECK(ok_address(M, R))) {\
  4464.          tchunkptr C0, C1;\
  4465. @@ -3180,20 +3184,23 @@
  4466.              R->child[0] = C0;\
  4467.              C0->parent = R;\
  4468.            }\
  4469. -          else\
  4470. +          else {\
  4471.              CORRUPTION_ERROR_ACTION(M);\
  4472. +          }\
  4473.          }\
  4474.          if ((C1 = X->child[1]) != 0) {\
  4475.            if (RTCHECK(ok_address(M, C1))) {\
  4476.              R->child[1] = C1;\
  4477.              C1->parent = R;\
  4478.            }\
  4479. -          else\
  4480. +          else {\
  4481.              CORRUPTION_ERROR_ACTION(M);\
  4482. +          }\
  4483.          }\
  4484.        }\
  4485. -      else\
  4486. +      else {\
  4487.          CORRUPTION_ERROR_ACTION(M);\
  4488. +      }\
  4489.      }\
  4490.    }\
  4491.  }
  4492. diff -ru SDL2-2.0.5/src/stdlib/SDL_string.c SDL2-2.0.5_fix-warnings/src/stdlib/SDL_string.c
  4493. --- SDL2-2.0.5/src/stdlib/SDL_string.c  2016-10-20 07:56:26.000000000 +0300
  4494. +++ SDL2-2.0.5_fix-warnings/src/stdlib/SDL_string.c 2016-11-03 20:22:32.518400000 +0200
  4495. @@ -500,7 +500,7 @@
  4496.                  trailing_bytes = UTF8_TrailingBytes(c);
  4497.                  if (trailing_bytes)
  4498.                  {
  4499. -                    if (bytes - i != trailing_bytes + 1)
  4500. +                    if (bytes - i != (size_t)(trailing_bytes + 1))
  4501.                          bytes = i;
  4502.  
  4503.                      break;
  4504. diff -ru SDL2-2.0.5/src/test/SDL_test_common.c SDL2-2.0.5_fix-warnings/src/test/SDL_test_common.c
  4505. --- SDL2-2.0.5/src/test/SDL_test_common.c   2016-10-20 07:56:26.000000000 +0300
  4506. +++ SDL2-2.0.5_fix-warnings/src/test/SDL_test_common.c  2016-11-04 11:05:16.157200000 +0200
  4507. @@ -594,7 +594,7 @@
  4508.      fprintf(stderr, "    Flags: 0x%8.8X", info->flags);
  4509.      fprintf(stderr, " (");
  4510.      count = 0;
  4511. -    for (i = 0; i < sizeof(info->flags) * 8; ++i) {
  4512. +    for (i = 0; (size_t)i < sizeof(info->flags) * 8; ++i) {
  4513.          Uint32 flag = (1 << i);
  4514.          if (info->flags & flag) {
  4515.              if (count > 0) {
  4516. diff -ru SDL2-2.0.5/src/timer/windows/SDL_systimer.c SDL2-2.0.5_fix-warnings/src/timer/windows/SDL_systimer.c
  4517. --- SDL2-2.0.5/src/timer/windows/SDL_systimer.c 2016-10-20 07:56:26.000000000 +0300
  4518. +++ SDL2-2.0.5_fix-warnings/src/timer/windows/SDL_systimer.c    2016-11-04 11:00:45.282200000 +0200
  4519. @@ -63,6 +63,9 @@
  4520.  static void
  4521.  SDL_TimerResolutionChanged(void *userdata, const char *name, const char *oldValue, const char *hint)
  4522.  {
  4523. +    (void)userdata;
  4524. +    (void)name;
  4525. +
  4526.      UINT uPeriod;
  4527.  
  4528.      /* Unless the hint says otherwise, let's have good sleep precision */
  4529. diff -ru SDL2-2.0.5/src/video/dummy/SDL_nullevents.c SDL2-2.0.5_fix-warnings/src/video/dummy/SDL_nullevents.c
  4530. --- SDL2-2.0.5/src/video/dummy/SDL_nullevents.c 2016-10-20 07:56:27.000000000 +0300
  4531. +++ SDL2-2.0.5_fix-warnings/src/video/dummy/SDL_nullevents.c    2016-11-03 21:03:51.509400000 +0200
  4532. @@ -34,6 +34,7 @@
  4533.  DUMMY_PumpEvents(_THIS)
  4534.  {
  4535.      /* do nothing. */
  4536. +    (void)_this;
  4537.  }
  4538.  
  4539.  #endif /* SDL_VIDEO_DRIVER_DUMMY */
  4540. diff -ru SDL2-2.0.5/src/video/dummy/SDL_nullframebuffer.c SDL2-2.0.5_fix-warnings/src/video/dummy/SDL_nullframebuffer.c
  4541. --- SDL2-2.0.5/src/video/dummy/SDL_nullframebuffer.c    2016-10-20 07:56:27.000000000 +0300
  4542. +++ SDL2-2.0.5_fix-warnings/src/video/dummy/SDL_nullframebuffer.c   2016-11-03 21:05:47.213400000 +0200
  4543. @@ -30,6 +30,8 @@
  4544.  
  4545.  int SDL_DUMMY_CreateWindowFramebuffer(_THIS, SDL_Window * window, Uint32 * format, void ** pixels, int *pitch)
  4546.  {
  4547. +    (void)_this;
  4548. +
  4549.      SDL_Surface *surface;
  4550.      const Uint32 surface_format = SDL_PIXELFORMAT_RGB888;
  4551.      int w, h;
  4552. @@ -58,6 +60,10 @@
  4553.  
  4554.  int SDL_DUMMY_UpdateWindowFramebuffer(_THIS, SDL_Window * window, const SDL_Rect * rects, int numrects)
  4555.  {
  4556. +    (void)_this;
  4557. +    (void)rects;
  4558. +    (void)numrects;
  4559. +
  4560.      static int frame_number;
  4561.      SDL_Surface *surface;
  4562.  
  4563. @@ -78,6 +84,8 @@
  4564.  
  4565.  void SDL_DUMMY_DestroyWindowFramebuffer(_THIS, SDL_Window * window)
  4566.  {
  4567. +    (void)_this;
  4568. +
  4569.      SDL_Surface *surface;
  4570.  
  4571.      surface = (SDL_Surface *) SDL_SetWindowData(window, DUMMY_SURFACE, NULL);
  4572. diff -ru SDL2-2.0.5/src/video/dummy/SDL_nullvideo.c SDL2-2.0.5_fix-warnings/src/video/dummy/SDL_nullvideo.c
  4573. --- SDL2-2.0.5/src/video/dummy/SDL_nullvideo.c  2016-10-20 07:56:27.000000000 +0300
  4574. +++ SDL2-2.0.5_fix-warnings/src/video/dummy/SDL_nullvideo.c 2016-11-03 21:08:35.764400000 +0200
  4575. @@ -76,6 +76,8 @@
  4576.  static SDL_VideoDevice *
  4577.  DUMMY_CreateDevice(int devindex)
  4578.  {
  4579. +    (void)devindex;
  4580. +
  4581.      SDL_VideoDevice *device;
  4582.  
  4583.      /* Initialize all variables that we clean on shutdown */
  4584. @@ -130,12 +132,17 @@
  4585.  static int
  4586.  DUMMY_SetDisplayMode(_THIS, SDL_VideoDisplay * display, SDL_DisplayMode * mode)
  4587.  {
  4588. +    (void)_this;
  4589. +    (void)display;
  4590. +    (void)mode;
  4591. +
  4592.      return 0;
  4593.  }
  4594.  
  4595.  void
  4596.  DUMMY_VideoQuit(_THIS)
  4597.  {
  4598. +    (void)_this;
  4599.  }
  4600.  
  4601.  #endif /* SDL_VIDEO_DRIVER_DUMMY */
  4602. diff -ru SDL2-2.0.5/src/video/SDL_blit.c SDL2-2.0.5_fix-warnings/src/video/SDL_blit.c
  4603. --- SDL2-2.0.5/src/video/SDL_blit.c 2016-10-20 07:56:26.000000000 +0300
  4604. +++ SDL2-2.0.5_fix-warnings/src/video/SDL_blit.c    2016-11-03 20:24:46.056400000 +0200
  4605. @@ -201,7 +201,7 @@
  4606.  
  4607.          /* Check CPU features */
  4608.          flagcheck = entries[i].cpu;
  4609. -        if ((flagcheck & features) != flagcheck) {
  4610. +        if ((flagcheck & features) != (Uint32)flagcheck) {
  4611.              continue;
  4612.          }
  4613.  
  4614. diff -ru SDL2-2.0.5/src/video/SDL_blit_N.c SDL2-2.0.5_fix-warnings/src/video/SDL_blit_N.c
  4615. --- SDL2-2.0.5/src/video/SDL_blit_N.c   2016-10-20 07:56:26.000000000 +0300
  4616. +++ SDL2-2.0.5_fix-warnings/src/video/SDL_blit_N.c  2016-11-03 20:29:10.511400000 +0200
  4617. @@ -2572,7 +2572,7 @@
  4618.                      MASKOK(dstfmt->Gmask, table[which].dstG) &&
  4619.                      MASKOK(dstfmt->Bmask, table[which].dstB) &&
  4620.                      dstfmt->BytesPerPixel == table[which].dstbpp &&
  4621. -                    (a_need & table[which].alpha) == a_need &&
  4622. +                    (a_need & table[which].alpha) == (unsigned int)a_need &&
  4623.                      ((table[which].blit_features & GetBlitFeatures()) ==
  4624.                       table[which].blit_features))
  4625.                      break;
  4626. diff -ru SDL2-2.0.5/src/video/SDL_bmp.c SDL2-2.0.5_fix-warnings/src/video/SDL_bmp.c
  4627. --- SDL2-2.0.5/src/video/SDL_bmp.c  2016-10-20 07:56:26.000000000 +0300
  4628. +++ SDL2-2.0.5_fix-warnings/src/video/SDL_bmp.c 2016-11-03 20:42:27.017400000 +0200
  4629. @@ -399,7 +399,7 @@
  4630.  
  4631.          default:
  4632.              if (SDL_RWread(src, bits, 1, surface->pitch)
  4633. -                != surface->pitch) {
  4634. +                != (unsigned int)surface->pitch) {
  4635.                  SDL_Error(SDL_EFREAD);
  4636.                  was_error = SDL_TRUE;
  4637.                  goto done;
  4638. @@ -661,7 +661,7 @@
  4639.          pad = ((bw % 4) ? (4 - (bw % 4)) : 0);
  4640.          while (bits > (Uint8 *) surface->pixels) {
  4641.              bits -= surface->pitch;
  4642. -            if (SDL_RWwrite(dst, bits, 1, bw) != bw) {
  4643. +            if (SDL_RWwrite(dst, bits, 1, bw) != (const unsigned int)bw) {
  4644.                  SDL_Error(SDL_EFWRITE);
  4645.                  break;
  4646.              }
  4647. diff -ru SDL2-2.0.5/src/video/SDL_pixels.c SDL2-2.0.5_fix-warnings/src/video/SDL_pixels.c
  4648. --- SDL2-2.0.5/src/video/SDL_pixels.c   2016-10-20 07:56:26.000000000 +0300
  4649. +++ SDL2-2.0.5_fix-warnings/src/video/SDL_pixels.c  2016-11-03 20:45:00.682400000 +0200
  4650. @@ -939,6 +939,8 @@
  4651.  static Uint8 *
  4652.  MapNto1(SDL_PixelFormat * src, SDL_PixelFormat * dst, int *identical)
  4653.  {
  4654. +    (void)src;
  4655. +
  4656.      /* Generate a 256 color dither palette */
  4657.      SDL_Palette dithered;
  4658.      SDL_Color colors[256];
  4659. diff -ru SDL2-2.0.5/src/video/SDL_shape.c SDL2-2.0.5_fix-warnings/src/video/SDL_shape.c
  4660. --- SDL2-2.0.5/src/video/SDL_shape.c    2016-10-20 07:56:26.000000000 +0300
  4661. +++ SDL2-2.0.5_fix-warnings/src/video/SDL_shape.c   2016-11-03 20:46:12.455400000 +0200
  4662. @@ -165,7 +165,7 @@
  4663.              }
  4664.              if(last_opaque == -1)
  4665.                  last_opaque = pixel_opaque;
  4666. -            if(last_opaque != pixel_opaque) {
  4667. +            if(last_opaque != (int)pixel_opaque) {
  4668.                  const int halfwidth = dimensions.w / 2;
  4669.                  const int halfheight = dimensions.h / 2;
  4670.  
  4671. diff -ru SDL2-2.0.5/src/video/SDL_surface.c SDL2-2.0.5_fix-warnings/src/video/SDL_surface.c
  4672. --- SDL2-2.0.5/src/video/SDL_surface.c  2016-10-20 07:56:26.000000000 +0300
  4673. +++ SDL2-2.0.5_fix-warnings/src/video/SDL_surface.c 2016-11-03 20:59:27.285400000 +0200
  4674. @@ -36,6 +36,8 @@
  4675.  SDL_CreateRGBSurfaceWithFormat(Uint32 flags, int width, int height, int depth,
  4676.                                 Uint32 format)
  4677.  {
  4678. +    (void)depth;
  4679. +
  4680.      SDL_Surface *surface;
  4681.  
  4682.      /* The flags are no longer used, make the compiler happy */
  4683. diff -ru SDL2-2.0.5/src/video/SDL_video.c SDL2-2.0.5_fix-warnings/src/video/SDL_video.c
  4684. --- SDL2-2.0.5/src/video/SDL_video.c    2016-10-20 07:56:26.000000000 +0300
  4685. +++ SDL2-2.0.5_fix-warnings/src/video/SDL_video.c   2016-11-03 21:02:33.225400000 +0200
  4686. @@ -248,6 +248,8 @@
  4687.  static int
  4688.  SDL_CreateWindowTexture(SDL_VideoDevice *unused, SDL_Window * window, Uint32 * format, void ** pixels, int *pitch)
  4689.  {
  4690. +    (void)unused;
  4691. +
  4692.      SDL_WindowTextureData *data;
  4693.  
  4694.      data = SDL_GetWindowData(window, SDL_WINDOWTEXTUREDATA);
  4695. @@ -353,6 +355,8 @@
  4696.  static int
  4697.  SDL_UpdateWindowTexture(SDL_VideoDevice *unused, SDL_Window * window, const SDL_Rect * rects, int numrects)
  4698.  {
  4699. +    (void)unused;
  4700. +
  4701.      SDL_WindowTextureData *data;
  4702.      SDL_Rect rect;
  4703.      void *src;
  4704. @@ -383,6 +387,8 @@
  4705.  static void
  4706.  SDL_DestroyWindowTexture(SDL_VideoDevice *unused, SDL_Window * window)
  4707.  {
  4708. +    (void)unused;
  4709. +
  4710.      SDL_WindowTextureData *data;
  4711.  
  4712.      data = SDL_SetWindowData(window, SDL_WINDOWTEXTUREDATA, NULL);
  4713. @@ -2479,6 +2485,7 @@
  4714.  void
  4715.  SDL_OnWindowLeave(SDL_Window * window)
  4716.  {
  4717. +    (void)window;
  4718.  }
  4719.  
  4720.  void
  4721. diff -ru SDL2-2.0.5/src/video/windows/SDL_windowsevents.c SDL2-2.0.5_fix-warnings/src/video/windows/SDL_windowsevents.c
  4722. --- SDL2-2.0.5/src/video/windows/SDL_windowsevents.c    2016-10-20 07:56:26.000000000 +0300
  4723. +++ SDL2-2.0.5_fix-warnings/src/video/windows/SDL_windowsevents.c   2016-11-03 21:15:34.822400000 +0200
  4724. @@ -1002,6 +1002,8 @@
  4725.  void
  4726.  WIN_PumpEvents(_THIS)
  4727.  {
  4728. +    (void)_this;
  4729. +
  4730.      const Uint8 *keystate;
  4731.      MSG msg;
  4732.      DWORD start_ticks = GetTickCount();
  4733. diff -ru SDL2-2.0.5/src/video/windows/SDL_windowsframebuffer.c SDL2-2.0.5_fix-warnings/src/video/windows/SDL_windowsframebuffer.c
  4734. --- SDL2-2.0.5/src/video/windows/SDL_windowsframebuffer.c   2016-10-20 07:56:26.000000000 +0300
  4735. +++ SDL2-2.0.5_fix-warnings/src/video/windows/SDL_windowsframebuffer.c  2016-11-03 21:18:55.698400000 +0200
  4736. @@ -26,6 +26,8 @@
  4737.  
  4738.  int WIN_CreateWindowFramebuffer(_THIS, SDL_Window * window, Uint32 * format, void ** pixels, int *pitch)
  4739.  {
  4740. +    (void)_this;
  4741. +
  4742.      SDL_WindowData *data = (SDL_WindowData *) window->driverdata;
  4743.      size_t size;
  4744.      LPBITMAPINFO info;
  4745. @@ -97,6 +99,10 @@
  4746.  
  4747.  int WIN_UpdateWindowFramebuffer(_THIS, SDL_Window * window, const SDL_Rect * rects, int numrects)
  4748.  {
  4749. +    (void)_this;
  4750. +    (void)rects;
  4751. +    (void)numrects;
  4752. +
  4753.      SDL_WindowData *data = (SDL_WindowData *) window->driverdata;
  4754.  
  4755.      BitBlt(data->hdc, 0, 0, window->w, window->h, data->mdc, 0, 0, SRCCOPY);
  4756. @@ -105,6 +111,8 @@
  4757.  
  4758.  void WIN_DestroyWindowFramebuffer(_THIS, SDL_Window * window)
  4759.  {
  4760. +    (void)_this;
  4761. +
  4762.      SDL_WindowData *data = (SDL_WindowData *) window->driverdata;
  4763.  
  4764.      if (!data) {
  4765. diff -ru SDL2-2.0.5/src/video/windows/SDL_windowskeyboard.c SDL2-2.0.5_fix-warnings/src/video/windows/SDL_windowskeyboard.c
  4766. --- SDL2-2.0.5/src/video/windows/SDL_windowskeyboard.c  2016-10-20 07:56:26.000000000 +0300
  4767. +++ SDL2-2.0.5_fix-warnings/src/video/windows/SDL_windowskeyboard.c 2016-11-03 21:38:20.911400000 +0200
  4768. @@ -111,7 +111,7 @@
  4769.  void
  4770.  WIN_UpdateKeymap()
  4771.  {
  4772. -    int i;
  4773. +    size_t i;
  4774.      SDL_Scancode scancode;
  4775.      SDL_Keycode keymap[SDL_NUM_SCANCODES];
  4776.  
  4777. @@ -398,6 +398,8 @@
  4778.  static void
  4779.  IME_Disable(SDL_VideoData *videodata, HWND hwnd)
  4780.  {
  4781. +    (void)hwnd;
  4782. +
  4783.      if (!videodata->ime_initialized || !videodata->ime_hwnd_current)
  4784.          return;
  4785.  
  4786. @@ -744,7 +746,7 @@
  4787.  
  4788.      length /= sizeof(videodata->ime_composition[0]);
  4789.      videodata->ime_cursor = LOWORD(ImmGetCompositionStringW(himc, GCS_CURSORPOS, 0, 0));
  4790. -    if (videodata->ime_cursor < SDL_arraysize(videodata->ime_composition) && videodata->ime_composition[videodata->ime_cursor] == 0x3000) {
  4791. +    if ((size_t)videodata->ime_cursor < SDL_arraysize(videodata->ime_composition) && videodata->ime_composition[videodata->ime_cursor] == 0x3000) {
  4792.          int i;
  4793.          for (i = videodata->ime_cursor + 1; i < length; ++i)
  4794.              videodata->ime_composition[i - 1] = videodata->ime_composition[i];
  4795. @@ -796,7 +798,7 @@
  4796.      if (videodata->ime_candvertical)
  4797.          *dst++ = TEXT(' ');
  4798.  
  4799. -    while (*candidate && (SDL_arraysize(videodata->ime_candidates[i]) > (dst - videodata->ime_candidates[i])))
  4800. +    while (*candidate && (SDL_arraysize(videodata->ime_candidates[i]) > (size_t)(dst - videodata->ime_candidates[i])))
  4801.          *dst++ = *candidate++;
  4802.  
  4803.      *dst = (WCHAR)'\0';
  4804. @@ -840,7 +842,7 @@
  4805.                      page_start = (cand_list->dwSelection / videodata->ime_candpgsize) * videodata->ime_candpgsize;
  4806.                  }
  4807.                  SDL_memset(&videodata->ime_candidates, 0, sizeof(videodata->ime_candidates));
  4808. -                for (i = page_start, j = 0; (DWORD)i < cand_list->dwCount && j < (int)videodata->ime_candpgsize; i++, j++) {
  4809. +                for (i = page_start, j = 0; (DWORD)i < cand_list->dwCount && j < (UINT)videodata->ime_candpgsize; i++, j++) {
  4810.                      LPCWSTR candidate = (LPCWSTR)((DWORD_PTR)cand_list + cand_list->dwOffset[i]);
  4811.                      IME_AddCandidate(videodata, j, candidate);
  4812.                  }
  4813. @@ -1172,6 +1174,11 @@
  4814.  
  4815.  STDMETHODIMP IPPASink_OnActivated(TSFSink *sink, DWORD dwProfileType, LANGID langid, REFCLSID clsid, REFGUID catid, REFGUID guidProfile, HKL hkl, DWORD dwFlags)
  4816.  {
  4817. +    (void)dwProfileType;
  4818. +    (void)langid;
  4819. +    (void)clsid;
  4820. +    (void)hkl;
  4821. +
  4822.      static const GUID TF_PROFILE_DAYI = { 0x037B2C25, 0x480C, 0x4D7F, { 0xB0, 0x27, 0xD6, 0xCA, 0x6B, 0x69, 0x78, 0x8A } };
  4823.      SDL_VideoData *videodata = (SDL_VideoData *)sink->data;
  4824.      videodata->ime_candlistindexbase = SDL_IsEqualGUID(&TF_PROFILE_DAYI, guidProfile) ? 0 : 1;
  4825. @@ -1308,6 +1315,8 @@
  4826.  static void
  4827.  StopDrawToBitmap(HDC hdc, HBITMAP *hhbm)
  4828.  {
  4829. +    (void)hdc;
  4830. +
  4831.      if (hhbm && *hhbm) {
  4832.          DeleteObject(*hhbm);
  4833.          *hhbm = NULL;
  4834. @@ -1330,6 +1339,7 @@
  4835.  static void
  4836.  IME_DestroyTextures(SDL_VideoData *videodata)
  4837.  {
  4838. +    (void)videodata;
  4839.  }
  4840.  
  4841.  #define SDL_swap(a,b) { \
  4842. @@ -1529,7 +1539,7 @@
  4843.              bottom = size.cy - listborder - listpadding - candmargin;
  4844.          }
  4845.  
  4846. -        if (i == videodata->ime_candsel) {
  4847. +        if ((DWORD)i == videodata->ime_candsel) {
  4848.              SelectObject(hdc, selpen);
  4849.              SelectObject(hdc, selbrush);
  4850.              SetTextColor(hdc, seltextcolor);
  4851. diff -ru SDL2-2.0.5/src/video/windows/SDL_windowsmessagebox.c SDL2-2.0.5_fix-warnings/src/video/windows/SDL_windowsmessagebox.c
  4852. --- SDL2-2.0.5/src/video/windows/SDL_windowsmessagebox.c    2016-10-20 07:56:26.000000000 +0300
  4853. +++ SDL2-2.0.5_fix-warnings/src/video/windows/SDL_windowsmessagebox.c   2016-11-03 21:39:53.754400000 +0200
  4854. @@ -75,6 +75,8 @@
  4855.  
  4856.  static INT_PTR MessageBoxDialogProc(HWND hDlg, UINT iMessage, WPARAM wParam, LPARAM lParam)
  4857.  {
  4858. +    (void)lParam;
  4859. +
  4860.      switch ( iMessage ) {
  4861.      case WM_COMMAND:
  4862.          /* Return the ID of the button that was pushed */
  4863. diff -ru SDL2-2.0.5/src/video/windows/SDL_windowsmodes.c SDL2-2.0.5_fix-warnings/src/video/windows/SDL_windowsmodes.c
  4864. --- SDL2-2.0.5/src/video/windows/SDL_windowsmodes.c 2016-10-20 07:56:26.000000000 +0300
  4865. +++ SDL2-2.0.5_fix-warnings/src/video/windows/SDL_windowsmodes.c    2016-11-03 21:44:07.956400000 +0200
  4866. @@ -42,6 +42,9 @@
  4867.                    LPRECT   lprcMonitor,
  4868.                    LPARAM   dwData)
  4869.  {
  4870. +    (void)hdcMonitor;
  4871. +    (void)lprcMonitor;
  4872. +
  4873.      WIN_GetMonitorDPIData *data = (WIN_GetMonitorDPIData*) dwData;
  4874.      UINT hdpi, vdpi;
  4875.  
  4876. @@ -317,6 +320,9 @@
  4877.  int
  4878.  WIN_GetDisplayBounds(_THIS, SDL_VideoDisplay * display, SDL_Rect * rect)
  4879.  {
  4880. +    (void)_this;
  4881. +    (void)rect;
  4882. +
  4883.      SDL_DisplayModeData *data = (SDL_DisplayModeData *) display->current_mode.driverdata;
  4884.  
  4885.      rect->x = (int)SDL_ceil(data->DeviceMode.dmPosition.x * data->ScaleX);
  4886. @@ -330,6 +336,8 @@
  4887.  int
  4888.  WIN_GetDisplayDPI(_THIS, SDL_VideoDisplay * display, float * ddpi, float * hdpi, float * vdpi)
  4889.  {
  4890. +    (void)_this;
  4891. +
  4892.      SDL_DisplayModeData *data = (SDL_DisplayModeData *) display->current_mode.driverdata;
  4893.  
  4894.      if (ddpi) {
  4895. @@ -348,6 +356,8 @@
  4896.  int
  4897.  WIN_GetDisplayUsableBounds(_THIS, SDL_VideoDisplay * display, SDL_Rect * rect)
  4898.  {
  4899. +    (void)_this;
  4900. +
  4901.      const SDL_DisplayModeData *data = (const SDL_DisplayModeData *) display->current_mode.driverdata;
  4902.      const DEVMODE *pDevMode = &data->DeviceMode;
  4903.      POINT pt = {
  4904. @@ -447,6 +457,8 @@
  4905.  WIN_QuitModes(_THIS)
  4906.  {
  4907.      /* All fullscreen windows should have restored modes by now */
  4908. +
  4909. +    (void)_this;
  4910.  }
  4911.  
  4912.  #endif /* SDL_VIDEO_DRIVER_WINDOWS */
  4913. diff -ru SDL2-2.0.5/src/video/windows/SDL_windowsmouse.c SDL2-2.0.5_fix-warnings/src/video/windows/SDL_windowsmouse.c
  4914. --- SDL2-2.0.5/src/video/windows/SDL_windowsmouse.c 2016-10-20 07:56:26.000000000 +0300
  4915. +++ SDL2-2.0.5_fix-warnings/src/video/windows/SDL_windowsmouse.c    2016-11-04 01:08:13.443800000 +0200
  4916. @@ -291,6 +291,8 @@
  4917.  void
  4918.  WIN_InitMouse(_THIS)
  4919.  {
  4920. +    (void)_this;
  4921. +
  4922.      SDL_Mouse *mouse = SDL_GetMouse();
  4923.  
  4924.      mouse->CreateCursor = WIN_CreateCursor;
  4925. @@ -311,6 +313,8 @@
  4926.  void
  4927.  WIN_QuitMouse(_THIS)
  4928.  {
  4929. +    (void)_this;
  4930. +
  4931.      SDL_Mouse *mouse = SDL_GetMouse();
  4932.      if ( mouse->def_cursor ) {
  4933.          SDL_free(mouse->def_cursor);
  4934. diff -ru SDL2-2.0.5/src/video/windows/SDL_windowsopengl.c SDL2-2.0.5_fix-warnings/src/video/windows/SDL_windowsopengl.c
  4935. --- SDL2-2.0.5/src/video/windows/SDL_windowsopengl.c    2016-10-20 07:56:26.000000000 +0300
  4936. +++ SDL2-2.0.5_fix-warnings/src/video/windows/SDL_windowsopengl.c   2016-11-04 01:10:49.802600000 +0200
  4937. @@ -137,6 +137,8 @@
  4938.  void *
  4939.  WIN_GL_GetProcAddress(_THIS, const char *proc)
  4940.  {
  4941. +    (void)_this;
  4942. +
  4943.      void *func;
  4944.  
  4945.      /* This is to pick up extensions */
  4946. @@ -769,6 +771,8 @@
  4947.  void
  4948.  WIN_GL_SwapWindow(_THIS, SDL_Window * window)
  4949.  {
  4950. +    (void)_this;
  4951. +
  4952.      HDC hdc = ((SDL_WindowData *) window->driverdata)->hdc;
  4953.  
  4954.      SwapBuffers(hdc);
  4955. @@ -787,6 +791,8 @@
  4956.  SDL_bool
  4957.  WIN_GL_SetPixelFormatFrom(_THIS, SDL_Window * fromWindow, SDL_Window * toWindow)
  4958.  {
  4959. +    (void)_this;
  4960. +
  4961.      HDC hfromdc = ((SDL_WindowData *) fromWindow->driverdata)->hdc;
  4962.      HDC htodc = ((SDL_WindowData *) toWindow->driverdata)->hdc;
  4963.      BOOL result;
  4964. diff -ru SDL2-2.0.5/src/video/windows/SDL_windowsvideo.c SDL2-2.0.5_fix-warnings/src/video/windows/SDL_windowsvideo.c
  4965. --- SDL2-2.0.5/src/video/windows/SDL_windowsvideo.c 2016-10-20 07:56:26.000000000 +0300
  4966. +++ SDL2-2.0.5_fix-warnings/src/video/windows/SDL_windowsvideo.c    2016-11-04 01:13:16.941800000 +0200
  4967. @@ -44,6 +44,10 @@
  4968.  
  4969.  static void UpdateWindowsEnableMessageLoop(void *userdata, const char *name, const char *oldValue, const char *newValue)
  4970.  {
  4971. +    (void)userdata;
  4972. +    (void)name;
  4973. +    (void)oldValue;
  4974. +
  4975.      if (newValue && *newValue == '0') {
  4976.          g_WindowsEnableMessageLoop = SDL_FALSE;
  4977.      } else {
  4978. @@ -53,6 +57,10 @@
  4979.  
  4980.  static void UpdateWindowFrameUsableWhileCursorHidden(void *userdata, const char *name, const char *oldValue, const char *newValue)
  4981.  {
  4982. +    (void)userdata;
  4983. +    (void)name;
  4984. +    (void)oldValue;
  4985. +
  4986.      if (newValue && *newValue == '0') {
  4987.          g_WindowFrameUsableWhileCursorHidden = SDL_FALSE;
  4988.      } else {
  4989. @@ -89,6 +97,8 @@
  4990.  static SDL_VideoDevice *
  4991.  WIN_CreateDevice(int devindex)
  4992.  {
  4993. +    (void)devindex;
  4994. +
  4995.      SDL_VideoDevice *device;
  4996.      SDL_VideoData *data;
  4997.  
  4998. diff -ru SDL2-2.0.5/src/video/windows/SDL_windowswindow.c SDL2-2.0.5_fix-warnings/src/video/windows/SDL_windowswindow.c
  4999. --- SDL2-2.0.5/src/video/windows/SDL_windowswindow.c    2016-10-20 07:56:26.000000000 +0300
  5000. +++ SDL2-2.0.5_fix-warnings/src/video/windows/SDL_windowswindow.c   2016-11-04 01:20:16.410200000 +0200
  5001. @@ -81,6 +81,8 @@
  5002.  static void
  5003.  WIN_SetWindowPositionInternal(_THIS, SDL_Window * window, UINT flags)
  5004.  {
  5005. +    (void)_this;
  5006. +
  5007.      SDL_WindowData *data = (SDL_WindowData *)window->driverdata;
  5008.      HWND hwnd = data->hwnd;
  5009.      RECT rect;
  5010. @@ -392,6 +394,8 @@
  5011.  void
  5012.  WIN_SetWindowTitle(_THIS, SDL_Window * window)
  5013.  {
  5014. +    (void)_this;
  5015. +
  5016.      HWND hwnd = ((SDL_WindowData *) window->driverdata)->hwnd;
  5017.      LPTSTR title = WIN_UTF8ToString(window->title);
  5018.      SetWindowText(hwnd, title);
  5019. @@ -401,6 +405,8 @@
  5020.  void
  5021.  WIN_SetWindowIcon(_THIS, SDL_Window * window, SDL_Surface * icon)
  5022.  {
  5023. +    (void)_this;
  5024. +
  5025.      HWND hwnd = ((SDL_WindowData *) window->driverdata)->hwnd;
  5026.      HICON hicon = NULL;
  5027.      BYTE *icon_bmp;
  5028. @@ -464,6 +470,8 @@
  5029.  void
  5030.  WIN_ShowWindow(_THIS, SDL_Window * window)
  5031.  {
  5032. +    (void)_this;
  5033. +
  5034.      HWND hwnd = ((SDL_WindowData *) window->driverdata)->hwnd;
  5035.      ShowWindow(hwnd, SW_SHOW);
  5036.  }
  5037. @@ -471,6 +479,8 @@
  5038.  void
  5039.  WIN_HideWindow(_THIS, SDL_Window * window)
  5040.  {
  5041. +    (void)_this;
  5042. +
  5043.      HWND hwnd = ((SDL_WindowData *) window->driverdata)->hwnd;
  5044.      ShowWindow(hwnd, SW_HIDE);
  5045.  }
  5046. @@ -478,6 +488,8 @@
  5047.  void
  5048.  WIN_RaiseWindow(_THIS, SDL_Window * window)
  5049.  {
  5050. +    (void)_this;
  5051. +
  5052.      HWND hwnd = ((SDL_WindowData *) window->driverdata)->hwnd;
  5053.      SetForegroundWindow(hwnd);
  5054.  }
  5055. @@ -485,6 +497,8 @@
  5056.  void
  5057.  WIN_MaximizeWindow(_THIS, SDL_Window * window)
  5058.  {
  5059. +    (void)_this;
  5060. +
  5061.      SDL_WindowData *data = (SDL_WindowData *)window->driverdata;
  5062.      HWND hwnd = data->hwnd;
  5063.      data->expected_resize = SDL_TRUE;
  5064. @@ -495,6 +509,8 @@
  5065.  void
  5066.  WIN_MinimizeWindow(_THIS, SDL_Window * window)
  5067.  {
  5068. +    (void)_this;
  5069. +
  5070.      HWND hwnd = ((SDL_WindowData *) window->driverdata)->hwnd;
  5071.      ShowWindow(hwnd, SW_MINIMIZE);
  5072.  }
  5073. @@ -523,6 +539,8 @@
  5074.  void
  5075.  WIN_SetWindowResizable(_THIS, SDL_Window * window, SDL_bool resizable)
  5076.  {
  5077. +    (void)_this;
  5078. +
  5079.      SDL_WindowData *data = (SDL_WindowData *)window->driverdata;
  5080.      HWND hwnd = data->hwnd;
  5081.      DWORD style = GetWindowLong(hwnd, GWL_STYLE);
  5082. @@ -539,6 +557,8 @@
  5083.  void
  5084.  WIN_RestoreWindow(_THIS, SDL_Window * window)
  5085.  {
  5086. +    (void)_this;
  5087. +
  5088.      SDL_WindowData *data = (SDL_WindowData *)window->driverdata;
  5089.      HWND hwnd = data->hwnd;
  5090.      data->expected_resize = SDL_TRUE;
  5091. @@ -615,6 +635,8 @@
  5092.  int
  5093.  WIN_SetWindowGammaRamp(_THIS, SDL_Window * window, const Uint16 * ramp)
  5094.  {
  5095. +    (void)_this;
  5096. +
  5097.      SDL_VideoDisplay *display = SDL_GetDisplayForWindow(window);
  5098.      SDL_DisplayData *data = (SDL_DisplayData *) display->driverdata;
  5099.      HDC hdc;
  5100. @@ -634,6 +656,8 @@
  5101.  int
  5102.  WIN_GetWindowGammaRamp(_THIS, SDL_Window * window, Uint16 * ramp)
  5103.  {
  5104. +    (void)_this;
  5105. +
  5106.      SDL_VideoDisplay *display = SDL_GetDisplayForWindow(window);
  5107.      SDL_DisplayData *data = (SDL_DisplayData *) display->driverdata;
  5108.      HDC hdc;
  5109. @@ -653,6 +677,8 @@
  5110.  void
  5111.  WIN_SetWindowGrab(_THIS, SDL_Window * window, SDL_bool grabbed)
  5112.  {
  5113. +    (void)grabbed;
  5114. +
  5115.      WIN_UpdateClipCursor(window);
  5116.  
  5117.      if (window->flags & SDL_WINDOW_FULLSCREEN) {
  5118. @@ -668,6 +694,8 @@
  5119.  void
  5120.  WIN_DestroyWindow(_THIS, SDL_Window * window)
  5121.  {
  5122. +    (void)_this;
  5123. +
  5124.      SDL_WindowData *data = (SDL_WindowData *) window->driverdata;
  5125.  
  5126.      if (data) {
  5127. @@ -695,6 +723,8 @@
  5128.  SDL_bool
  5129.  WIN_GetWindowWMInfo(_THIS, SDL_Window * window, SDL_SysWMinfo * info)
  5130.  {
  5131. +    (void)_this;
  5132. +
  5133.      const SDL_WindowData *data = (const SDL_WindowData *) window->driverdata;
  5134.      if (info->version.major <= SDL_MAJOR_VERSION) {
  5135.          info->subsystem = SDL_SYSWM_WINDOWS;
  5136. @@ -780,6 +810,8 @@
  5137.  
  5138.  void WIN_OnWindowEnter(_THIS, SDL_Window * window)
  5139.  {
  5140. +    (void)_this;
  5141. +
  5142.  #ifdef WM_MOUSELEAVE
  5143.      SDL_WindowData *data = (SDL_WindowData *) window->driverdata;
  5144.      TRACKMOUSEEVENT trackMouseEvent;
  5145. @@ -840,12 +872,17 @@
  5146.  int
  5147.  WIN_SetWindowHitTest(SDL_Window *window, SDL_bool enabled)
  5148.  {
  5149. +    (void)window;
  5150. +    (void)enabled;
  5151. +
  5152.      return 0;  /* just succeed, the real work is done elsewhere. */
  5153.  }
  5154.  
  5155.  int
  5156.  WIN_SetWindowOpacity(_THIS, SDL_Window * window, float opacity)
  5157.  {
  5158. +    (void)_this;
  5159. +
  5160.      const SDL_WindowData *data = (SDL_WindowData *) window->driverdata;
  5161.      const HWND hwnd = data->hwnd;
  5162.      const LONG style = GetWindowLong(hwnd, GWL_EXSTYLE);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement