silence a compiler warning

This commit is contained in:
Kent Overstreet 2017-04-10 00:33:58 -08:00
parent e783d814e8
commit e394bd4ba3

View File

@ -26,7 +26,9 @@ do { \
#define mprintf(...) \ #define mprintf(...) \
({ \ ({ \
char *_str; \ char *_str; \
asprintf(&_str, __VA_ARGS__); \ int ret = asprintf(&_str, __VA_ARGS__); \
if (ret < 0) \
die("insufficient memory"); \
_str; \ _str; \
}) })