nhmall
3c8628f549
correct a few typos
2025-10-24 12:27:05 -04:00
nhmall
f636749ea2
suppress dozens of new compiler warnings with clang-21
...
Turn off default -Wdeprecated-octal-literals warning with clang-21
One example of many:
In file included from objects.c:22:
../include/objects.h:137:1: warning: octal literals without a '0o' prefix are deprecated
[-Wdeprecated-octal-literals]
137 | PROJECTILE("arrow", NoDes,
| ^
../include/objects.h:119:48: note: expanded from macro 'PROJECTILE'
119 | BITS(kn, 1, 1, 0, 0, 1, 0, 0, 0, 0, PIERCE, sub, metal), \
| ^
../include/objclass.h:79:18: note: expanded from macro 'PIERCE'
79 | #define PIERCE 01 /* pointed weapon punctures target */
| ^
In file included from objects.c:22:
../include/objects.h:140:1: warning: octal literals without a '0o' prefix are deprecated
[-Wdeprecated-octal-literals]
140 | PROJECTILE("elven arrow", "runed arrow",
| ^
../include/objects.h:119:48: note: expanded from macro 'PROJECTILE'
119 | BITS(kn, 1, 1, 0, 0, 1, 0, 0, 0, 0, PIERCE, sub, metal), \
| ^
../include/objclass.h:79:18: note: expanded from macro 'PIERCE'
79 | #define PIERCE 01 /* pointed weapon punctures target */
| ^
In file included from objects.c:22:
../include/objects.h:143:1: warning: octal literals without a '0o' prefix are deprecated
[-Wdeprecated-octal-literals]
143 | PROJECTILE("orcish arrow", "crude arrow",
| ^
../include/objects.h:119:48: note: expanded from macro 'PROJECTILE'
119 | BITS(kn, 1, 1, 0, 0, 1, 0, 0, 0, 0, PIERCE, sub, metal), \
| ^
../include/objclass.h:79:18: note: expanded from macro 'PIERCE'
79 | #define PIERCE 01 /* pointed weapon punctures target */
| ^
2025-10-22 12:52:10 -04:00
nhmall
9b375ea488
revert a couple of unintended vcxproj changes
2025-10-05 10:18:24 -04:00
nhmall
ea4ffba1ce
another visual studio follow-up
2025-09-26 09:13:38 -04:00
nhmall
976aca6530
follow-up bit for visual studio
2025-09-26 08:59:49 -04:00
nhmall
32873218cd
update tested versions of Visual Studio 2025-09-26
2025-09-26 08:57:31 -04:00
nhmall
9b7b2421ac
update tested versions of Visual Studio 2025-09-17
2025-09-17 12:39:32 -04:00
nhmall
349fbe93b1
less verbose compiler command lines during build
...
If using hints file sys/unix/hints/linux.370 or sys/unix/hints/macOS.370
allow the majority of the boilerplate compile switches to reside in a
compiler response file, instead of on the command line.
Include one of the following on your make command line:
make response=1
or
make resp=1
It can be combined with other make command line options. See
sys/unix/README-hints for further information about those.
The response files that it uses are:
CC (clang or gcc) src/nethack_cc.rsp
CXx (clang++ or g++) src/nethack_cxx.rsp
Note: I think the reduced clutter should actually become the default,
and the override should be noresponse=1 to NOT use it, but I'm
not sure how others feel, so for now, it requires
make resp=1
Feedback on whether that should become the default or not
is welcome.
Tested on Linux with gcc-15 and on Linux with clang-20.
I haven't had a chance to test it on macOS yet.
2025-09-07 12:50:54 -04:00
nhmall
f110db02fc
updates for build on OpenVMS
2025-08-28 11:43:47 -04:00
nhmall
ab26a2e851
strip some outdated info from sys/windows/porthelp
2025-08-19 20:37:43 -04:00
nhmall
16c723f0be
update tested versions of Visual Studio 2025-08-19
2025-08-19 13:21:56 -04:00
nhmall
6c3e70ad77
remove stray tabs from *.c files and config.h
2025-08-19 08:35:39 -04:00
nhmall
16716c2d3a
update tested versions of Visual Studio 2025-08-16
2025-08-16 12:38:58 -04:00
nhmall
70510f1dbc
update visual studio sys/windows/vs/cpp.hint
2025-08-06 21:27:54 -04:00
nhmall
5fe7c4d12e
update tested versions of Visual Studio 2025-08-06
2025-08-06 21:27:25 -04:00
Michael Allison
b0076decae
more Xcode follow-up
2025-08-06 14:25:50 -04:00
Michael Allison
2b399d1739
more follow-up (for Xcode)
2025-08-06 14:12:10 -04:00
nhmall
80e11c287d
more follow-up (for visual studio)
2025-08-06 13:55:41 -04:00
nhmall
75a2a61653
some Makefile follow-up
2025-08-06 13:51:22 -04:00
nhmall
36dcb92288
MSYS2 package fix: include lua-5.4.6.dll in zip
2025-07-19 18:22:35 -04:00
nhmall
f58b7a8269
update tested versions of Visual Studio 2025-07-16
2025-07-16 21:04:04 -04:00
nhkeni
65774372e6
Merge branch 'NetHack-3.7' of https://rodney.nethack.org:20040/git/NHsource into NetHack-3.7
2025-07-11 15:44:43 -04:00
nhkeni
03415bc595
fix typo
2025-07-11 15:44:23 -04:00
nhmall
6c22e7af45
attempt to ensure the correct curses.h is used on Linux
...
OpenSUSE Tumbleweed ncurses 6.5 requires the one in
/usr/include/ncursesw/curses.h, if ncursesw is being used.
Otherwise, several needed function prototypes are not there.
Fixes #1427
2025-07-10 22:44:56 -04:00
nhmall
b4f2ef853a
add more fallback values to allow basic build to proceed
2025-07-07 12:43:27 -04:00
nhmall
69cf9ad689
aim for successful build even without using hints file
2025-07-07 10:32:47 -04:00
nhmall
ce8c4c3ca2
fix reported missing closing '%' in fetch.cmd
...
Reported directly to devteam by email in K4336 (thank you).
2025-07-07 10:07:02 -04:00
nhmall
da132e3bb0
Revert "remove extraneous script file (Windows)"
...
This reverts commit 33652b8288 .
2025-07-07 10:00:25 -04:00
nhmall
34b42d2354
recent qt6 requires c++20
...
There are warnings within the qt6 header files if c++20 is not used, for example:
usr/include/x86_64-linux-gnu/qt6/QtCore/qfuturesynchronizer.h:21:5: warning: use of the 'nodiscard' attribute is a C++20 extension [-Wc++20-attribute-extensions]
21 | Q_NODISCARD_CTOR_X("Use future.waitForFinished() instead.")
| ^
/usr/include/x86_64-linux-gnu/qt6/QtCore/qcompilerdetection.h:972:43: note: expanded from macro 'Q_NODISCARD_CTOR_X'
972 | # define Q_NODISCARD_CTOR_X(message) [[nodiscard(message)]]
| ^
1 warning generated.
qmake6 --version
QMake version 3.1
Using Qt version 6.8.3 in /usr/lib/x86_64-linux-gnu
2025-06-29 11:59:07 -04:00
Pasi Kallinen
8d8867007f
Typofix
2025-06-27 00:28:27 +03:00
nhmall
1e5a132fa1
update tested versions of Visual Studio 2025-06-19
2025-06-19 13:44:06 -04:00
nhmall
8d0b284dc6
update tested versions of Visual Studio 2025-06-04
2025-06-04 07:37:34 -04:00
nhmall
cb12423a2e
sys/unix/Makefile.utl update for sfctool
2025-06-02 21:52:38 -04:00
nhmall
d25e016140
typo fix again
2025-06-02 21:38:21 -04:00
nhmall
c85b3f87d1
GNUmakefile follow-up
2025-06-02 21:33:05 -04:00
nhmall
34c010579b
update sys/windows/Makefile.nmake for sfctool
2025-06-02 21:20:47 -04:00
nhmall
5d9656c801
typo fix in sys/windows/GNUmakefile
2025-06-02 21:17:40 -04:00
nhmall
1fb403f299
sfctool MSYS2 build
2025-06-02 21:08:38 -04:00
nhmall
e33cf7a6d6
more CI, GNUmakefile interaction
2025-06-02 12:07:11 -04:00
nhmall
f262b8b015
CI mingw update
2025-06-02 12:00:42 -04:00
nhmall
40c1842010
update Windows Makefile.nmake
2025-06-02 10:42:21 -04:00
nhmall
a9c0cd624f
a build fix, due to compile issue for pdcursesmod
...
GCC15 switched its default to -std=gnu23 and there's a bug in
pdcursesmod as a result. That impacts MSYS2/Mingw64 NetHack builds.
See: https://github.com/Bill-Gray/PDCursesMod/issues/333
The suggestion there is to force --std=gnu17 as a workaround.
2025-06-02 10:32:36 -04:00
nhmall
afafc69eed
MSYS2 build fixes
2025-06-02 08:50:10 -04:00
Michael Allison
2414e56646
Xcode project update to include: cfgfiles.c sfbase.c
2025-06-01 22:04:44 -04:00
nhmall
66007e6783
remove duplicated code from sfctool.c, sftags.c
...
Link with hacklib to provide them instead
2025-06-01 15:32:55 -04:00
nhmall
9ef5e886ee
consistent ATTRNORETURN prefix and NORETURN suffix
2025-05-30 22:01:20 -04:00
nhmall
a99944fb09
improve sfctool messages
2025-05-29 09:59:29 -04:00
nhmall
c258011fbc
update tested versions of Visual Studio 2025-05-28
2025-05-28 21:32:21 -04:00
nhmall
41aee443c0
vcxproj bit for sfctool
2025-05-26 22:03:49 -04:00
nhmall
956c826223
Makefile.src bit
2025-05-26 13:34:31 -04:00