mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
Fix questionable build errors
Some Linux distributions have compiler settings that cause calls to the printf family of functions to fail if they have just one argument and that argument isn't a literal string. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
8d546bc8c0
commit
ec8f2176a7
1 changed files with 2 additions and 2 deletions
|
@ -1209,13 +1209,13 @@ static void plot_string(struct plot_info *pi, struct plot_data *entry, struct me
|
|||
if(entry->ndl_calc < MAX_PROFILE_DECO)
|
||||
put_format(b, translate("gettextFromC", "NDL: %umin (calc)\n"), DIV_UP(entry->ndl_calc, 60));
|
||||
else
|
||||
put_format(b, translate("gettextFromC", "NDL: >2h (calc)\n"));
|
||||
put_format(b, "%s", translate("gettextFromC", "NDL: >2h (calc)\n"));
|
||||
}
|
||||
if (entry->tts_calc) {
|
||||
if (entry->tts_calc < MAX_PROFILE_DECO)
|
||||
put_format(b, translate("gettextFromC", "TTS: %umin (calc)\n"), DIV_UP(entry->tts_calc, 60));
|
||||
else
|
||||
put_format(b, translate("gettextFromC", "TTS: >2h (calc)\n"));
|
||||
put_format(b, "%s", translate("gettextFromC", "TTS: >2h (calc)\n"));
|
||||
}
|
||||
if (entry->rbt)
|
||||
put_format(b, translate("gettextFromC", "RBT: %umin\n"), DIV_UP(entry->rbt, 60));
|
||||
|
|
Loading…
Reference in a new issue