Skip to content

Commit

Permalink
Fixed|GCC: Couple of minor compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Jul 17, 2013
1 parent db7b8fb commit c28f934
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions doomsday/client/src/con_main.cpp
Expand Up @@ -1894,7 +1894,9 @@ void Con_PrintRuler(void)
/// @param flags @ref consolePrintFlags
static void conPrintf(int flags, const char* format, va_list args)
{
#ifdef __SERVER__
const char* text = 0;
#endif

if(format && format[0] && args)
{
Expand All @@ -1903,7 +1905,10 @@ static void conPrintf(int flags, const char* format, va_list args)

// Format the message to prbuff.
dd_vsnprintf(prbuff, PRBUFF_SIZE, format, args);

#ifdef __SERVER__
text = prbuff;
#endif

if(consoleDump)
{
Expand Down
2 changes: 1 addition & 1 deletion doomsday/client/src/render/rend_particle.cpp
Expand Up @@ -973,7 +973,7 @@ void Rend_RenderGenerators()

glDisable(GL_DEPTH_TEST);

float eye[3] = { vOrigin[VX], vOrigin[VZ], vOrigin[VY] };
float eye[3] = { float(vOrigin[VX]), float(vOrigin[VZ]), float(vOrigin[VY]) };
gens->iterate(drawGeneratorOrigin, eye);

// Restore previous state.
Expand Down

0 comments on commit c28f934

Please sign in to comment.