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
This commit is contained in:
Eric Wild 2023-01-09 17:48:15 +01:00
parent c657a5028e
commit 573f2fa1b3
2 changed files with 2 additions and 2 deletions

View File

@ -303,7 +303,7 @@ struct osmo_cbsp_decoded {
} 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);

View File

@ -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)
{