aboutsummaryrefslogtreecommitdiffstats
path: root/alc/backends/base.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2021-03-12 03:14:29 -0800
committerChris Robinson <[email protected]>2021-03-12 03:14:29 -0800
commitc1f0555fef488df0085961710320051c650beecd (patch)
treed8dd9ab9f5841950769720262824e8d81c075828 /alc/backends/base.h
parentca0a6024a322bcc160daf197215aa4deb51fce2a (diff)
Workaround mingw complaining about the %z formatter
Diffstat (limited to 'alc/backends/base.h')
-rw-r--r--alc/backends/base.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/alc/backends/base.h b/alc/backends/base.h
index df076276..07a91e25 100644
--- a/alc/backends/base.h
+++ b/alc/backends/base.h
@@ -103,7 +103,11 @@ class backend_exception final : public base_exception {
backend_error mErrorCode;
public:
+#ifdef __USE_MINGW_ANSI_STDIO
+ [[gnu::format(gnu_printf, 3, 4)]]
+#else
[[gnu::format(printf, 3, 4)]]
+#endif
backend_exception(backend_error code, const char *msg, ...) : mErrorCode{code}
{
std::va_list args;