mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-17 19:45:45 -04:00
Clean up some compiler warnings
This commit is contained in:
@ -1429,8 +1429,6 @@ bool CodeGenerator::Compile_Divide(const CodeBlockInstruction& cbi)
|
||||
{
|
||||
InstructionPrologue(cbi, 1);
|
||||
|
||||
const bool signed_divide = (cbi.instruction.r.funct == InstructionFunct::div);
|
||||
|
||||
Value num = m_register_cache.ReadGuestRegister(cbi.instruction.r.rs);
|
||||
Value denom = m_register_cache.ReadGuestRegister(cbi.instruction.r.rt);
|
||||
if (num.IsConstant() && denom.IsConstant())
|
||||
|
@ -1,9 +1,7 @@
|
||||
#include "gpu_hw_shadergen.h"
|
||||
#include "common/assert.h"
|
||||
#include "common/log.h"
|
||||
#include <cstdio>
|
||||
#include <glad.h>
|
||||
Log_SetChannel(GPU_HW_ShaderGen);
|
||||
|
||||
GPU_HW_ShaderGen::GPU_HW_ShaderGen(HostDisplay::RenderAPI render_api, u32 resolution_scale, bool true_color, bool scaled_dithering, GPUTextureFilter texture_filtering, bool uv_limits, bool supports_dual_source_blend) :
|
||||
ShaderGen(render_api, supports_dual_source_blend),
|
||||
|
@ -149,6 +149,9 @@ protected:
|
||||
/// Restores all settings to defaults.
|
||||
virtual void SetDefaultSettings(SettingsInterface& si);
|
||||
|
||||
/// Performs the initial load of settings. Should call CheckSettings() and LoadSettings(SettingsInterface&).
|
||||
virtual void LoadSettings() = 0;
|
||||
|
||||
/// Loads settings to m_settings and any frontend-specific parameters.
|
||||
virtual void LoadSettings(SettingsInterface& si);
|
||||
|
||||
|
@ -524,10 +524,6 @@ void MDEC::CopyOutBlock()
|
||||
Execute();
|
||||
}
|
||||
|
||||
static constexpr std::array<u8, 64> zigzag = {{0, 1, 5, 6, 14, 15, 27, 28, 2, 4, 7, 13, 16, 26, 29, 42,
|
||||
3, 8, 12, 17, 25, 30, 41, 43, 9, 11, 18, 24, 31, 40, 44, 53,
|
||||
10, 19, 23, 32, 39, 45, 52, 54, 20, 22, 33, 38, 46, 51, 55, 60,
|
||||
21, 34, 37, 47, 50, 56, 59, 61, 35, 36, 48, 49, 57, 58, 62, 63}};
|
||||
static constexpr std::array<u8, 64> zagzig = {{0, 1, 8, 16, 9, 2, 3, 10, 17, 24, 32, 25, 18, 11, 4, 5,
|
||||
12, 19, 26, 33, 40, 48, 41, 34, 27, 20, 13, 6, 7, 14, 21, 28,
|
||||
35, 42, 49, 56, 57, 50, 43, 36, 29, 22, 15, 23, 30, 37, 44, 51,
|
||||
|
@ -63,7 +63,9 @@ void MemoryCard::ResetTransferState()
|
||||
bool MemoryCard::Transfer(const u8 data_in, u8* data_out)
|
||||
{
|
||||
bool ack = false;
|
||||
#ifdef _DEBUG
|
||||
const State old_state = m_state;
|
||||
#endif
|
||||
|
||||
switch (m_state)
|
||||
{
|
||||
|
@ -104,7 +104,6 @@ static void MaskValidate(PGXP_value* pV, u32 psxV, u32 mask, u32 validMask);
|
||||
|
||||
static double f16Sign(double in);
|
||||
static double f16Unsign(double in);
|
||||
static double fu16Trunc(double in);
|
||||
static double f16Overflow(double in);
|
||||
|
||||
typedef union
|
||||
|
Reference in New Issue
Block a user