Silence warnings about asprintf return value.
This commit is contained in:
parent
078aa38aaf
commit
e8eae16fa1
|
@ -53,7 +53,8 @@ public:
|
||||||
void add ( const char *name, type v ) \
|
void add ( const char *name, type v ) \
|
||||||
{ \
|
{ \
|
||||||
grow(); \
|
grow(); \
|
||||||
asprintf( &_sa[ _i ], "%s " format, name, (exp) ); \
|
if ( -1 == asprintf( &_sa[ _i ], "%s " format, name, (exp) ) ) \
|
||||||
|
abort(); \
|
||||||
strtok( _sa[ _i++ ], " " ); \
|
strtok( _sa[ _i++ ], " " ); \
|
||||||
} \
|
} \
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue