! : changed
+ : added
+August 10, 2011
+! [mickael] removed unused parameters warnings with the solution proposed by myself and Bob Friesenhahn.
+
August 9, 2011
- [antonin] removed xcode project files (cmake and autotools are now the only supported build methods)
option_t long_option[]={
{"ImgDir",REQ_ARG, NULL ,'y'},
};
-
const char optlist[] = "i:o:h";
+
+ OPJ_ARG_NOT_USED(indexfilename);
+
totlen=sizeof(long_option);
img_fol->set_out_format = 0;
do {
/** mem allocation for TLM marker*/
int j2k_calculate_tp(opj_cp_t *cp,int img_numcomp,opj_image_t *image,opj_j2k_t *j2k ){
int pino,tileno,totnum_tp=0;
+
+ OPJ_ARG_NOT_USED(img_numcomp);
+
j2k->cur_totnum_tp = (int *) opj_malloc(cp->tw * cp->th * sizeof(int));
for (tileno = 0; tileno < cp->tw * cp->th; tileno++) {
int cur_totnum_tp = 0;
opj_jpt_msg_header_t header;
int position;
+ OPJ_ARG_NOT_USED(cstr_info);
+
opj_common_ptr cinfo = j2k->cinfo;
-
j2k->cio = cio;
/* create an empty image */
unsigned short i, j;
unsigned char uc;
+ OPJ_ARG_NOT_USED(box);
+ OPJ_ARG_NOT_USED(jp2);
+
/* Part 1, I.5.3.4: 'There shall be at most one Palette box inside
* a JP2 Header box' :
*/
opj_jp2_cmap_comp_t *cmap;
unsigned short i, nr_channels;
+ OPJ_ARG_NOT_USED(box);
+ OPJ_ARG_NOT_USED(jp2);
+
/* Need nr_channels: */
if(color->jp2_pclr == NULL) return OPJ_FALSE;
opj_jp2_cdef_info_t *info;
unsigned short i, n;
+ OPJ_ARG_NOT_USED(box);
+ OPJ_ARG_NOT_USED(jp2);
+
/* Part 1, I.5.3.6: 'The shall be at most one Channel Definition box
* inside a JP2 Header box.'
*/
#ifndef OPJ_STATIC
BOOL APIENTRY
DllMain(HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved) {
+
+ OPJ_ARG_NOT_USED(lpReserved);
+ OPJ_ARG_NOT_USED(hModule);
+
switch (ul_reason_for_call) {
case DLL_PROCESS_ATTACH :
break;
}
#endif
+// Avoid compile-time warning because parameter is not used
+#define OPJ_ARG_NOT_USED(x) (void)(x)
+
#include "j2k_lib.h"
#include "opj_malloc.h"
#include "event.h"
int vsc)
{
int v, flag;
-
opj_raw_t *raw = t1->raw; /* RAW component */
+ OPJ_ARG_NOT_USED(orient);
+
flag = vsc ? ((*flagsp) & (~(T1_SIG_S | T1_SIG_SE | T1_SIG_SW | T1_SGN_S))) : (*flagsp);
if ((flag & T1_SIG_OTH) && !(flag & (T1_SIG | T1_VISIT))) {
if (raw_decode(raw)) {
int oneplushalf)
{
int v, flag;
-
opj_mqc_t *mqc = t1->mqc; /* MQC component */
+ OPJ_ARG_NOT_USED(orient);
+
flag = *flagsp;
mqc_setcurctx(mqc, t1_getctxno_sc(flag));
v = mqc_decode(mqc) ^ t1_getspb(flag);
opj_tcp_t *tcp;
opj_tcd_tile_t *tile;
+ OPJ_ARG_NOT_USED(cstr_info);
+
tcd->cp = cp;
tcp = &(cp->tcps[cp->tileno[tileno]]);