Minor cleanup patch, that gets rid of a bunch of "old style declaration" warnings from Intel's compiler
This commit is contained in:
parent
2c75c27ee8
commit
ca2a0114a2
|
@ -9,6 +9,7 @@ August 21, 2007
|
||||||
+ [FOD] Added support for Visual Studio 2005
|
+ [FOD] Added support for Visual Studio 2005
|
||||||
* [FOD] Robustified MJ2 codecs
|
* [FOD] Robustified MJ2 codecs
|
||||||
* [Parvatha] Solved problems with codec reading from image file directory when filename had more than one "." in name
|
* [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
|
August 20, 2007
|
||||||
+ [FOD] Added support for the TGA file format in the codec
|
+ [FOD] Added support for the TGA file format in the codec
|
||||||
|
|
|
@ -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));
|
opj_bio_t *bio = (opj_bio_t*)opj_malloc(sizeof(opj_bio_t));
|
||||||
return bio;
|
return bio;
|
||||||
}
|
}
|
||||||
|
|
|
@ -64,7 +64,7 @@ typedef struct opj_bio {
|
||||||
Create a new BIO handle
|
Create a new BIO handle
|
||||||
@return Returns a new BIO handle if successful, returns NULL otherwise
|
@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
|
Destroy a previously created BIO handle
|
||||||
@param bio BIO handle to destroy
|
@param bio BIO handle to destroy
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
|
|
||||||
#include "opj_includes.h"
|
#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));
|
opj_image_t *image = (opj_image_t*)opj_malloc(sizeof(opj_image_t));
|
||||||
return image;
|
return image;
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,7 +40,7 @@ Create an empty image
|
||||||
@todo this function should be removed
|
@todo this function should be removed
|
||||||
@return returns an empty image if successful, returns NULL otherwise
|
@return returns an empty image if successful, returns NULL otherwise
|
||||||
*/
|
*/
|
||||||
opj_image_t* opj_image_create0();
|
opj_image_t* opj_image_create0(void);
|
||||||
|
|
||||||
/*@}*/
|
/*@}*/
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
#endif /* WIN32 */
|
#endif /* WIN32 */
|
||||||
#include "opj_includes.h"
|
#include "opj_includes.h"
|
||||||
|
|
||||||
double opj_clock() {
|
double opj_clock(void) {
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
/* WIN32: use QueryPerformance (very accurate) */
|
/* WIN32: use QueryPerformance (very accurate) */
|
||||||
LARGE_INTEGER freq , t ;
|
LARGE_INTEGER freq , t ;
|
||||||
|
|
|
@ -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
|
Difference in successive opj_clock() calls tells you the elapsed time
|
||||||
@return Returns time in seconds
|
@return Returns time in seconds
|
||||||
*/
|
*/
|
||||||
double opj_clock();
|
double opj_clock(void);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Allocate a memory block with elements initialized to 0
|
Allocate a memory block with elements initialized to 0
|
||||||
|
|
|
@ -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));
|
opj_mqc_t *mqc = (opj_mqc_t*)opj_malloc(sizeof(opj_mqc_t));
|
||||||
return mqc;
|
return mqc;
|
||||||
}
|
}
|
||||||
|
|
|
@ -79,7 +79,7 @@ typedef struct opj_mqc {
|
||||||
Create a new MQC handle
|
Create a new MQC handle
|
||||||
@return Returns a new MQC handle if successful, returns NULL otherwise
|
@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
|
Destroy a previously created MQC handle
|
||||||
@param mqc MQC handle to destroy
|
@param mqc MQC handle to destroy
|
||||||
|
|
|
@ -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;
|
return OPENJPEG_VERSION;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -591,7 +591,7 @@ extern "C" {
|
||||||
==========================================================
|
==========================================================
|
||||||
*/
|
*/
|
||||||
|
|
||||||
OPJ_API const char * OPJ_CALLCONV opj_version();
|
OPJ_API const char * OPJ_CALLCONV opj_version(void);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
==========================================================
|
==========================================================
|
||||||
|
|
|
@ -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));
|
opj_raw_t *raw = (opj_raw_t*)opj_malloc(sizeof(opj_raw_t));
|
||||||
return raw;
|
return raw;
|
||||||
}
|
}
|
||||||
|
|
|
@ -67,7 +67,7 @@ typedef struct opj_raw {
|
||||||
Create a new RAW handle
|
Create a new RAW handle
|
||||||
@return Returns a new RAW handle if successful, returns NULL otherwise
|
@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
|
Destroy a previously created RAW handle
|
||||||
@param raw RAW handle to destroy
|
@param raw RAW handle to destroy
|
||||||
|
|
Loading…
Reference in New Issue