Commit 1e3b2316 authored by phcoder's avatar phcoder
Browse files

Fix several warnings

parent 0838b2b9
......@@ -73,7 +73,7 @@ namespace retro8
};
static color_t colorForRGB(uint32_t color)
static inline color_t colorForRGB(uint32_t color)
{
switch (color & 0x00ffffff)
{
......
......@@ -225,7 +225,6 @@ int palt(lua_State* L)
{
color_t c = color_t(int(lua_tonumber(L, 1)));
int f = lua_toboolean(L, 2);
palette_index_t index = gfx::DRAW_PALETTE_INDEX;
machine->memory().paletteAt(gfx::DRAW_PALETTE_INDEX)->transparent(c, f);
}
......
......@@ -183,7 +183,6 @@ void Machine::circfill(coord_t xc, coord_t yc, amount_t r, color_t color)
float d = 3 - 2 * r;
circFillHelper(xc, yc, x, y, color);
int ctr = 0;
while (y >= x)
{
x++;
......
......@@ -405,9 +405,6 @@ void APU::renderSounds(int16_t* dest, size_t totalSamples)
{
handleCommands();
constexpr size_t rate = 44100;
constexpr int16_t maxVolume = 4096;
memset(dest, 0, sizeof(int16_t)*totalSamples);
for (size_t i = 0; i < CHANNEL_COUNT; ++i)
......
......@@ -228,7 +228,7 @@ namespace retro8
public:
APU(Memory& memory) : memory(memory), _soundEnabled(true), _musicEnabled(true), dsp(44100) { }
APU(Memory& memory) : memory(memory), dsp(44100), _soundEnabled(true), _musicEnabled(true) { }
void init();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment