Author: tfaber
Date: Mon Nov 18 00:04:15 2013
New Revision: 61030
URL:
http://svn.reactos.org/svn/reactos?rev=61030&view=rev
Log:
[CMAKE]
- Enable C4115 (struct defined in function parameter list) and fix its occurrences
Modified:
trunk/reactos/cmake/msvc.cmake
trunk/reactos/dll/win32/riched20/msvc.h
trunk/reactos/dll/win32/windowscodecs/typeof.h
Modified: trunk/reactos/cmake/msvc.cmake
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/cmake/msvc.cmake?rev=61030…
==============================================================================
--- trunk/reactos/cmake/msvc.cmake [iso-8859-1] (original)
+++ trunk/reactos/cmake/msvc.cmake [iso-8859-1] Mon Nov 18 00:04:15 2013
@@ -50,6 +50,10 @@
# - C4229: modifiers on data are ignored
# - 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")
Modified: trunk/reactos/dll/win32/riched20/msvc.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/riched20/msvc.h?…
==============================================================================
--- trunk/reactos/dll/win32/riched20/msvc.h [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/riched20/msvc.h [iso-8859-1] Mon Nov 18 00:04:15 2013
@@ -4,13 +4,18 @@
#define typeof(X_) __typeof_ ## X_
+struct HDC__;
struct ITextHost;
-struct _RECT;
-struct _CHARFORMATW;
-struct _PARAFORMAT;
-struct _POINT;
-struct _SIZEL;
-struct HDC__;
+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
Modified: trunk/reactos/dll/win32/windowscodecs/typeof.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/windowscodecs/ty…
==============================================================================
--- trunk/reactos/dll/win32/windowscodecs/typeof.h [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/windowscodecs/typeof.h [iso-8859-1] Mon Nov 18 00:04:15 2013
@@ -15,6 +15,12 @@
#define __typeof_size __typeof_intptr
#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);