no warnings when compiling /W3

compiling all test cases and compilers in test.sbm
   Compilers:
     32-bit:
       VS2015
       VS2013
       VS2008
       VC6 (1998)
       clang-cl 9.0.1
     64-bit
       VS2015
       clang-cl 9.0.1
This commit is contained in:
Sean Barrett
2019-03-04 14:45:06 -08:00
parent 96b4748d57
commit a0b521fcf2
24 changed files with 553 additions and 469 deletions

View File

@@ -1,3 +1,4 @@
#define _CRT_SECURE_NO_WARNINGS
#include <stdlib.h>
#include <stdio.h>
@@ -56,8 +57,11 @@ void stbir_progress(float p)
STBIR_ASSERT(p >= 0 && p <= 1);
}
#define STBIR_PROGRESS_REPORT stbir_progress
#ifdef __clang__
#define STBIRDEF static inline
#endif
#define STBIR_PROGRESS_REPORT stbir_progress
#define STB_IMAGE_RESIZE_IMPLEMENTATION
#define STB_IMAGE_RESIZE_STATIC
#include "stb_image_resize.h"
@@ -127,7 +131,7 @@ inline float mtfrand()
return (float)(mtrand() % ninenine)/ninenine;
}
static void resizer(int argc, char **argv)
void resizer(int argc, char **argv)
{
unsigned char* input_pixels;
unsigned char* output_pixels;
@@ -144,7 +148,7 @@ static void resizer(int argc, char **argv)
exit(0);
}
static void performance(int argc, char **argv)
void performance(int argc, char **argv)
{
unsigned char* input_pixels;
unsigned char* output_pixels;