OSDN Git Service
(root)
/
csp-qt
/
common_source_project-fm7.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46a79be
)
[COMMON][CLANG] Fix compilation warning for "type is not C-compatible due to this...
author
K.Ohta
<whatisthis.sowhat@gmail.com>
Tue, 10 Aug 2021 15:39:32 +0000
(
00:39
+0900)
committer
K.Ohta
<whatisthis.sowhat@gmail.com>
Tue, 10 Aug 2021 15:39:32 +0000
(
00:39
+0900)
source/src/common.h
patch
|
blob
|
history
diff --git
a/source/src/common.h
b/source/src/common.h
index
8ba0725
..
a9a0905
100644
(file)
--- a/
source/src/common.h
+++ b/
source/src/common.h
@@
-278,7
+278,7
@@
#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;