Skip to content
Permalink
Browse files

Squash some warnings

  • Loading branch information
TimePath committed Aug 16, 2015
1 parent eee9196 commit e4f9cec22f6cf4e9c15ca4d700744d1d97618374
Showing with 4 additions and 3 deletions.
  1. +2 −1 daemon/src/engine/framework/VirtualMachine.cpp
  2. +2 −2 daemon/src/engine/qcommon/files.cpp
@@ -188,7 +188,8 @@ static std::pair<Sys::OSHandle, IPC::Socket> InternalLoadModule(std::pair<IPC::S
execve(args[0], const_cast<char* const*>(args), env);

// If the exec fails, return errno to the parent through the pipe
write(pipefds[1], &errno, sizeof(int));
ssize_t wrote = write(pipefds[1], &errno, sizeof(int));
Q_UNUSED(wrote);
_exit(-1);
}

@@ -86,7 +86,7 @@ int FS_FOpenFileRead(const char* path, fileHandle_t* handle, bool)
return FS_FileExists(path);

*handle = FS_AllocHandle();
int length;
int length = -1;
std::error_code err;
if (FS::PakPath::FileExists(path)) {
handleTable[*handle].fileData = FS::PakPath::ReadFile(path, err);
@@ -107,7 +107,7 @@ int FS_FOpenFileRead(const char* path, fileHandle_t* handle, bool)
if (err) {
Com_DPrintf("Failed to open '%s' for reading: %s\n", path, err.message().c_str());
*handle = 0;
return -1;
length = -1;
}
return length;
}

0 comments on commit e4f9cec

Please sign in to comment.
You can’t perform that action at this time.