diff options
| author | Antonin Descampe <antonin@gmail.com> | 2006-01-20 16:53:05 +0000 |
|---|---|---|
| committer | Antonin Descampe <antonin@gmail.com> | 2006-01-20 16:53:05 +0000 |
| commit | 6a52f1a9df27215454b6ac9d9537d621882eb2c0 (patch) | |
| tree | 815044f42244799d5c9bb200a4dd106f3525d279 /libopenjpeg | |
| parent | 197b0505cb07544104f336d56384655c1f589f91 (diff) | |
fixed various minor warnings with gdcm patches
Diffstat (limited to 'libopenjpeg')
| -rw-r--r-- | libopenjpeg/dwt.c | 1 | ||||
| -rw-r--r-- | libopenjpeg/event.c | 8 | ||||
| -rw-r--r-- | libopenjpeg/jp2.c | 5 |
3 files changed, 9 insertions, 5 deletions
diff --git a/libopenjpeg/dwt.c b/libopenjpeg/dwt.c index 5a36e14f..702bf6cf 100644 --- a/libopenjpeg/dwt.c +++ b/libopenjpeg/dwt.c @@ -577,6 +577,7 @@ void dwt_decode_real(opj_tcd_tilecomp_t * tilec, int stop) { /* Get gain of 9-7 wavelet transform. */ /* </summary> */ int dwt_getgain_real(int orient) { + (void)orient; return 0; } diff --git a/libopenjpeg/event.c b/libopenjpeg/event.c index d105cca2..248ef6e3 100644 --- a/libopenjpeg/event.c +++ b/libopenjpeg/event.c @@ -26,9 +26,9 @@ #include "opj_includes.h" -// ========================================================== -// Utility functions -// ========================================================== +/* ========================================================== + Utility functions + ==========================================================*/ #ifndef WIN32 static char* @@ -57,7 +57,7 @@ _itoa(int i, char *a, int r) { return a; } -#endif // !WIN32 +#endif /* !WIN32 */ /* ----------------------------------------------------------------------- */ diff --git a/libopenjpeg/jp2.c b/libopenjpeg/jp2.c index 0d66e63e..e224f4c6 100644 --- a/libopenjpeg/jp2.c +++ b/libopenjpeg/jp2.c @@ -42,7 +42,7 @@ Read box headers @return Returns true if successful, returns false otherwise */ static bool jp2_read_boxhdr(opj_common_ptr cinfo, opj_cio_t *cio, opj_jp2_box_t *box); -static void jp2_write_url(opj_cio_t *cio, char *Idx_file); +/*static void jp2_write_url(opj_cio_t *cio, char *Idx_file);*/ /** Read the IHDR box - Image Header box @param jp2 JP2 handle @@ -125,6 +125,7 @@ static bool jp2_read_boxhdr(opj_common_ptr cinfo, opj_cio_t *cio, opj_jp2_box_t return true; } +#if 0 static void jp2_write_url(opj_cio_t *cio, char *Idx_file) { unsigned int i; opj_jp2_box_t box; @@ -146,6 +147,7 @@ static void jp2_write_url(opj_cio_t *cio, char *Idx_file) { cio_write(cio, box.length, 4); /* L */ cio_seek(cio, box.init_pos + box.length); } +#endif static bool jp2_read_ihdr(opj_jp2_t *jp2, opj_cio_t *cio) { opj_jp2_box_t box; @@ -682,6 +684,7 @@ void jp2_setup_encoder(opj_jp2_t *jp2, opj_cparameters_t *parameters, opj_image_ } bool jp2_encode(opj_jp2_t *jp2, opj_cio_t *cio, opj_image_t *image, char *index) { + (void)image; /* JP2 encoding */ |
