Fix a bunch of warnings reported by gcc (unused results from fwrite)

This commit is contained in:
Mathieu Malaterre
2011-12-12 08:55:44 +00:00
parent b081ff2813
commit 72867bc692
3 changed files with 144 additions and 87 deletions

View File

@@ -64,7 +64,7 @@ typedef int opj_bool;
#define OPJ_TRUE 1
#define OPJ_FALSE 0
// Avoid compile-time warning because parameter is not used
/* Avoid compile-time warning because parameter is not used */
#define OPJ_ARG_NOT_USED(x) (void)(x)
/*
==========================================================
@@ -142,7 +142,7 @@ typedef enum CODEC_FORMAT {
CODEC_UNKNOWN = -1, /**< place-holder */
CODEC_J2K = 0, /**< JPEG-2000 codestream : read/write */
CODEC_JPT = 1, /**< JPT-stream (JPEG 2000, JPIP) : read only */
CODEC_JP2 = 2, /**< JPEG-2000 file format : read/write */
CODEC_JP2 = 2 /**< JPEG-2000 file format : read/write */
} OPJ_CODEC_FORMAT;
/**