Correct handling of unused parameter

Coverity: CID 143742
This commit is contained in:
Chris Pavlina 2016-05-10 23:25:53 -04:00
parent 05255cbae8
commit 5904e4c942
1 changed files with 3 additions and 4 deletions

View File

@ -2,7 +2,7 @@
* This program source code file is part of KiCad, a free EDA CAD application. * This program source code file is part of KiCad, a free EDA CAD application.
* *
* Copyright (C) 2015 Mario Luzeiro <mrluzeiro@ua.pt> * Copyright (C) 2015 Mario Luzeiro <mrluzeiro@ua.pt>
* Copyright (C) 1992-2015 KiCad Developers, see AUTHORS.txt for contributors. * Copyright (C) 1992-2016 KiCad Developers, see AUTHORS.txt for contributors.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License * modify it under the terms of the GNU General Public License
@ -437,14 +437,13 @@ static SFVEC3F light = SFVEC3F();
void C3D_RENDER_OGL_LEGACY::Redraw( bool aIsMoving ) void C3D_RENDER_OGL_LEGACY::Redraw( bool aIsMoving )
{ {
(void) aIsMoving;
// Initialize openGL // Initialize openGL
if( !m_is_opengl_initialized ) if( !m_is_opengl_initialized )
{ {
if( !initializeOpenGL() ) if( !initializeOpenGL() )
return; return;
aIsMoving = true;
A = sphere; A = sphere;
B = cube; B = cube;