mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
Fix all remaining build warnings and eliminate UB in binary parsers
Resolve 57 compiler warnings (unused params/vars, ignored return values, enum mismatch) and replace undefined-behavior reinterpret_cast with memcpy in DBC, BLP, and Warden module loaders for ARM64 portability.
This commit is contained in:
parent
22518f0936
commit
aaab2115d1
12 changed files with 112 additions and 101 deletions
|
|
@ -92,8 +92,8 @@ inline ProcessHandle spawnProcess(const std::vector<std::string>& args) {
|
|||
if (pid == 0) {
|
||||
// Child process
|
||||
setpgid(0, 0);
|
||||
freopen("/dev/null", "w", stdout);
|
||||
freopen("/dev/null", "w", stderr);
|
||||
if (!freopen("/dev/null", "w", stdout)) { _exit(1); }
|
||||
if (!freopen("/dev/null", "w", stderr)) { _exit(1); }
|
||||
|
||||
// Build argv for exec
|
||||
std::vector<const char*> argv;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue