mirror of https://gerrit.osmocom.org/libosmocore
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: I11e1f1cfea09c6f0cf8225239e782b551d3eb52fchanges/95/2895/2
parent
556f03685e
commit
c2afe81d85
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue