diff options
author | Chris Robinson <[email protected]> | 2019-09-18 10:09:04 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-09-18 10:09:04 -0700 |
commit | 66565ca7a3cd63e242eedb0141341eb9450f0d4a (patch) | |
tree | 09ef30049942305dec9241fe896b8fad7685da11 /al/error.cpp | |
parent | da80a7c2b2e4a66856bec4d7b44c7a7df05a31a5 (diff) |
Enable and fix some more warnings
Diffstat (limited to 'al/error.cpp')
-rw-r--r-- | al/error.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/al/error.cpp b/al/error.cpp index f3e2dbb3..b667d14f 100644 --- a/al/error.cpp +++ b/al/error.cpp @@ -67,7 +67,8 @@ void ALCcontext::setError(ALenum errorCode, const char *msg, ...) else msg = "<internal error constructing message>"; msglen = static_cast<int>(strlen(msg)); - WARN("Error generated on context %p, code 0x%04x, \"%s\"\n", this, errorCode, msg); + WARN("Error generated on context %p, code 0x%04x, \"%s\"\n", + decltype(std::declval<void*>()){this}, errorCode, msg); if(TrapALError) { #ifdef _WIN32 |