[trunk] Fix warnings about shadow variables
[openjpeg.git] / src / bin / mj2 / opj_mj2_wrap.c
index efc08d3d8033198142ba0ec195e00b25704bff62..e164e2ea599bc5302068aae2f6664e9d74bfaca2 100644 (file)
@@ -85,9 +85,7 @@ static int test_image(const char *fname, mj2_cparameters_t *cp)
 
        cio = opj_cio_open((opj_common_ptr)dinfo, src, src_len);
 
-#if 0 /* MM: FIXME */
        image = opj_decode(dinfo, cio);
-#endif
 
        free(src); cio->buffer = NULL;
        opj_cio_close(cio);
@@ -183,21 +181,21 @@ fin:
 /**
 sample error callback expecting a FILE* client object
 */
-void error_callback(const char *msg, void *client_data) {
+static void error_callback(const char *msg, void *client_data) {
        FILE *stream = (FILE*)client_data;
        fprintf(stream, "[ERROR] %s", msg);
 }
 /**
 sample warning callback expecting a FILE* client object
 */
-void warning_callback(const char *msg, void *client_data) {
+static void warning_callback(const char *msg, void *client_data) {
        FILE *stream = (FILE*)client_data;
        fprintf(stream, "[WARNING] %s", msg);
 }
 /**
 sample debug callback expecting a FILE* client object
 */
-void info_callback(const char *msg, void *client_data) {
+static void info_callback(const char *msg, void *client_data) {
        FILE *stream = (FILE*)client_data;
        fprintf(stream, "[INFO] %s", msg);
 }