From 45368f410ace3c995e0eb3160d4f6230e4379da6 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Thu, 14 Nov 2013 13:42:29 +0100 Subject: [PATCH] Fixed warnings from Clang static analysis. --- examples/heightmap.c | 2 +- tests/glfwinfo.c | 3 --- tests/modes.c | 3 --- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/examples/heightmap.c b/examples/heightmap.c index 5ae50bfd..c39e6b80 100644 --- a/examples/heightmap.c +++ b/examples/heightmap.c @@ -644,7 +644,7 @@ int main(int argc, char** argv) /* main loop */ frame = 0; iter = 0; - dt = last_update_time = glfwGetTime(); + last_update_time = glfwGetTime(); while (!glfwWindowShouldClose(window)) { diff --git a/tests/glfwinfo.c b/tests/glfwinfo.c index ed7b9df6..fc312dee 100644 --- a/tests/glfwinfo.c +++ b/tests/glfwinfo.c @@ -253,9 +253,6 @@ int main(int argc, char** argv) } } - argc -= optind; - argv += optind; - // Initialize GLFW and create window if (!valid_version()) diff --git a/tests/modes.c b/tests/modes.c index 37e9a675..76353685 100644 --- a/tests/modes.c +++ b/tests/modes.c @@ -218,9 +218,6 @@ int main(int argc, char** argv) } } - argc -= optind; - argv += optind; - glfwSetErrorCallback(error_callback); if (!glfwInit())