From 806b3f987e2ee8a04834b6a3c956249befcfe249 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Wed, 17 Mar 2021 00:29:45 +0300 Subject: [PATCH] stdatomic: fix warnings --- tccgen.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tccgen.c b/tccgen.c index 545369bd..11e69622 100644 --- a/tccgen.c +++ b/tccgen.c @@ -5767,7 +5767,7 @@ static void parse_atomic(int atok) size_t arg; SValue *call; CType atom = {}; - static const char const *templates[] = { + static const char *const templates[] = { /* * Each entry consists of callback and function template. * The template represents argument types and return type. @@ -5795,6 +5795,7 @@ static void parse_atomic(int atok) next(); + mode = 0; /* pacify compiler */ vpush_helper_func(atok); call = vtop;