mirror of https://github.com/mgba-emu/mgba.git
Core: Fix warning in DISABLE_THREADING build
This commit is contained in:
parent
cfe3309da2
commit
354213515a
|
@ -636,12 +636,6 @@ struct mCoreThread* mCoreThreadGet(void) {
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#else
|
|
||||||
struct mCoreThread* mCoreThreadGet(void) {
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static void _mCoreLog(struct mLogger* logger, int category, enum mLogLevel level, const char* format, va_list args) {
|
static void _mCoreLog(struct mLogger* logger, int category, enum mLogLevel level, const char* format, va_list args) {
|
||||||
UNUSED(logger);
|
UNUSED(logger);
|
||||||
UNUSED(level);
|
UNUSED(level);
|
||||||
|
@ -650,11 +644,14 @@ static void _mCoreLog(struct mLogger* logger, int category, enum mLogLevel level
|
||||||
printf("\n");
|
printf("\n");
|
||||||
struct mCoreThread* thread = mCoreThreadGet();
|
struct mCoreThread* thread = mCoreThreadGet();
|
||||||
if (thread && level == mLOG_FATAL) {
|
if (thread && level == mLOG_FATAL) {
|
||||||
#ifndef DISABLE_THREADING
|
|
||||||
mCoreThreadMarkCrashed(thread);
|
mCoreThreadMarkCrashed(thread);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
struct mCoreThread* mCoreThreadGet(void) {
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
struct mLogger* mCoreThreadLogger(void) {
|
struct mLogger* mCoreThreadLogger(void) {
|
||||||
struct mCoreThread* thread = mCoreThreadGet();
|
struct mCoreThread* thread = mCoreThreadGet();
|
||||||
|
|
Loading…
Reference in New Issue