mirror of
https://github.com/boostorg/predef.git
synced 2025-07-30 11:57:12 +02:00
Fix QNX compile warnings and errors from extra careful C compiler.
This commit is contained in:
@ -13,8 +13,8 @@ http://www.boost.org/LICENSE_1_0.txt)
|
|||||||
typedef struct predef_info
|
typedef struct predef_info
|
||||||
{
|
{
|
||||||
unsigned tag;
|
unsigned tag;
|
||||||
char * name;
|
const char * name;
|
||||||
char * description;
|
const char * description;
|
||||||
unsigned value;
|
unsigned value;
|
||||||
} predef_info;
|
} predef_info;
|
||||||
|
|
||||||
@ -46,7 +46,7 @@ int main()
|
|||||||
if (*i == 0x67890DEF)
|
if (*i == 0x67890DEF)
|
||||||
{
|
{
|
||||||
predef_count += 1;
|
predef_count += 1;
|
||||||
predefs = realloc(predefs,predef_count*sizeof(predef_info*));
|
predefs = (predef_info**)realloc(predefs,predef_count*sizeof(predef_info*));
|
||||||
predefs[predef_count-1] = (predef_info*)i;
|
predefs[predef_count-1] = (predef_info*)i;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user