From 7bd1e53753de7176eb0b23f2bf19ad2235dec826 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 4 Oct 2019 16:17:04 -0300 Subject: Fixed a warning and other minor issues Fixed some minor issues from the feedback for 5.4-beta rc1. --- lcorolib.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lcorolib.c') diff --git a/lcorolib.c b/lcorolib.c index 4d47ea28..7d6e585b 100644 --- a/lcorolib.c +++ b/lcorolib.c @@ -116,7 +116,8 @@ static int luaB_yield (lua_State *L) { #define COS_NORM 3 -static const char *statname[] = {"running", "dead", "suspended", "normal"}; +static const char *const statname[] = + {"running", "dead", "suspended", "normal"}; static int auxstatus (lua_State *L, lua_State *co) { -- cgit v1.2.3-55-g6feb