Previous 15994 Revisions Next

r15056 Sunday 29th April, 2012 at 17:42:05 UTC by Firewave
fixed several GCC 4.6 warnings with libflac and lib7z
[src/lib/lib7z]LzmaEnc.c
[src/lib/libflac/libflac]lpc.c stream_decoder.c stream_encoder.c

src/lib/lib7z/LzmaEnc.c
r15055r15056
19051905static SRes LzmaEnc_Alloc(CLzmaEnc *p, UInt32 keepWindowSize, ISzAlloc *alloc, ISzAlloc *allocBig)
19061906{
19071907  UInt32 beforeSize = kNumOpts;
1908//  Bool btMode;
1908  #ifndef _7ZIP_ST
1909  Bool btMode;
1910  #endif
19091911  if (!RangeEnc_Alloc(&p->rc, alloc))
19101912    return SZ_ERROR_MEM;
1911//  btMode = (p->matchFinderBase.btMode != 0);
19121913  #ifndef _7ZIP_ST
1914  btMode = (p->matchFinderBase.btMode != 0);
19131915  p->mtMode = (p->multiThread && !p->fastMode && btMode);
19141916  #endif
19151917 
src/lib/libflac/libflac/lpc.c
r15055r15056
112112void FLAC__lpc_compute_lp_coefficients(const FLAC__real autoc[], unsigned *max_order, FLAC__real lp_coeff[][FLAC__MAX_LPC_ORDER], FLAC__double error[])
113113{
114114   unsigned i, j;
115   FLAC__double r, err, lpc[FLAC__MAX_LPC_ORDER]; // , ref[FLAC__MAX_LPC_ORDER];
115   FLAC__double r, err, /*ref[FLAC__MAX_LPC_ORDER],*/ lpc[FLAC__MAX_LPC_ORDER];
116116
117117   FLAC__ASSERT(0 != max_order);
118118   FLAC__ASSERT(0 < *max_order);
r15055r15056
126126      r = -autoc[i+1];
127127      for(j = 0; j < i; j++)
128128         r -= lpc[j] * autoc[i-j];
129//      ref[i] = (r/=err);
129      //ref[i] = (r/=err);
130130
131131      /* Update LPC coefficients and total error. */
132132      lpc[i]=r;
src/lib/libflac/libflac/stream_decoder.c
r15055r15056
4040#include <sys/types.h> /* for off_t */
4141#if defined _MSC_VER || defined __BORLANDC__ || defined __MINGW32__
4242#if (!defined(_MSC_VER) || _MSC_VER <= 1600) || defined __BORLANDC__ /* @@@ [2G limit] */
43#ifndef fseeko
4344#define fseeko fseek
45#endif
46#ifndef ftello
4447#define ftello ftell
4548#endif
4649#endif
50#endif
4751#include "flac/assert.h"
4852#include "share/alloc.h"
4953#include "protected/stream_decoder.h"
src/lib/libflac/libflac/stream_encoder.c
r15055r15056
4040#include <sys/types.h> /* for off_t */
4141#if defined _MSC_VER || defined __BORLANDC__ || defined __MINGW32__
4242#if (!defined(_MSC_VER) || _MSC_VER <= 1600) || defined __BORLANDC__ /* @@@ [2G limit] */
43#ifndef fseeko
4344#define fseeko fseek
45#endif
46#ifndef ftello
4447#define ftello ftell
4548#endif
4649#endif
50#endif
4751#include "flac/assert.h"
4852#include "flac/stream_decoder.h"
4953#include "share/alloc.h"

Previous 15994 Revisions Next


© 1998-2018 The MESS Team