diff options
| author | Matěj Cepl <mcepl@cepl.eu> | 2025-10-28 10:44:57 +0100 |
|---|---|---|
| committer | Thijs Schreijer <thijs@thijsschreijer.nl> | 2025-11-05 11:59:14 +0100 |
| commit | ef238e0940a56298061f60c0c8d66cb7c4e2f653 (patch) | |
| tree | 358a15d6b6a1a203ad3fc2aaed0d46334662c3c6 /src/term.c | |
| parent | 88ac69f94ddbe172458c79f2a5e37b6704c606a2 (diff) | |
| download | luasystem-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.c | 4 |
1 files changed, 4 insertions, 0 deletions
| @@ -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; |
