Pas-Kapli / mptp

mPTP - a tool for single-locus species delimitation
GNU Affero General Public License v3.0
25 stars 5 forks source link

Fix compiler warnings #65

Closed lutteropp closed 8 years ago

lutteropp commented 8 years ago

This compiler warning floods the console: "ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result]"

xflouris commented 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.");
lutteropp commented 8 years ago

Done. The warnings still occurred with GCC version 4.9.3.