diff --git a/src/gui.cpp b/src/gui.cpp index c898401..d747a4e 100644 --- a/src/gui.cpp +++ b/src/gui.cpp @@ -8,10 +8,10 @@ gui::Gui::Gui(gui::GuiData &data) : data(data), font("font/DejaVuSans.ttf") { SPDLOG_DEBUG("Creating GUI"); - ImGui::CreateContext(); + (void) ImGui::CreateContext(); ImGui::StyleColorsDark(); - ImGui::GetIO().Fonts->AddFontFromFileTTF(font.c_str(), 18.0f); - ImGui_ImplGlfw_InitForOpenGL(data.get_window().get_window().get(), true); + (void) ImGui::GetIO().Fonts->AddFontFromFileTTF(font.c_str(), 18.0f); + (void) ImGui_ImplGlfw_InitForOpenGL(data.get_window().get_window().get(), true); initialized = ImGui_ImplOpenGL3_Init(); SPDLOG_DEBUG("Initialized: {}", initialized); } @@ -41,7 +41,7 @@ void gui::Gui::render_gui() { } // Never collapsed. - ImGui::Begin("Billy", nullptr, flags); + (void) ImGui::Begin("Billy", nullptr, flags); ImGui::Text("Hello world!"); ImGui::Text("Average framerate: %.3f ms/frame (%.1f FPS)", 1000.f / ImGui::GetIO().Framerate, ImGui::GetIO().Framerate);