fix(build): Remove unused variable and fix const warning.

This commit is contained in:
Et7f3 2021-10-10 19:21:41 +02:00
parent 7061c79c22
commit 55ade52712
4 changed files with 3 additions and 4 deletions

View file

@ -22,7 +22,7 @@
void *byte2double(long n, const void *p, double weight, double bias) { void *byte2double(long n, const void *p, double weight, double bias) {
long i; long i;
double f, *dst; double f, *dst;
unsigned char *src; const unsigned char *src;
if ((dst = valloc(n * sizeof(double)))) { if ((dst = valloc(n * sizeof(double)))) {
for (src = p, i = 0; i < n; ++i) { for (src = p, i = 0; i < n; ++i) {
f = src[i]; f = src[i];

View file

@ -21,7 +21,7 @@
#define DCT(A, B, C, D, E, F, G, H, T, C0, C1, C2, C3, C4) \ #define DCT(A, B, C, D, E, F, G, H, T, C0, C1, C2, C3, C4) \
do { \ do { \
T z1, z2, z3, z4, z5, z11, z13; \ T z1, z2, z3, z4, z5, z11, z13; \
T t0, t1, t2, t3, t4, t5, t6, t7, t8, t10, t11, t12, t13; \ T t0, t1, t2, t3, t4, t5, t6, t7, t10, t11, t12, t13; \
t0 = A + H; \ t0 = A + H; \
t7 = A - H; \ t7 = A - H; \
t1 = B + G; \ t1 = B + G; \

View file

@ -30,7 +30,6 @@
*/ */
void float2short(size_t n, short pcm16[n][8], const float binary32[n][8]) { void float2short(size_t n, short pcm16[n][8], const float binary32[n][8]) {
size_t i, j; size_t i, j;
float f[8], w[8];
for (i = 0; i < n; ++i) { for (i = 0; i < n; ++i) {
for (j = 0; j < 8; ++j) { for (j = 0; j < 8; ++j) {
pcm16[i][j] = pcm16[i][j] =

View file

@ -27,7 +27,7 @@
* @see ITU G.711 * @see ITU G.711
*/ */
int unalaw(int x) { int unalaw(int x) {
int e, i, m, r; int e, i, m;
i = (x ^ 85) & 127; i = (x ^ 85) & 127;
e = i >> 4; e = i >> 4;
m = i & 15; m = i & 15;