[ovs-dev] [PATCH] Broken build on MSVC

Ben Pfaff blp at nicira.com
Tue Sep 2 15:10:50 UTC 2014


On Mon, Sep 01, 2014 at 08:11:54PM +0000, Alin Serdean wrote:
> MSVC does not like variable length array either.
> 
> This patch treats the following error:
> 
> lib/dpif-netdev.c(2272) :
> error C2057: expected constant expression
> lib/dpif-netdev.c(2272) :
> error C2466: cannot allocate an array of constant size 0
> lib/dpif-netdev.c(2272) :
> error C2133: 'batches' : unknown size
> lib/dpif-netdev.c(2273) :
> error C2057: expected constant expression
> lib/dpif-netdev.c(2273) :
> error C2466: cannot allocate an array of constant size 0
> lib/dpif-netdev.c(2273) :
> error C2133: 'mfs' : unknown size
> lib/dpif-netdev.c(2274) :
> error C2057: expected constant expression
> lib/dpif-netdev.c(2274) :
> error C2466: cannot allocate an array of constant size 0
> lib/dpif-netdev.c(2274) :
> error C2133: 'rules' : unknown size
> lib/dpif-netdev.c(2363) :
> warning C4034: sizeof returns 0
> lib/dpif-netdev.c(2381) :
> error C2057: expected constant expression
> lib/dpif-netdev.c(2381) :
> error C2466: cannot allocate an array of constant size 0
> lib/dpif-netdev.c(2381) : error C2133: 'keys' : unknown size
> make[2]: *** [lib/dpif-netdev.lo] Error 1
> 
> Signed-off-by: Alin Gabriel Serdean <aserdean at cloudbasesolutions.com>

Applied, thanks!



More information about the dev mailing list