diff --git a/src/build_reference_db.c b/src/build_reference_db.c index 8ef1d02..c7c0c1c 100755 --- a/src/build_reference_db.c +++ b/src/build_reference_db.c @@ -863,7 +863,8 @@ int build_reference_db(const char* dms_name, fprintf(stderr,"\rDone : 100 %% \n"); // Add information about the threshold used to build the DB - snprintf(threshold_str, 5, "%f", threshold); +#define snprintf_nowarn(...) (snprintf(__VA_ARGS__) < 0 ? abort() : (void)0) + snprintf_nowarn(threshold_str, 5, "%f", threshold); new_comments = obi_add_comment((o_view->infos)->comments, DB_THRESHOLD_KEY_IN_COMMENTS, threshold_str); if (new_comments == NULL)