xray-16
xray-16 copied to clipboard
Fix almost all -Wall warnings
Errors on my end, x86_64 Linux w/ GCC10 (and 9):
[ 10%] Building CXX object src/xrCore/CMakeFiles/xrCore.dir/FS.cpp.o
/build/source/src/xrCore/FS.cpp: In function 'void FileCompress(pcstr, pcstr, void*, size_t)':
/build/source/src/xrCore/FS.cpp:172:11: error: ignoring return value of 'ssize_t write(int, const void*, size_t)' declared with attribute 'warn_unused_result' [8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wunused-result-Werror=unused-result8;;]
172 | _write(H, &M, 8);
| ^
/build/source/src/xrCore/FS.cpp: In function 'void* FileDecompress(pcstr, pcstr, size_t*)':
/build/source/src/xrCore/FS.cpp:184:10: error: ignoring return value of 'ssize_t read(int, void*, size_t)' declared with attribute 'warn_unused_result' [8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wunused-result-Werror=unused-result8;;]
184 | _read(H, &F, 8);
| ^
cc1plus: all warnings being treated as errors
make[2]: *** [src/xrCore/CMakeFiles/xrCore.dir/build.make:237: src/xrCore/CMakeFiles/xrCore.dir/FS.cpp.o] Error 1
@OPNA2608 Hi, sorry for such late answer, can you try it now?
Doesn't error anymore, but some warnings remain on my end. Here's the build log.
Случайно закрыл
Since you have submitted a major number of changes from this PR in separate PRs, let's close it to reduce the number of pull requests. :)