Chore: Enable warnings as errors on MSVC (#6456)
* tests: add Sanity test for SplitFilename83 fix test fix test * disable `C4715:not all control paths return a value` for nihstro includes nihstro: no warn * Chore: Enable warnings as errors on msvc + fix warnings fixes some more warnings clang-format * more fixes * Externals: Add target_compile_options `/W0` nihstro-headers and ... Revert "disable `C4715:not all control paths return a value` for nihstro includes" This reverts commit 606d79b55d3044b744fb835025b8eb0f4ea5b757. * src\citra\config.cpp: ReadSetting: simplify type casting * settings.cpp: Get*Name: remove superflous logs
This commit is contained in:
@@ -31,7 +31,7 @@ enum class ScaleMatch {
|
||||
};
|
||||
|
||||
class CustomTexManager;
|
||||
struct CustomTexture;
|
||||
class CustomTexture;
|
||||
class RendererBase;
|
||||
|
||||
class RasterizerCache : NonCopyable {
|
||||
|
@@ -161,7 +161,7 @@ constexpr void EncodePixel(const u8* source, u8* dest) {
|
||||
} else if constexpr (format == PixelFormat::D24 && converted) {
|
||||
float d32;
|
||||
std::memcpy(&d32, source, sizeof(d32));
|
||||
EncodeD24(d32 * 0xFFFFFF, dest);
|
||||
EncodeD24(static_cast<u32>(d32 * 0xFFFFFF), dest);
|
||||
} else if constexpr (format == PixelFormat::D24S8) {
|
||||
const u32 s8d24 = std::rotr(MakeInt<u32>(source), 8);
|
||||
std::memcpy(dest, &s8d24, sizeof(u32));
|
||||
|
Reference in New Issue
Block a user