diff options
| author | Mickael Savinaud <savmickael@users.noreply.github.com> | 2011-07-29 08:50:55 +0000 |
|---|---|---|
| committer | Mickael Savinaud <savmickael@users.noreply.github.com> | 2011-07-29 08:50:55 +0000 |
| commit | 5743cca5f851a6c33462f66c2006ca5fc78f3c12 (patch) | |
| tree | 79b6e8fa9323b1213d64019b2b7acfe364e81543 /tests | |
| parent | e716a316f60f66cd5a6fb07b88b2cb8b9c815cec (diff) | |
solve some obvious warnings for WIN platform, increase number of warning reported on the dashboard, correct last warnings with gcc 4.4 (-Wall)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/comparePGXimages.c | 6 | ||||
| -rw-r--r-- | tests/compare_dump_files.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/comparePGXimages.c b/tests/comparePGXimages.c index dc3d9380..7a1e8f1c 100644 --- a/tests/comparePGXimages.c +++ b/tests/comparePGXimages.c @@ -19,7 +19,7 @@ #include "convert.h" double* parseToleranceValues( char* inArg, const int nbcomp); -void comparePGXimages_help_display(); +void comparePGXimages_help_display(void); opj_image_t* readImageFromFilePGX(char* filename, int nbFilenamePGX, char *separator); #ifdef HAVE_LIBPNG int imageToPNG(const opj_image_t* image, const char* filename, int num_comp_select); @@ -49,7 +49,7 @@ typedef struct test_cmp_parameters /******************************************************************************* * Command line help function *******************************************************************************/ -void comparePGXimages_help_display() { +void comparePGXimages_help_display(void) { fprintf(stdout,"\nList of parameters for the comparePGX function \n"); fprintf(stdout,"\n"); fprintf(stdout," -b \t REQUIRED \t filename to the reference/baseline PGX image \n"); @@ -713,12 +713,12 @@ int main(int argc, char **argv) if ( nbPixelDiff > 0) { char it_compc[255]; + it_compc[0] = '\0'; printf("<DartMeasurement name=\"NumberOfPixelsWithDifferences_%d\" type=\"numeric/int\"> %d </DartMeasurement> \n", it_comp, nbPixelDiff); printf("<DartMeasurement name=\"ComponentError_%d\" type=\"numeric/double\"> %f </DartMeasurement> \n", it_comp, sumDiff); #ifdef HAVE_LIBPNG - it_compc[0] = '\0'; sprintf(it_compc, "_%i", it_comp); strcat(it_compc,".png"); strcat(filenamePNGbase_it_comp, it_compc); diff --git a/tests/compare_dump_files.c b/tests/compare_dump_files.c index 42ef2fbb..48b9d40f 100644 --- a/tests/compare_dump_files.c +++ b/tests/compare_dump_files.c @@ -24,7 +24,7 @@ typedef struct test_cmp_parameters /******************************************************************************* * Command line help function *******************************************************************************/ -void compare_dump_files_help_display() { +void compare_dump_files_help_display(void) { fprintf(stdout,"\nList of parameters for the compare_dump_files function \n"); fprintf(stdout,"\n"); fprintf(stdout," -b \t REQUIRED \t filename to the reference/baseline dump file \n"); |
