diff --git a/include/Nazara/Math/Angle.inl b/include/Nazara/Math/Angle.inl index 61d334ecf..9779b0b53 100644 --- a/include/Nazara/Math/Angle.inl +++ b/include/Nazara/Math/Angle.inl @@ -126,7 +126,7 @@ namespace Nz template void SinCos(std::enable_if_t::value, long double> x, long double* s, long double* c) { - ::sincosl(x, sin, cos); + ::sincosl(x, s, c); } #else // Naive implementation, hopefully optimized by the compiler diff --git a/include/Nazara/Shader/SpirvPrinter.hpp b/include/Nazara/Shader/SpirvPrinter.hpp index 82129322b..fbfe0eeb2 100644 --- a/include/Nazara/Shader/SpirvPrinter.hpp +++ b/include/Nazara/Shader/SpirvPrinter.hpp @@ -23,8 +23,8 @@ namespace Nz SpirvPrinter(SpirvPrinter&&) = default; ~SpirvPrinter() = default; - std::string Print(const UInt32* codepoints, std::size_t count); - std::string Print(const UInt32* codepoints, std::size_t count, const Settings& settings = {}); + inline std::string Print(const UInt32* codepoints, std::size_t count); + std::string Print(const UInt32* codepoints, std::size_t count, const Settings& settings); SpirvPrinter& operator=(const SpirvPrinter&) = default; SpirvPrinter& operator=(SpirvPrinter&&) = default; diff --git a/src/Nazara/Shader/SpirvExpressionStore.cpp b/src/Nazara/Shader/SpirvExpressionStore.cpp index 109ad53c3..85dabdf58 100644 --- a/src/Nazara/Shader/SpirvExpressionStore.cpp +++ b/src/Nazara/Shader/SpirvExpressionStore.cpp @@ -29,7 +29,7 @@ namespace Nz { m_writer.WriteLocalVariable(value.varName, resultId); }, - [this](std::monostate) + [](std::monostate) { throw std::runtime_error("an internal error occurred"); } @@ -62,11 +62,11 @@ namespace Nz return resultId; }, - [&](const LocalVar& value) -> UInt32 + [](const LocalVar& value) -> UInt32 { throw std::runtime_error("not yet implemented"); }, - [this](std::monostate) -> UInt32 + [](std::monostate) -> UInt32 { throw std::runtime_error("an internal error occurred"); }