summaryrefslogtreecommitdiffstats
path: root/tests/msgb/msgb_test.c
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-02-01 12:10:33 +0100
committerHarald Welte <laforge@gnumonks.org>2018-02-08 09:41:35 +0000
commit41911d03804c3bb82657a73bfd3dd73b70d13915 (patch)
tree6557cb81c1514b33356badec618e52b836aaf740 /tests/msgb/msgb_test.c
parent76c6c50405c6cbb1d08bdd7b5d27c657fa5d38b6 (diff)
tests: coding_test: Fix compilation with -O0
inline keyword is a hint for the compiler to inline the function, but it's not mandatory. If no static or extern is specified, the definition is only visible in the current unit but the identifier still has external linkage. When running with -O0 it seems the compiler (gcc 7.2.1) decides to use the external linkage but at the same time it seems it's not generating the function symbol. Fix it by explicitly stating that we want to use static linking for this function. coding/coding_test.o: In function `test_xcch': libosmocore/tests/coding/coding_test.c:86: undefined reference to `dump_ubits' libosmocore/tests/coding/coding_test.c:87: undefined reference to `dump_sbits' Change-Id: I18018adec05ce1c2ddbca38653311d74c7454ce8
Diffstat (limited to 'tests/msgb/msgb_test.c')
0 files changed, 0 insertions, 0 deletions