Fixed gcc warnings

This commit is contained in:
Celine Mercier
2019-09-25 11:38:00 +02:00
parent c3b9e46291
commit 44517db51f
11 changed files with 49 additions and 69 deletions

View File

@ -3254,12 +3254,16 @@ int obi_write_taxonomy(OBIDMS_p dms, OBIDMS_taxonomy_p tax, const char* tax_name
return -1;
// Check if there are local taxa (if so last taxon is local)
if ((tax->taxa)->local_count > 0)
{
if (write_local_taxonomy_idx(dms, tax, tax_name) < 0)
return -1;
}
// Write preferred names if there are some
if (tax->preferred_names != NULL)
{
if (write_preferred_names_idx(dms, tax, tax_name) < 0)
return -1;
}
return 0;
}