Silence warnings about asprintf return value.

This commit is contained in:
Jonathan Moore Liles 2010-01-17 21:16:44 -06:00
parent 078aa38aaf
commit e8eae16fa1
1 changed files with 2 additions and 1 deletions

View File

@ -53,7 +53,8 @@ public:
void add ( const char *name, type v ) \
{ \
grow(); \
asprintf( &_sa[ _i ], "%s " format, name, (exp) ); \
if ( -1 == asprintf( &_sa[ _i ], "%s " format, name, (exp) ) ) \
abort(); \
strtok( _sa[ _i++ ], " " ); \
} \