diff options
author | Chris Robinson <[email protected]> | 2021-03-12 03:14:29 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2021-03-12 03:14:29 -0800 |
commit | c1f0555fef488df0085961710320051c650beecd (patch) | |
tree | d8dd9ab9f5841950769720262824e8d81c075828 /alc/backends/base.h | |
parent | ca0a6024a322bcc160daf197215aa4deb51fce2a (diff) |
Workaround mingw complaining about the %z formatter
Diffstat (limited to 'alc/backends/base.h')
-rw-r--r-- | alc/backends/base.h | 4 |
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; |