[ovs-dev] [PATCH 2/2 v2] datapath-windows: Conntrack disable type truncation warning
Guru Shetty
guru at ovn.org
Tue Jan 3 15:58:33 UTC 2017
On 28 December 2016 at 16:25, 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>
> Acked-by: Sairam Venugopal <vsairam at vmware.com>
>
Applied.
> ---
> v2: rebase
> ---
> 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 53d2cf9..d1be480 100644
> --- a/datapath-windows/ovsext/Conntrack.c
> +++ b/datapath-windows/ovsext/Conntrack.c
> @@ -19,6 +19,9 @@
> #include "PacketParser.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
> @@ -1311,3 +1314,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://mail.openvswitch.org/mailman/listinfo/ovs-dev
>
More information about the dev
mailing list