- Enable C4115 (struct defined in function parameter list) and fix its occurrences

svn path=/trunk/; revision=61030
This commit is contained in:
Thomas Faber 2013-11-18 00:04:15 +00:00
parent ec1b5455e9
commit 03e9b128bc
3 changed files with 21 additions and 6 deletions

View file

@ -51,6 +51,10 @@ add_compile_flags("/wd4290")
# - C4700: uninitialized variable usage
add_compile_flags("/we4022 /we4047 /we4098 /we4113 /we4129 /we4229 /we4700")
# Enable warnings above the default level, but don't treat them as errors:
# - C4115: named type definition in parentheses
add_compile_flags("/w14115")
# Debugging
#if(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
if(CMAKE_BUILD_TYPE STREQUAL "Debug")

View file

@ -4,13 +4,18 @@
#define typeof(X_) __typeof_ ## X_
struct ITextHost;
struct _RECT;
struct _CHARFORMATW;
struct _PARAFORMAT;
struct _POINT;
struct _SIZEL;
struct HDC__;
struct ITextHost;
struct tagRECT;
struct _RECTL;
struct _charformatw;
struct _paraformat;
struct tagPOINT;
enum _TXTBACKSTYLE;
struct tagSIZE;
struct ITextServices;
struct tagDVTARGETDEVICE;
struct IDropTarget;
#define WINAPI __stdcall
#define HRESULT int

View file

@ -16,6 +16,12 @@
#define __typeof_wchar unsigned short
#endif
struct jpeg_decompress_struct;
struct jpeg_compress_struct;
struct png_struct_def;
struct png_color_struct;
struct png_color_16_struct;
typedef struct jpeg_error_mgr * (__cdecl typeof(jpeg_std_error))(struct jpeg_error_mgr *);
typedef void (__cdecl typeof(jpeg_CreateDecompress))(struct jpeg_decompress_struct *, int, __typeof_size);
typedef int (__cdecl typeof(jpeg_read_header))(struct jpeg_decompress_struct *, int);