From a2bfb77b4ab8ea0c68e6351813fe8a03bcfdf507 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Sat, 2 Mar 2019 21:23:42 +0100 Subject: [PATCH] Make sure the header-only function `direction_valid` is `static` --- src/openrct2/world/Location.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2/world/Location.hpp b/src/openrct2/world/Location.hpp index 3e21c8d61b..ae9df02b6a 100644 --- a/src/openrct2/world/Location.hpp +++ b/src/openrct2/world/Location.hpp @@ -169,7 +169,7 @@ typedef uint8_t Direction; return dir ^ 2; } -constexpr bool direction_valid(Direction dir) +[[maybe_unused]] static constexpr bool direction_valid(Direction dir) { return dir < 4; }