remove __UNUSED

No need since we have C++17.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2025-05-31 13:11:44 -07:00
committed by Jari Sundell
parent 1003013f10
commit 3ab38583b8
8 changed files with 17 additions and 38 deletions
+2 -2
View File
@@ -19,7 +19,7 @@ namespace rpc {
int
ExecFile::execute(const char* file, char* const* argv, int flags) {
// Write the execued command and its parameters to the log fd.
int __UNUSED result;
[[maybe_unused]] int result;
if (m_log_fd != -1) {
for (char* const* itr = argv; *itr != NULL; itr++) {
@@ -89,7 +89,7 @@ ExecFile::execute(const char* file, char* const* argv, int flags) {
for (int i = 3, last = sysconf(_SC_OPEN_MAX); i != last; i++)
::close(i);
int result = execvp(file, argv);
result = execvp(file, argv);
_exit(result);
}