Skip to content

Commit

Permalink
IGL: Add [[maybe_unused]] to variables only used for logging
Browse files Browse the repository at this point in the history
Reviewed By: francoiscoulombe, mmaurer

Differential Revision: D67280420

fbshipit-source-id: 7879218e2cc56a886341f55cfe64cbdaacb05099
  • Loading branch information
Eric Griffith authored and facebook-github-bot committed Dec 16, 2024
1 parent 81e6ab2 commit 47523cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion shell/windows/opengl/App.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ void OpenGlShell::willCreateWindow() noexcept {
}

void OpenGlShell::didCreateWindow() noexcept {
int result = glfwGetWindowAttrib(&window(), GLFW_CLIENT_API);
[[maybe_unused]] int result = glfwGetWindowAttrib(&window(), GLFW_CLIENT_API);

glfwMakeContextCurrent(&window());

Expand Down
2 changes: 1 addition & 1 deletion shell/windows/opengles/App.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ void OpenGlEsShell::willCreateWindow() noexcept {
}

void OpenGlEsShell::didCreateWindow() noexcept {
int result = glfwGetWindowAttrib(&window(), GLFW_CLIENT_API);
[[maybe_unused]] int result = glfwGetWindowAttrib(&window(), GLFW_CLIENT_API);

glfwMakeContextCurrent(&window());
glfwSwapInterval(1);
Expand Down

0 comments on commit 47523cc

Please sign in to comment.