#pragma GCC diagnostic ignored "-Woverride-init"
#endif
+#pragma clang diagnostic ignored "-Winitializer-overrides"
+
static struct sym_scope f_type_method_scopes[] = {
FID_WR_PUT(12)
};
(splitting % 8) ? ',' : '\n',
(splitting % 8) ? ' ' : '\t',
src->private_id, src->global_id,
- atomic_load_explicit(&src->uc, memory_order_relaxed));
+ atomic_load_explicit(&src->uc.uc, memory_order_relaxed));
splitting++;
}
# define ajlog(...)
struct free_page {
- struct free_page *next;
+ struct free_page * _Atomic next;
};
# endif
struct free_page *fp = ptr;
if (shutting_down || (pages_kept_here < KEEP_PAGES_MAX_LOCAL))
{
- UNUSED struct free_page *next = fp->next = local_page_stack;
+ struct free_page *next = local_page_stack;
+ atomic_store_explicit(&fp->next, next, memory_order_relaxed);
PROTECT_PAGE(fp);
local_page_stack = fp;
}
/* If there are too many local pages, we add the free page to the global hot-free-page list */
- UNUSED struct free_page *next = fp->next = PAGE_STACK_GET;
+ struct free_page *next = PAGE_STACK_GET;
+ atomic_store_explicit(&fp->next, next, memory_order_relaxed);
PROTECT_PAGE(fp);
/* Unblock the stack with the page being freed */
static struct rfile *dbg_rf;
static char *current_syslog_name = NULL; /* NULL -> syslog closed */
-_Atomic uint max_thread_id = ATOMIC_VAR_INIT(1);
+_Atomic uint max_thread_id = 1;
_Thread_local uint this_thread_id;
#include <pthread.h>