OSDN Git Service

[COMMON][CLANG] Fix compilation warning for "type is not C-compatible due to this...
authorK.Ohta <whatisthis.sowhat@gmail.com>
Tue, 10 Aug 2021 15:39:32 +0000 (00:39 +0900)
committerK.Ohta <whatisthis.sowhat@gmail.com>
Tue, 10 Aug 2021 15:39:32 +0000 (00:39 +0900)
source/src/common.h

index 8ba0725..a9a0905 100644 (file)
 #if /*!defined(_WIN32) || */!defined(SOCKET)
        typedef uintptr_t SOCKET;
 #endif
-typedef union {
+typedef union pair16_t {
        struct {
 #ifdef __BIG_ENDIAN__
                uint8_t h, l;
@@ -362,7 +362,7 @@ typedef union {
 
 } pair16_t;
 
-typedef union {
+typedef union pair32_t {
        struct {
 #ifdef __BIG_ENDIAN__
                uint8_t h3, h2, h, l;
@@ -529,7 +529,7 @@ typedef union {
 } pair32_t;
 
 
-typedef union {
+typedef union pair64_t {
        struct {
 #ifdef __BIG_ENDIAN__
                uint8_t h7, h6, h5, h4, h3, h2, h, l;