From 0ec78052d625ce7d7ad8f1edae0b90cda02a3e76 Mon Sep 17 00:00:00 2001 From: Oliver Freyermuth Date: Thu, 27 Jul 2017 20:34:04 +0200 Subject: [PATCH] Guard: Mark openrct2_assert as static explicitly. Fixes compilation errors with gcc 4.9.4, which otherwise requires an explicit declaration before the definition. --- src/openrct2/core/Guard.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2/core/Guard.hpp b/src/openrct2/core/Guard.hpp index 65bf9df4fe..e6687b0d29 100644 --- a/src/openrct2/core/Guard.hpp +++ b/src/openrct2/core/Guard.hpp @@ -23,7 +23,7 @@ extern "C" { #endif // __cplusplus void openrct2_assert_va(bool expression, const char * message, va_list va); -inline void openrct2_assert(bool expression, const char * message, ...) +static inline void openrct2_assert(bool expression, const char * message, ...) { if (!expression) return; va_list va;