Skip to content

Commit

Permalink
wait_for_key: Ignore the return value on Windows builds from _getch().
Browse files Browse the repository at this point in the history
  • Loading branch information
orbitcowboy committed Aug 21, 2019
1 parent 2f6f90a commit dddcfaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example.cc
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ static void wait_for_key (void)
std::cout << std::endl << "Press any key to continue..." << std::endl;

FlushConsoleInputBuffer(GetStdHandle(STD_INPUT_HANDLE));
_getch();
(void)_getch();
#elif defined(unix) || defined(__unix) || defined(__unix__) || defined(__APPLE__)
std::cout << std::endl << "Press ENTER to continue..." << std::endl;

Expand Down

0 comments on commit dddcfaa

Please sign in to comment.