I've been away from the game since early in the year. Did a pull this morning and then rebuilt.
The build generated a number of warnings. I'm using gcc 8.2.0 which has some new (or new-ish, I was previously using gcc 4.1) warnings about fall-throughs in switches. The warnings can be suppressed with a comment, "/* fall through */", where fall-throughs are desired. Here are the locations where I had to add them to get a clean compile:
I was a bit surprised that in effects.c I didn't need 4 separate comments.
GCC 8 comes with many annoyances. In one of my projects, it complained about space for snprintf() when converting ints; it assumes that all int conversions require 11 bytes (negative 2.1 billion), while my ints were constrained to 2 bytes. Had to use a hideous set of pragmas to suppress the warnings.
The build generated a number of warnings. I'm using gcc 8.2.0 which has some new (or new-ish, I was previously using gcc 4.1) warnings about fall-throughs in switches. The warnings can be suppressed with a comment, "/* fall through */", where fall-throughs are desired. Here are the locations where I had to add them to get a clean compile:
Code:
effects.c:4805: /* fall through */ obj-pile.c:535: /* fall through */ player-birth.c:790: /* fall through */ ui-birth.c:1054: /* fall through */ ui-target.c:1122: /* fall through */
GCC 8 comes with many annoyances. In one of my projects, it complained about space for snprintf() when converting ints; it assumes that all int conversions require 11 bytes (negative 2.1 billion), while my ints were constrained to 2 bytes. Had to use a hideous set of pragmas to suppress the warnings.
Comment