Commit Graph

9 Commits

Author SHA1 Message Date
Ryan C. Gordon
6c8977caf0
Heavy patching for compiler warnings.
The vast majority of this is fixing up `char *` that should be `const char *`
but a handful of other fixes, like potential buffer overflows that GCC
noticed, etc, were applied as well.

This removes `-Wno-write-strings` from CMakeLists.txt, as it is no longer
necessary, as there is no longer a flood of compiler warning spam when
building.

This does not fix all compiler warnings; there are still a handful, and they
are legitimate, but they can be dealt with in a future commit.
2024-04-29 00:18:56 -04:00
Azamat H. Hackimov
c18be49ae6 Enable WIN32 property only for Descent3
Disable global linker option that forces /SUBSYSTEM:WINDOWS for all executables (tools and unittest included).
2024-04-29 01:43:06 +03:00
Azamat H. Hackimov
79c7749242 Adding version to HogMaker 2024-04-28 22:05:26 +03:00
Azamat H. Hackimov
c3e0102a4f Implementing C++ byteswap functions
Implementing byteswap functions by using "backported" from C++23 std::byteswap.
Adding unittests based on GoogleTests. To enable it add `-DBUILD_TESTING=ON` to cmake.
2024-04-23 21:18:07 +03:00
Thomas Otto
86d9fb8c13 HogMaker: don't modify data when printing it
- Create reserved bytes when constructing HogHeader
- Only byteswap a copy of the data
- Other small cleanups
2024-04-22 21:51:49 +02:00
Azamat H. Hackimov
e8809973b8 Replace vector with array
Arrays has fixed length, that prevents of possibility accidentally expand them.
2024-04-22 03:27:17 +03:00
Azamat H. Hackimov
6352ab21b9 Fix possible heap buffer overflow
Strict size of name of entry with 36 bytes.
Thanks to MaddTheSane for pointing out.
2024-04-22 02:37:42 +03:00
Azamat H. Hackimov
fb0dabc367 Implementing HogMaker replacement of HogUtils
Currently, this tool can make only create HOG from list of files taken from text file (one line per file).
2024-04-21 19:15:23 +03:00
Martin
e6ce2e0394 This beautifull commit will allow you to checkable auto format your code with clang-formatter-16 2024-04-17 00:25:58 +02:00