Skip to content

Commit

Permalink
Fix clang 8 compile warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob1 committed Oct 4, 2019
1 parent ec2576d commit a50b172
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
22 changes: 11 additions & 11 deletions src/graphics/Renderer.cpp
Expand Up @@ -2590,67 +2590,67 @@ Renderer::Renderer(Graphics * g, Simulation * sim):
"Alternative Velocity Display",
{ RENDER_EFFE, RENDER_BASC },
{ DISPLAY_AIRC },
{ }
0
});
renderModePresets.push_back({
"Velocity Display",
{ RENDER_EFFE, RENDER_BASC },
{ DISPLAY_AIRV },
{ }
0
});
renderModePresets.push_back({
"Pressure Display",
{ RENDER_EFFE, RENDER_BASC },
{ DISPLAY_AIRP },
{ }
0
});
renderModePresets.push_back({
"Persistent Display",
{ RENDER_EFFE, RENDER_BASC },
{ DISPLAY_PERS },
{ }
0
});
renderModePresets.push_back({
"Fire Display",
{ RENDER_FIRE, RENDER_SPRK, RENDER_EFFE, RENDER_BASC },
{ },
{ }
0
});
renderModePresets.push_back({
"Blob Display",
{ RENDER_FIRE, RENDER_SPRK, RENDER_EFFE, RENDER_BLOB },
{ },
{ }
0
});
renderModePresets.push_back({
"Heat Display",
{ RENDER_BASC },
{ DISPLAY_AIRH },
{ COLOUR_HEAT }
COLOUR_HEAT
});
renderModePresets.push_back({
"Fancy Display",
{ RENDER_FIRE, RENDER_SPRK, RENDER_GLOW, RENDER_BLUR, RENDER_EFFE, RENDER_BASC },
{ DISPLAY_WARP },
{ }
0
});
renderModePresets.push_back({
"Nothing Display",
{ RENDER_BASC },
{ },
{ }
0
});
renderModePresets.push_back({
"Heat Gradient Display",
{ RENDER_BASC },
{ },
{ COLOUR_GRAD }
COLOUR_GRAD
});
renderModePresets.push_back({
"Life Gradient Display",
{ RENDER_BASC },
{ },
{ COLOUR_LIFE }
COLOUR_LIFE
});

//Prepare the graphics cache
Expand Down
2 changes: 1 addition & 1 deletion src/simulation/CoordStack.h
Expand Up @@ -46,7 +46,7 @@ class CoordStack
}
~CoordStack()
{
delete stack;
delete[] stack;
}
void push(int x, int y)
{
Expand Down

0 comments on commit a50b172

Please sign in to comment.