[ovs-dev] [PATCH v5 4/4] unaligned.h: Fixed C++ compilation issue due to designated initializers

2017-12-15 Thread Shireesh Singh
This change fixes compilation issues related to designated initializers, which are not supported by C++ compiler. Signed-off-by: Shireesh Kumar Singh Signed-off-by: Sairam Venugopal Co-authored-by: Sairam Venugopal ---

[ovs-dev] [PATCH v5 3/4] Windows: Changing explicit typecasts to fix C++ compilation issues

2017-12-15 Thread Shireesh Singh
C++ compiler cannot find matching function calls due to unsupported implicit conversions. This change adds appropriate explicit typecasts to match the existing function prototypes. Signed-off-by: Shireesh Kumar Singh Signed-off-by: Sairam Venugopal

[ovs-dev] [PATCH v5 2/4] lib: Adding explicit typecasts to fix C++ compilation issues

2017-12-15 Thread Shireesh Singh
C++ does not allow implicit conversion from void pointer to a specific pointer type. This change adds explicit typecasts to appropriate types wherever needed. Signed-off-by: Shireesh Kumar Singh Signed-off-by: Sairam Venugopal Co-authored-by: Sairam

[ovs-dev] [PATCH v5 1/4] Windows: Fixing Windows C++ compilation issues with unnamed structure

2017-12-15 Thread Shireesh Singh
MSVC does not allow to redefine unnamed structure in union. Thus, this fix defines the struct outside of the anonymous union in order to calculate the padded size. Signed-off-by: Shireesh Kumar Singh Signed-off-by: Shireesh Kumar Singh

[ovs-dev] [PATCH 4/4] unaligned.h: Fixed C++ compilation issue due to designated initializers

2017-12-15 Thread Shireesh Singh
This change fixes compilation issues related to designated initializers, which are not supported by C++ compier. Signed-off-by: Shireesh Kumar Singh Signed-off-by: Sairam Venugopal Co-authored-by: Sairam Venugopal ---

[ovs-dev] [PATCH 3/4] Windows: Changing explicit typecasts to fix C++ compilation issues

2017-12-15 Thread Shireesh Singh
C++ compiler cannot find matching function calls due to unsupported implicit conversions. This change adds appropriate explicit typecasts to match the existing function prototypes. Signed-off-by: Shireesh Kumar Singh Signed-off-by: Sairam Venugopal

[ovs-dev] [PATCH 2/4] lib: Adding explicit typecasts to fix C++ compilation issues

2017-12-15 Thread Shireesh Singh
C++ does not allow implicit conversion from void pointer to a specific pointer type. This change adds explicit typecasts to appropriate types wherever needed. Signed-off-by: Shireesh Kumar Singh Signed-off-by: Sairam Venugopal Co-authored-by: Sairam

[ovs-dev] [PATCH 1/4] Windows: Fixing Windows C++ compilation issues with unnamed structure

2017-12-15 Thread Shireesh Singh
MSVC does not allow to re-define unnamed structure in union. Thus, this fix defines the struct outside of the anonymous union in order to calculate the padded size. Signed-off-by: Shireesh Kumar Singh Signed-off-by: Shireesh Kumar Singh

[ovs-dev] [PATCH 0/4] Fixing C++ compiltation issues

2017-12-15 Thread Shireesh Singh
v4: Rebased Modified commit message v3: Rebased Split patch into subparts v2: Rebased Fixed formatting erros Removed Windows specific macro Shireesh Singh (4): Windows: Fixing Windows C++ compilation issues with unnamed structure lib: Adding explicit typecasts to fix C

[ovs-dev] [PATCH v3] Fixed C++ compilation issue due to unsupported initializer list usage

2017-12-15 Thread Shireesh Singh
This change fixes compilation issues related to designated initializers, which are not supported by C++ compier. Signed-off-by: Shireesh Kumar Singh --- lib/unaligned.h | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/lib/unaligned.h

[ovs-dev] [PATCH v3] Windows: Changing explicit typecasts to fix C++ compilation issues

2017-12-15 Thread Shireesh Singh
C++ compiler cannot find matching function calls due to unsupported implicit conversions. This change adds appropriate explicit typecasts to match the existing function prototypes. --- lib/ovs-atomic-msvc.h | 59 +++ 1 file changed, 36

[ovs-dev] [PATCH v3] Adding explicit typecasts to fix C++ compilation issues

2017-12-15 Thread Shireesh Singh
C++ does not allow implicit conversion from void pointer to a specific pointer type. This change adds explicit typecasts to appropriate types wherever needed. --- lib/netlink.h | 3 ++- lib/ovs-thread.h | 4 ++-- lib/packets.h | 15 ++- lib/socket-util.h | 4 ++-- 4 files

[ovs-dev] [PATCH v3] Windows: Fixing Windows C++ compilation issues with unnamed structure

2017-12-15 Thread Shireesh Singh
MSVC does not allow to re-define unnamed structure in union. Thus, this fix defines the struct outside of the anonymous union in order to calculate the padded size. Signed-off-by: Shireesh Kumar Singh --- include/openvswitch/util.h | 14 +++--- 1 file changed, 7