From 5904e4c942d66759a03b405e2ec4c3c11e1137cd Mon Sep 17 00:00:00 2001 From: Chris Pavlina Date: Tue, 10 May 2016 23:25:53 -0400 Subject: [PATCH] Correct handling of unused parameter Coverity: CID 143742 --- .../3d_render_ogl_legacy/c3d_render_ogl_legacy.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/3d-viewer/3d_rendering/3d_render_ogl_legacy/c3d_render_ogl_legacy.cpp b/3d-viewer/3d_rendering/3d_render_ogl_legacy/c3d_render_ogl_legacy.cpp index 4a606b7a5c..90a6544e0b 100644 --- a/3d-viewer/3d_rendering/3d_render_ogl_legacy/c3d_render_ogl_legacy.cpp +++ b/3d-viewer/3d_rendering/3d_render_ogl_legacy/c3d_render_ogl_legacy.cpp @@ -2,7 +2,7 @@ * This program source code file is part of KiCad, a free EDA CAD application. * * Copyright (C) 2015 Mario Luzeiro - * 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 * 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) aIsMoving; + // Initialize openGL if( !m_is_opengl_initialized ) { if( !initializeOpenGL() ) return; - aIsMoving = true; - - A = sphere; B = cube;