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
---
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
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
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
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
---
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
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
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
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
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
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
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
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
13 matches
Mail list logo