Hoernchen has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/31719 )
Change subject: fix _thread order ...................................................................... fix _thread order As per gnu extension doc -> https://gcc.gnu.org/onlinedocs/gcc-6.2.0/gcc/Thread-Local.html : ".. When used with extern or static, __thread must appear immediately after the other storage class specifier." Change-Id: Ied1d3cf3ad2ff424bd0a2682aff29a8939b419b8 --- M include/osmocom/gsm/cbsp.h M src/gsm/cbsp.c 2 files changed, 16 insertions(+), 2 deletions(-) git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/19/31719/1 diff --git a/include/osmocom/gsm/cbsp.h b/include/osmocom/gsm/cbsp.h index 1e705e5..536c54d 100644 --- a/include/osmocom/gsm/cbsp.h +++ b/include/osmocom/gsm/cbsp.h @@ -303,7 +303,7 @@ } u; }; -extern const __thread char *osmo_cbsp_errstr; +extern __thread const char *osmo_cbsp_errstr; struct msgb *osmo_cbsp_msgb_alloc(void *ctx, const char *name); struct msgb *osmo_cbsp_encode(void *ctx, const struct osmo_cbsp_decoded *in); diff --git a/src/gsm/cbsp.c b/src/gsm/cbsp.c index 7411056..28852f6 100644 --- a/src/gsm/cbsp.c +++ b/src/gsm/cbsp.c @@ -30,7 +30,7 @@ #include <osmocom/gsm/cbsp.h> #include <osmocom/gsm/gsm0808_utils.h> -const __thread char *osmo_cbsp_errstr; +__thread const char *osmo_cbsp_errstr; struct msgb *osmo_cbsp_msgb_alloc(void *ctx, const char *name) { -- To view, visit https://gerrit.osmocom.org/c/libosmocore/+/31719 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Change-Id: Ied1d3cf3ad2ff424bd0a2682aff29a8939b419b8 Gerrit-Change-Number: 31719 Gerrit-PatchSet: 1 Gerrit-Owner: Hoernchen <[email protected]> Gerrit-MessageType: newchange
