joelekstrom / terminal-mines

An ncurses-based minesweeper game
MIT License
64 stars 8 forks source link

fix hang, version number #9

Closed Efreak closed 2 years ago

Efreak commented 2 years ago
  1. Fix hang due to unsigned char, warned about below. This caused it to hang forever when starting.
options.c:33:70: warning: result of comparison of constant -1 with expression of type 'char' is always true [-Wtautological-constant-out-of-range-compare]                              while ((param = getopt_long(argc, argv, "w:h:m:va", options, NULL)) != -1) {                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~
1 warning generated.
cc -Llibminesweeper  terminal-mines.o libminesweeper/libminesweeper.a graphics.o options.o  -lncurses -lminesweeper -o terminal-mines
  1. Fix version number. The current release represents itself as 1.1.0, despite being tagged 1.2.0.