Make sure the header-only function direction_valid is static

This commit is contained in:
Michał Janiszewski committed 2019-03-03 08:18:15 +01:00
1 parent f83fa88512
commit a2bfb77b4a
1 file changed
+1 -1
+1 -1
View File
@@ -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;
}