diff --git a/reactos/cmake/msvc.cmake b/reactos/cmake/msvc.cmake index bee01acfc80..23b32bb3475 100644 --- a/reactos/cmake/msvc.cmake +++ b/reactos/cmake/msvc.cmake @@ -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") diff --git a/reactos/dll/win32/riched20/msvc.h b/reactos/dll/win32/riched20/msvc.h index 251a7cea54d..0e44d43f48a 100644 --- a/reactos/dll/win32/riched20/msvc.h +++ b/reactos/dll/win32/riched20/msvc.h @@ -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 diff --git a/reactos/dll/win32/windowscodecs/typeof.h b/reactos/dll/win32/windowscodecs/typeof.h index f7c68b18273..34ffcd1bb63 100644 --- a/reactos/dll/win32/windowscodecs/typeof.h +++ b/reactos/dll/win32/windowscodecs/typeof.h @@ -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);