Avoid an invalid GCC warning by using a union.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34159 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -196,10 +196,12 @@ NaturalCompare(const char *s1, const char *s2)
|
|||||||
{
|
{
|
||||||
struct Chunk {
|
struct Chunk {
|
||||||
int32 type;
|
int32 type;
|
||||||
char* ascii;
|
union {
|
||||||
// Type = 0
|
char* ascii;
|
||||||
int32 num;
|
// Type = 0
|
||||||
// Type = 1
|
int32 num;
|
||||||
|
// Type = 1
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
Chunk a;
|
Chunk a;
|
||||||
|
|||||||
Reference in New Issue
Block a user