Change unused vars to standard void syntax. No functional change intended.

This commit is contained in:
Wilson Snyder
2024-01-20 08:57:22 -05:00
parent 89cfa0737f
commit c30b9d04a8
5 changed files with 6 additions and 12 deletions
+3 -2
View File
@@ -361,7 +361,8 @@ private:
return true;
}
bool readContentsFilter(const string& filename, StrList& outl) {
if (filename != "" || outl.empty()) {} // Prevent unused
(void)filename; // Prevent unused variable warning
(void)outl; // Prevent unused variable warning
#ifdef INFILTER_PIPE
writeFilter("read \"" + filename + "\"\n");
const string line = readFilterLine();
@@ -484,7 +485,7 @@ private:
}
}
void startFilter(const string& command) {
if (command == "") {} // Prevent Unused
(void)command; // Prevent Unused variable warning
#ifdef INFILTER_PIPE
int fd_stdin[2]; // Can't use std::array
int fd_stdout[2]; // Can't use std::array