diff --git a/ChangeLog b/ChangeLog index 17fbfc92..71699c79 100644 --- a/ChangeLog +++ b/ChangeLog @@ -9,6 +9,7 @@ August 21, 2007 + [FOD] Added support for Visual Studio 2005 * [FOD] Robustified MJ2 codecs * [Parvatha] Solved problems with codec reading from image file directory when filename had more than one "." in name +* [Callum Lerwick] Minor cleanup patch, that gets rid of a bunch of "old style declaration" warnings from Intel's compiler August 20, 2007 + [FOD] Added support for the TGA file format in the codec diff --git a/libopenjpeg/bio.c b/libopenjpeg/bio.c index 2a305a79..4c02f464 100644 --- a/libopenjpeg/bio.c +++ b/libopenjpeg/bio.c @@ -114,7 +114,7 @@ static int bio_getbit(opj_bio_t *bio) { ========================================================== */ -opj_bio_t* bio_create() { +opj_bio_t* bio_create(void) { opj_bio_t *bio = (opj_bio_t*)opj_malloc(sizeof(opj_bio_t)); return bio; } diff --git a/libopenjpeg/bio.h b/libopenjpeg/bio.h index d0a809c1..764d7cb2 100644 --- a/libopenjpeg/bio.h +++ b/libopenjpeg/bio.h @@ -64,7 +64,7 @@ typedef struct opj_bio { Create a new BIO handle @return Returns a new BIO handle if successful, returns NULL otherwise */ -opj_bio_t* bio_create(); +opj_bio_t* bio_create(void); /** Destroy a previously created BIO handle @param bio BIO handle to destroy diff --git a/libopenjpeg/image.c b/libopenjpeg/image.c index 84664e9a..26d2074a 100644 --- a/libopenjpeg/image.c +++ b/libopenjpeg/image.c @@ -26,7 +26,7 @@ #include "opj_includes.h" -opj_image_t* opj_image_create0() { +opj_image_t* opj_image_create0(void) { opj_image_t *image = (opj_image_t*)opj_malloc(sizeof(opj_image_t)); return image; } diff --git a/libopenjpeg/image.h b/libopenjpeg/image.h index b56de4ac..04c362eb 100644 --- a/libopenjpeg/image.h +++ b/libopenjpeg/image.h @@ -40,7 +40,7 @@ Create an empty image @todo this function should be removed @return returns an empty image if successful, returns NULL otherwise */ -opj_image_t* opj_image_create0(); +opj_image_t* opj_image_create0(void); /*@}*/ diff --git a/libopenjpeg/j2k_lib.c b/libopenjpeg/j2k_lib.c index 69444a7b..ac030a29 100644 --- a/libopenjpeg/j2k_lib.c +++ b/libopenjpeg/j2k_lib.c @@ -33,7 +33,7 @@ #endif /* WIN32 */ #include "opj_includes.h" -double opj_clock() { +double opj_clock(void) { #ifdef WIN32 /* WIN32: use QueryPerformance (very accurate) */ LARGE_INTEGER freq , t ; diff --git a/libopenjpeg/j2k_lib.h b/libopenjpeg/j2k_lib.h index 3d1b53c9..0db63c60 100644 --- a/libopenjpeg/j2k_lib.h +++ b/libopenjpeg/j2k_lib.h @@ -43,7 +43,7 @@ The functions in J2K_LIB.C are internal utilities mainly used for memory managem Difference in successive opj_clock() calls tells you the elapsed time @return Returns time in seconds */ -double opj_clock(); +double opj_clock(void); /** Allocate a memory block with elements initialized to 0 diff --git a/libopenjpeg/mqc.c b/libopenjpeg/mqc.c index e6dd0079..a9d54565 100644 --- a/libopenjpeg/mqc.c +++ b/libopenjpeg/mqc.c @@ -344,7 +344,7 @@ static void mqc_renormd(opj_mqc_t *mqc) { ========================================================== */ -opj_mqc_t* mqc_create() { +opj_mqc_t* mqc_create(void) { opj_mqc_t *mqc = (opj_mqc_t*)opj_malloc(sizeof(opj_mqc_t)); return mqc; } diff --git a/libopenjpeg/mqc.h b/libopenjpeg/mqc.h index 67f38c12..a3d44b01 100644 --- a/libopenjpeg/mqc.h +++ b/libopenjpeg/mqc.h @@ -79,7 +79,7 @@ typedef struct opj_mqc { Create a new MQC handle @return Returns a new MQC handle if successful, returns NULL otherwise */ -opj_mqc_t* mqc_create(); +opj_mqc_t* mqc_create(void); /** Destroy a previously created MQC handle @param mqc MQC handle to destroy diff --git a/libopenjpeg/openjpeg.c b/libopenjpeg/openjpeg.c index 6f12ff00..f7363b9b 100644 --- a/libopenjpeg/openjpeg.c +++ b/libopenjpeg/openjpeg.c @@ -53,7 +53,7 @@ DllMain(HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved) { /* ---------------------------------------------------------------------- */ -const char* OPJ_CALLCONV opj_version() { +const char* OPJ_CALLCONV opj_version(void) { return OPENJPEG_VERSION; } diff --git a/libopenjpeg/openjpeg.h b/libopenjpeg/openjpeg.h index c3d765e4..483f8d6b 100644 --- a/libopenjpeg/openjpeg.h +++ b/libopenjpeg/openjpeg.h @@ -591,7 +591,7 @@ extern "C" { ========================================================== */ -OPJ_API const char * OPJ_CALLCONV opj_version(); +OPJ_API const char * OPJ_CALLCONV opj_version(void); /* ========================================================== diff --git a/libopenjpeg/raw.c b/libopenjpeg/raw.c index 808a4689..3d231bfd 100644 --- a/libopenjpeg/raw.c +++ b/libopenjpeg/raw.c @@ -42,7 +42,7 @@ ========================================================== */ -opj_raw_t* raw_create() { +opj_raw_t* raw_create(void) { opj_raw_t *raw = (opj_raw_t*)opj_malloc(sizeof(opj_raw_t)); return raw; } diff --git a/libopenjpeg/raw.h b/libopenjpeg/raw.h index c4ff9b32..3c4b372f 100644 --- a/libopenjpeg/raw.h +++ b/libopenjpeg/raw.h @@ -67,7 +67,7 @@ typedef struct opj_raw { Create a new RAW handle @return Returns a new RAW handle if successful, returns NULL otherwise */ -opj_raw_t* raw_create(); +opj_raw_t* raw_create(void); /** Destroy a previously created RAW handle @param raw RAW handle to destroy