From c03ee20559da1e43d326511162baef12622f5ba2 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Fri, 22 Oct 2021 19:25:59 -0700 Subject: clean up a few warnings with gcc 9.3.0 --- src/Makefile | 2 +- src/lauxlib.c | 2 +- src/ltablib.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/Makefile b/src/Makefile index e0d4c9f..cb9f5e7 100644 --- a/src/Makefile +++ b/src/Makefile @@ -9,7 +9,7 @@ PLAT= none CC= gcc CFLAGS= -O2 -Wall $(MYCFLAGS) -AR= ar rcu +AR= ar rc RANLIB= ranlib RM= rm -f LIBS= -lm $(MYLIBS) diff --git a/src/lauxlib.c b/src/lauxlib.c index 10f14e2..2b2676f 100644 --- a/src/lauxlib.c +++ b/src/lauxlib.c @@ -574,7 +574,7 @@ LUALIB_API int luaL_loadfile (lua_State *L, const char *filename) { lf.f = freopen(filename, "rb", lf.f); /* reopen in binary mode */ if (lf.f == NULL) return errfile(L, "reopen", fnameindex); /* skip eventual `#!...' */ - while ((c = getc(lf.f)) != EOF && c != LUA_SIGNATURE[0]) ; + while ((c = getc(lf.f)) != EOF && c != LUA_SIGNATURE[0]) ; lf.extraline = 0; } ungetc(c, lf.f); diff --git a/src/ltablib.c b/src/ltablib.c index b6d9cb4..0bdac7f 100644 --- a/src/ltablib.c +++ b/src/ltablib.c @@ -137,7 +137,7 @@ static void addfield (lua_State *L, luaL_Buffer *b, int i) { if (!lua_isstring(L, -1)) luaL_error(L, "invalid value (%s) at index %d in table for " LUA_QL("concat"), luaL_typename(L, -1), i); - luaL_addvalue(b); + luaL_addvalue(b); } -- cgit 1.4.1-2-gfad0