Fix various GCC compilation warnings after Vulkan merge

Part of #36132.
This commit is contained in:
Rémi Verschelde 2020-02-13 15:53:32 +01:00
parent 3679d49f4b
commit d2537407ef
19 changed files with 71 additions and 53 deletions

View file

@ -113,12 +113,6 @@ void EditorVisualProfiler::clear() {
seeking = false;
}
static String _get_percent_txt(float p_value, float p_total) {
if (p_total == 0)
p_total = 0.00001;
return String::num((p_value / p_total) * 100, 1) + "%";
}
String EditorVisualProfiler::_get_time_as_text(float p_time) {
int dmode = display_mode->get_selected();
@ -126,7 +120,7 @@ String EditorVisualProfiler::_get_time_as_text(float p_time) {
if (dmode == DISPLAY_FRAME_TIME) {
return rtos(p_time) + "ms";
} else if (dmode == DISPLAY_FRAME_PERCENT) {
return String::num(p_time * 100 / graph_limit, 2) + "%"; //_get_percent_txt(p_time, m.frame_time);
return String::num(p_time * 100 / graph_limit, 2) + "%";
}
return "err";