path: root/tests/ctrl/ctrl_test.c
diff options
authorVadim Yanitskiy <axilirator@gmail.com>2017-06-13 01:43:23 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2017-06-13 20:22:19 +0700
commitc2afe81d854ba4e8a1d68d588ffdfc83d14e3323 (patch)
treef9e78a2245d58e7db40ebe1c5c13cf5f4da2a245 /tests/ctrl/ctrl_test.c
parent556f03685e1222a7db89c4e50373811be3dc2da3 (diff)
ctrl_test.c: fix build with GCC 7.1.1
According to GCC's online docs: When an inline function is not static, then the compiler must assume that there may be calls from other source files; since a global symbol can be defined only once in any program, the function must not be defined in the other source files, so the calls therein cannot be integrated. Therefore, a non-static inline function is always compiled on its own in the usual fashion. There is no any (performance or size) benefit from 'inline' keyword in this particular file, so let's replace one by 'static'. Change-Id: I11e1f1cfea09c6f0cf8225239e782b551d3eb52f
Diffstat (limited to 'tests/ctrl/ctrl_test.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ctrl/ctrl_test.c b/tests/ctrl/ctrl_test.c
index 3bbab76a..08be15f6 100644
--- a/tests/ctrl/ctrl_test.c
+++ b/tests/ctrl/ctrl_test.c
@@ -7,7 +7,7 @@
#include <osmocom/core/utils.h>
#include <osmocom/ctrl/control_cmd.h>
-inline void check_type(enum ctrl_type c)
+static void check_type(enum ctrl_type c)
const char *t = get_value_string(ctrl_type_vals, c);
int v = get_string_value(ctrl_type_vals, t);