From 8cd0977a3688fa705c83867c57505a47b9269369 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 8 Jan 2023 16:34:43 +0000 Subject: Fix up all the static analyzer warnings --- gfx/gl/camera.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gfx/gl/camera.h') diff --git a/gfx/gl/camera.h b/gfx/gl/camera.h index 94fd48b..9685a7d 100644 --- a/gfx/gl/camera.h +++ b/gfx/gl/camera.h @@ -61,9 +61,9 @@ public: return position; } - std::array extentsAtDist(float) const; + [[nodiscard]] std::array extentsAtDist(float) const; - static glm::vec3 upFromForward(const glm::vec3 & forward); + [[nodiscard]] static glm::vec3 upFromForward(const glm::vec3 & forward); private: void updateView(); -- cgit v1.2.3