mirror of
https://github.com/reactos/reactos.git
synced 2024-05-29 00:31:45 +00:00
[CMAKE]
- Enable C4115 (struct defined in function parameter list) and fix its occurrences svn path=/trunk/; revision=61030
This commit is contained in:
parent
ec1b5455e9
commit
03e9b128bc
|
@ -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")
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue