bsnes - fix inexplicable errors with non-void functions returning nothing on some codepaths

This commit is contained in:
zeromus 2015-06-18 03:05:16 +00:00
parent 23dc607a1a
commit 0d2830f616
2 changed files with 2 additions and 1 deletions

View File

@ -93,6 +93,7 @@ struct Register {
Register& operator=(uint32 n) {
data = n;
if(write) write();
return *this;
}
Register& operator+=(uint32 n) { return operator=(data + n); }

View File

@ -112,7 +112,7 @@ bool ICD2::inputPoll(unsigned id) {
return 0;
}
void* ICD2::allocSharedMemory(const char* memtype, size_t amt, int initialByte) { SNES::interface()->allocSharedMemory(memtype, amt, initialByte); }
void* ICD2::allocSharedMemory(const char* memtype, size_t amt, int initialByte) { return SNES::interface()->allocSharedMemory(memtype, amt, initialByte); }
void ICD2::freeSharedMemory(void* ptr) { SNES::interface()->freeSharedMemory(ptr); }
#endif