about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-10-22 19:25:59 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-10-22 19:25:59 -0700
commitc03ee20559da1e43d326511162baef12622f5ba2 (patch)
treeb3791bbfb260182b7ede87137e1caadb53356d7f /src
parent74f8cd15bb43110973deffdeb9dd229797e5b328 (diff)
downloadteliva-c03ee20559da1e43d326511162baef12622f5ba2.tar.gz
clean up a few warnings with gcc 9.3.0
Diffstat (limited to 'src')
-rw-r--r--src/Makefile2
-rw-r--r--src/lauxlib.c2
-rw-r--r--src/ltablib.c2
3 files changed, 3 insertions, 3 deletions
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);
 }