Commit 02bba03c authored by Zhiping Jiang (蒋志平)'s avatar Zhiping Jiang (蒋志平) 💬

suppress compilation warning

parent cd7075a2
Pipeline #38613053 failed with stage
in 1 minute and 10 seconds
......@@ -81,6 +81,10 @@ namespace EnhancedConsoleText {
void press2Continue(const std::string content) {
println(content);
// very ugly way to suppress warning
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-result"
system("/bin/bash -c \"read -n 1 -s\"");
#pragma GCC diagnostic pop
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment