Fix warnings about unused var
build / build (Debug, macos-latest, lua, cli) (push) Waiting to run Details
build / build (Debug, macos-latest, noscripts, cli) (push) Waiting to run Details
build / build (Debug, ubuntu-latest, lua, cli) (push) Waiting to run Details
build / build (Debug, ubuntu-latest, noscripts, cli) (push) Waiting to run Details
build / build (Debug, windows-latest, lua, cli) (push) Waiting to run Details
build / build (Debug, windows-latest, noscripts, cli) (push) Waiting to run Details
build / build (RelWithDebInfo, macos-latest, lua, gui) (push) Waiting to run Details
build / build (RelWithDebInfo, ubuntu-latest, lua, gui) (push) Waiting to run Details
build / build (RelWithDebInfo, windows-latest, lua, gui) (push) Waiting to run Details

This commit is contained in:
David Capello 2025-06-11 10:58:12 -03:00
parent 2bc4f0582d
commit 8ff208d8d5
1 changed files with 3 additions and 3 deletions

View File

@ -221,7 +221,7 @@ int secure_os_remove(lua_State* L)
base::remove_directory(absFilename);
return file_result(L, true);
}
catch (std::exception& e) {
catch (const std::exception&) {
return file_result(L, false, EIO, absFilename);
}
}
@ -229,7 +229,7 @@ int secure_os_remove(lua_State* L)
try {
base::delete_file(absFilename);
}
catch (std::exception& e) {
catch (const std::exception&) {
return file_result(L, false, EIO, absFilename);
}
@ -261,7 +261,7 @@ int secure_os_rename(lua_State* L)
base::move_file(absSourceFilename, absDestFilename);
return file_result(L, true);
}
catch (std::exception& e) {
catch (const std::exception&) {
return file_result(L, false, EIO, absSourceFilename);
}
}