From c2afe81d854ba4e8a1d68d588ffdfc83d14e3323 Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Tue, 13 Jun 2017 01:43:23 +0700 Subject: 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 --- tests/ctrl/ctrl_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') 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 #include -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); -- cgit v1.2.3