Quiet gcc warnings about unused variables and functions -- things that
are not used in the Syslinux environment at this time.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
LUALIB_API int luaL_loadfile (lua_State *L, const char *filename) {
LoadF lf;
int status, readstatus;
+#if 0
int c;
+#endif
int fnameindex = lua_gettop(L) + 1; /* index of filename on the stack */
lf.extraline = 0;
if (filename == NULL) {
}
}
-
+#if 0 /* Not used */
static int read_chars (lua_State *L, FILE *f, size_t n) {
size_t rlen; /* how much to read */
size_t nr; /* number of chars actually read */
luaL_pushresult(&b); /* close buffer */
return (n == 0 || lua_objlen(L, -1) > 0);
}
-
+#endif
#if 0
static int g_read (lua_State *L, FILE *f, int first) {
static void setpath (lua_State *L, const char *fieldname, const char *envname,
const char *def) {
const char *path = /*getenv(envname)*/ NULL;
+ (void)envname; /* Shut up gcc */
if (path == NULL) /* no environment variable? */
lua_pushstring(L, def); /* use default */
else {