Re: [ovs-dev] [PATCH] datapath-windows: Add paranthesis to fix error C2275

2016-04-22 Thread Ben Pfaff
On Thu, Apr 21, 2016 at 10:44:26PM -0700, Sairam Venugopal wrote: > Add braces around the if condition to prevent Visual Studio from giving > the "error C2275: illegal use of this type as an expresion". This happens > when a variable is declared after a block. This error occurs on certain > version

Re: [ovs-dev] [PATCH] datapath-windows: Add paranthesis to fix error C2275

2016-04-21 Thread Nithin Raju
Acked-by: Nithin Raju -Original Message- From: dev on behalf of Sairam Venugopal Date: Thursday, April 21, 2016 at 10:44 PM To: "dev@openvswitch.org" Subject: [ovs-dev] [PATCH] datapath-windows: Add paranthesis to fix error C2275 >Add braces around the if conditi

[ovs-dev] [PATCH] datapath-windows: Add paranthesis to fix error C2275

2016-04-21 Thread Sairam Venugopal
Add braces around the if condition to prevent Visual Studio from giving the "error C2275: illegal use of this type as an expresion". This happens when a variable is declared after a block. This error occurs on certain versions of compilers. Signed-off-by: Sairam Venugopal --- datapath-windows/ov