Author: tfaber
Date: Tue Jan 14 21:04:39 2014
New Revision: 61627
URL:
http://svn.reactos.org/svn/reactos?rev=61627&view=rev
Log:
[LWIP]
- Fix warning. Already applied upstream.
[CMAKE]
- Make C4013 (implicit function declaration) an error
CORE-7538
Modified:
trunk/reactos/cmake/msvc.cmake
trunk/reactos/lib/drivers/lwip/src/api/tcpip.c
Modified: trunk/reactos/cmake/msvc.cmake
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/cmake/msvc.cmake?rev=61627…
==============================================================================
--- trunk/reactos/cmake/msvc.cmake [iso-8859-1] (original)
+++ trunk/reactos/cmake/msvc.cmake [iso-8859-1] Tue Jan 14 21:04:39 2014
@@ -33,11 +33,16 @@
add_compile_flags("/FS")
endif ()
-# C++ exception specification ignored... yeah we don't care
+# Disable overly sensitive warnings as well as those that generally aren't
+# useful to us.
+# - TODO: C4018: signed/unsigned mismatch
+# - TODO: C4244: integer truncation
+# - C4290: C++ exception specification ignored
+#add_compile_flags("/wd4018 /wd4244 /wd4290")
add_compile_flags("/wd4290")
# The following warnings are treated as errors:
-# - TODO: C4013: implicit function declaration
+# - C4013: implicit function declaration
# - C4022: pointer type mismatch for parameter
# - TODO: C4028: formal parameter different from declaration
# - C4047: different level of indirection
@@ -49,7 +54,7 @@
# - TODO: C4133: incompatible types
# - C4229: modifiers on data are ignored
# - C4700: uninitialized variable usage
-add_compile_flags("/we4022 /we4047 /we4098 /we4113 /we4129 /we4229 /we4700")
+add_compile_flags("/we4013 /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
Modified: trunk/reactos/lib/drivers/lwip/src/api/tcpip.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/drivers/lwip/src/api/t…
==============================================================================
--- trunk/reactos/lib/drivers/lwip/src/api/tcpip.c [iso-8859-1] (original)
+++ trunk/reactos/lib/drivers/lwip/src/api/tcpip.c [iso-8859-1] Tue Jan 14 21:04:39 2014
@@ -46,6 +46,7 @@
#include "lwip/pbuf.h"
#include "lwip/tcpip.h"
#include "lwip/init.h"
+#include "lwip/ip.h"
#include "netif/etharp.h"
#include "netif/ppp_oe.h"