From: Jens Gustedt Date: Sat, 24 Jun 2017 09:54:25 +0000 (+0200) Subject: fix missing volatile qualifier on lock in __get_locale X-Git-Tag: v1.1.17~37 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a08910fc2cc739f631b75b2d09b8d72a0d64d285;p=oweals%2Fmusl.git fix missing volatile qualifier on lock in __get_locale --- diff --git a/src/locale/locale_map.c b/src/locale/locale_map.c index c3e59174..188fcf39 100644 --- a/src/locale/locale_map.c +++ b/src/locale/locale_map.c @@ -26,7 +26,7 @@ static const char envvars[][12] = { const struct __locale_map *__get_locale(int cat, const char *val) { - static int lock[2]; + static volatile int lock[2]; static void *volatile loc_head; const struct __locale_map *p; struct __locale_map *new = 0;