Closed lutteropp closed 8 years ago
These warnings are not issued in newer versions of GCC.
However, we can fix them in the following way:
if (asprintf(...) == -1)
fatal("Unable to allocate enough memory.");
Done. The warnings still occurred with GCC version 4.9.3.
This compiler warning floods the console: "ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result]"