diff options
author | Justin Suess <justin.suess@westpoint.edu> | 2023-03-18 07:44:09 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-18 11:44:09 +0000 |
commit | e03e359730c127f888fcf00e93375771bc0a3500 (patch) | |
tree | 9d05727b83a51e801f94cc4aaa74e6c67089310b | |
parent | a81d0c2a171a4446e6a21a3ec74a0c0768d71184 (diff) |
fixed warning with std::ignore about unused function result (#151)
fixed warning with std::ignore about unused function result
-rw-r--r-- | main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1011,7 +1011,7 @@ int main(int argc, char ** argv) { if(params.use_color) printf(ANSI_BOLD ANSI_COLOR_GREEN); if (scanf("%255[^\n]%n%*c", buf, &n_read) <= 0) { // presumable empty line, consume the newline - scanf("%*c"); + std::ignore = scanf("%*c"); n_read=0; } if(params.use_color) printf(ANSI_COLOR_RESET); |