t1_generate_luts.c: fix compiler warnings

This commit is contained in:
Even Rouault 2017-06-02 09:36:25 +02:00
parent 2ba861c37c
commit 7e8b502842
1 changed files with 4 additions and 4 deletions

View File

@ -39,7 +39,7 @@
#include "opj_includes.h" #include "opj_includes.h"
static int t1_init_ctxno_zc(int f, int orient) static int t1_init_ctxno_zc(OPJ_UINT32 f, OPJ_UINT32 orient)
{ {
int h, v, d, n, t, hv; int h, v, d, n, t, hv;
n = 0; n = 0;
@ -116,7 +116,7 @@ static int t1_init_ctxno_zc(int f, int orient)
return (T1_CTXNO_ZC + n); return (T1_CTXNO_ZC + n);
} }
static int t1_init_ctxno_sc(int f) static int t1_init_ctxno_sc(OPJ_UINT32 f)
{ {
int hc, vc, n; int hc, vc, n;
n = 0; n = 0;
@ -160,7 +160,7 @@ static int t1_init_ctxno_sc(int f)
return (T1_CTXNO_SC + n); return (T1_CTXNO_SC + n);
} }
static int t1_init_spb(int f) static int t1_init_spb(OPJ_UINT32 f)
{ {
int hc, vc, n; int hc, vc, n;
@ -220,7 +220,7 @@ int main(int argc, char **argv)
/* lut_ctxno_zc */ /* lut_ctxno_zc */
for (j = 0; j < 4; ++j) { for (j = 0; j < 4; ++j) {
for (i = 0; i < 512; ++i) { for (i = 0; i < 512; ++i) {
int orient = j; OPJ_UINT32 orient = j;
if (orient == 2) { if (orient == 2) {
orient = 1; orient = 1;
} else if (orient == 1) { } else if (orient == 1) {