Files
nethack/include
nhmall 6c61004b06 g++-12 bits, mostly Qt5 related
I forced a test compile to -std=c++20 mostly to see what we would
be up against. There was only a small number of things and they
are corrected in this commit.

c++20 has some issues with comparisons and bit twiddling between
different enums.

The vendor-supplied Qt5 header files triggered some of those issues as
well, so the qt_pre.h and qt_post.h NetHack header files were adjusted
to make those new warnings go away.  I have not tested Qt6 under the
new compiler and c++ version yet.

Because there are multiple pragmas in qt_pre.h now, the conditional
ifdef structure in there was modified a little to make maintenance
simpler and have a single pragma push at the top. The pragma pop
comes after the Qt vendor-supplied header files, and is done
in qt_post.h.

The display.h macro cmap_to_glyph() was used in
a Qt c++ file and triggered a series of warnings because of that.
Rather than write c++20-friendly versions of those macros, the
simple fix is to provide a function on the C side of things
to front the cmap_to_glyph() macro, so fn_cmap_to_glyph()
was added.

Also thrown into this commit, PatR picked up on the fact that for
yesterday's new warning in qt_menu.cpp, the compiler had correctly
picked up on the fact that the format range of the variable 'cash'
had been correctly upper-capped at 999999999L in the warning message
because of an assignment prior. He suggested that perhaps by also adding
    if (cash < 0)
       cash = 0;
the warning might be eliminated altogether.
After a test, that was proven to be correct, so yesterday's
more-kludgy change is reverted and replaced with that variable
variable restriction ahead of the snprintf().
2022-06-11 13:52:58 -04:00
..
2022-02-04 11:01:20 -05:00
2022-03-13 13:58:56 -07:00
2020-10-14 09:25:45 -07:00
2022-01-29 11:13:01 -08:00
2022-03-04 13:07:14 -08:00
2022-04-27 11:22:12 -07:00
2021-01-26 21:06:16 -05:00
2022-06-11 13:52:58 -04:00
2022-05-07 10:25:13 -04:00
2022-03-11 07:33:28 -05:00
2021-01-20 22:18:34 -06:00
2021-12-26 00:16:55 -08:00
2020-12-04 09:30:21 +02:00
2022-05-27 15:28:49 -07:00
2022-02-16 23:04:02 +02:00
2022-03-18 10:19:04 +02:00
2022-03-26 11:23:06 -07:00
2022-02-02 05:26:03 -08:00
2022-01-28 08:30:08 +02:00
2022-05-07 10:25:13 -04:00
2022-05-09 09:15:17 -04:00
2021-12-19 19:31:19 -08:00
2022-04-27 15:43:18 -07:00
2022-03-09 07:06:37 -08:00
2022-05-07 10:25:13 -04:00
2022-03-02 13:09:42 -08:00
2022-02-01 13:03:41 -05:00
2020-08-12 16:15:28 -07:00
2022-03-15 13:46:56 +02:00
2022-04-27 11:22:12 -07:00
2021-10-21 08:48:23 -04:00
2022-05-07 10:25:13 -04:00
2022-03-16 21:27:06 -04:00
2022-05-07 10:25:13 -04:00
2022-05-07 10:25:13 -04:00
2022-05-07 10:25:13 -04:00
2022-01-29 16:28:06 -05:00
2021-01-26 10:27:51 -05:00
2022-04-27 11:04:12 -07:00
2022-01-11 10:25:50 -08:00