Mesa (master): intel/aub_viewer: silence more compiler warnings
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Feb 25 14:37:56 UTC 2019
Module: Mesa
Branch: master
Commit: 30828f4646af0318337c5b8b6baf4868f05df667
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=30828f4646af0318337c5b8b6baf4868f05df667
Author: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Date: Mon Feb 25 10:50:59 2019 +0000
intel/aub_viewer: silence more compiler warnings
format not a string literal and no format arguments.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Reviewed-by: Eric Engestrom <eric.engestrom at intel.com>
---
src/intel/tools/aubinator_viewer.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/intel/tools/aubinator_viewer.cpp b/src/intel/tools/aubinator_viewer.cpp
index 0c9cb77d703..cf1f8024b4a 100644
--- a/src/intel/tools/aubinator_viewer.cpp
+++ b/src/intel/tools/aubinator_viewer.cpp
@@ -1008,7 +1008,7 @@ display_aubfile_window(struct window *win)
ImGui::Text("Execbufs %u", context.file->n_execs);
ImGui::Text("PCI ID: 0x%x", context.file->pci_id);
ImGui::Text("Application name: %s", context.file->app_name);
- ImGui::Text(gen_get_device_name(context.file->pci_id));
+ ImGui::Text("%s", gen_get_device_name(context.file->pci_id));
ImGui::SetNextWindowContentWidth(500);
if (ImGui::BeginPopupModal("Help", NULL, ImGuiWindowFlags_AlwaysAutoResize)) {
@@ -1030,7 +1030,7 @@ display_aubfile_window(struct window *win)
align += ImGui::GetStyle().WindowPadding.x + 10;
for (uint32_t i = 0; i < ARRAY_SIZE(texts); i += 2) {
- ImGui::Text(texts[i]); ImGui::SameLine(align); ImGui::Text(texts[i + 1]);
+ ImGui::Text("%s", texts[i]); ImGui::SameLine(align); ImGui::Text("%s", texts[i + 1]);
}
if (ImGui::Button("Done") || ImGui::IsKeyPressed(ImGuiKey_Escape))
More information about the mesa-commit
mailing list