diff options
Diffstat (limited to 'al')
-rw-r--r-- | al/buffer.cpp | 2 | ||||
-rw-r--r-- | al/eax_exception.cpp | 4 | ||||
-rw-r--r-- | al/error.cpp | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/al/buffer.cpp b/al/buffer.cpp index 8a5bee25..3d9caf54 100644 --- a/al/buffer.cpp +++ b/al/buffer.cpp @@ -761,7 +761,7 @@ void PrepareCallback(ALCcontext *context, ALbuffer *ALBuf, ALsizei freq, const ALuint ambiorder{IsBFormat(*DstChannels) ? ALBuf->UnpackAmbiOrder : (IsUHJ(*DstChannels) ? 1 : 0)}; - constexpr uint line_size{BufferLineSize + MaxPostVoiceLoad}; + static constexpr uint line_size{BufferLineSize + MaxPostVoiceLoad}; al::vector<al::byte,16>(FrameSizeFromFmt(*DstChannels, *DstType, ambiorder) * size_t{line_size}).swap(ALBuf->mData); diff --git a/al/eax_exception.cpp b/al/eax_exception.cpp index c8ecf79d..fdeecaaa 100644 --- a/al/eax_exception.cpp +++ b/al/eax_exception.cpp @@ -30,10 +30,10 @@ std::string EaxException::make_message( return std::string{}; } - constexpr auto left_prefix = "["; + static constexpr char left_prefix[] = "["; const auto left_prefix_size = std::string::traits_type::length(left_prefix); - constexpr auto right_prefix = "] "; + static constexpr char right_prefix[] = "] "; const auto right_prefix_size = std::string::traits_type::length(right_prefix); const auto what_size = diff --git a/al/error.cpp b/al/error.cpp index 8cabf8c3..90671011 100644 --- a/al/error.cpp +++ b/al/error.cpp @@ -87,7 +87,7 @@ START_API_FUNC ContextRef context{GetContextRef()}; if(unlikely(!context)) { - constexpr ALenum deferror{AL_INVALID_OPERATION}; + static constexpr ALenum deferror{AL_INVALID_OPERATION}; WARN("Querying error state on null context (implicitly 0x%04x)\n", deferror); if(TrapALError) { |