Fix format-security-related build failure
Calling a printf-like function without a format string will cause gcc to emit a warhing and causes a build failure on distros which build everything with -Werror=format-security. Signed-off-by: Jason Tibbitts <j@tib.bs>
This commit is contained in:
parent
5cf9bb0282
commit
b2fc0cd427
1 changed files with 1 additions and 1 deletions
|
@ -354,7 +354,7 @@ bool ImGuiWrapper::undo_redo_list(const ImVec2& size, const bool is_undo, bool (
|
|||
ImGui::Selectable(item_text, i < hovered);
|
||||
|
||||
if (ImGui::IsItemHovered()) {
|
||||
ImGui::SetTooltip(item_text);
|
||||
ImGui::SetTooltip("%s", item_text);
|
||||
hovered = i;
|
||||
is_hovered = true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue