aboutsummaryrefslogtreecommitdiff
path: root/src/term.c
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2025-10-28 10:44:57 +0100
committerThijs Schreijer <thijs@thijsschreijer.nl>2025-11-05 11:59:14 +0100
commitef238e0940a56298061f60c0c8d66cb7c4e2f653 (patch)
tree358a15d6b6a1a203ad3fc2aaed0d46334662c3c6 /src/term.c
parent88ac69f94ddbe172458c79f2a5e37b6704c606a2 (diff)
downloadluasystem-ef238e0940a56298061f60c0c8d66cb7c4e2f653.tar.gz
luasystem-ef238e0940a56298061f60c0c8d66cb7c4e2f653.tar.bz2
luasystem-ef238e0940a56298061f60c0c8d66cb7c4e2f653.zip
fix: remove two unused-variable warnings
Signed-off-by: Matěj Cepl <mcepl@cepl.eu>
Diffstat (limited to 'src/term.c')
-rw-r--r--src/term.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/term.c b/src/term.c
index 0325208..a389e06 100644
--- a/src/term.c
+++ b/src/term.c
@@ -1226,6 +1226,8 @@ static int lst_setconsolecp(lua_State *L) {
1226 int success = TRUE; 1226 int success = TRUE;
1227#ifdef _WIN32 1227#ifdef _WIN32
1228 SetConsoleCP(cp); 1228 SetConsoleCP(cp);
1229#else
1230 (void)cp;
1229#endif 1231#endif
1230 lua_pushboolean(L, success); 1232 lua_pushboolean(L, success);
1231 return 1; 1233 return 1;
@@ -1262,6 +1264,8 @@ static int lst_setconsoleoutputcp(lua_State *L) {
1262 int success = TRUE; 1264 int success = TRUE;
1263#ifdef _WIN32 1265#ifdef _WIN32
1264 SetConsoleOutputCP(cp); 1266 SetConsoleOutputCP(cp);
1267#else
1268 (void)cp;
1265#endif 1269#endif
1266 lua_pushboolean(L, success); 1270 lua_pushboolean(L, success);
1267 return 1; 1271 return 1;