[ovs-dev] [PATCH 5/5] datapath-windows: Conntrack disable type truncation warning

Sairam Venugopal vsairam at vmware.com
Thu Dec 8 23:11:41 UTC 2016


Acked-by: Sairam Venugopal <vsairam at vmware.com>


On 12/5/16, 7:39 AM, "Alin Serdean" <aserdean at cloudbasesolutions.com>
wrote:

>Compiling with the WDK 10 gave the following warning:
>Warning	C4311	'type cast': pointer truncation from 'POVS_CT_ENTRY' to
>'UINT32'
>ovsext (OVSExt\ovsext)	Conntrack.c	1139
>
>This patch disables the warning on the file Conntrack.c.
>
>Signed-off-by: Alin Gabriel Serdean <aserdean at cloudbasesolutions.com>
>---
> datapath-windows/ovsext/Conntrack.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
>diff --git a/datapath-windows/ovsext/Conntrack.c
>b/datapath-windows/ovsext/Conntrack.c
>index 84c4091..bdcf42c 100644
>--- a/datapath-windows/ovsext/Conntrack.c
>+++ b/datapath-windows/ovsext/Conntrack.c
>@@ -25,6 +25,9 @@
> #include "Debug.h"
> #include "Event.h"
> 
>+#pragma warning( push )
>+#pragma warning( disable:4311 )
>+
> #define WINDOWS_TICK 10000000
> #define SEC_TO_UNIX_EPOCH 11644473600LL
> #define SEC_TO_NANOSEC 1000000000LL
>@@ -1266,3 +1269,5 @@ OvsCtDumpCmdHandler(POVS_USER_PARAMS_CONTEXT
>usrParamsCtx,
> 
>     return STATUS_SUCCESS;
> }
>+
>+#pragma warning( pop )
>-- 
>2.10.2.windows.1
>_______________________________________________
>dev mailing list
>dev at openvswitch.org
>https://urldefense.proofpoint.com/v2/url?u=https-3A__mail.openvswitch.org_
>mailman_listinfo_ovs-2Ddev&d=DgICAg&c=uilaK90D4TOVoH58JNXRgQ&r=Z6vowHUOjP5
>ysP_g372c49Nqc1vEKqHKNBkR5Q5Z7uo&m=BS1OWdyu5cSdkGAEbbMZaRxr3GuDqZgzwJ1urJX
>JB3Y&s=PEbPYkzJLqSZ3NPqk7914CeqaZZL4cQNSQSWJ-32Dag&e= 



More information about the dev mailing list