Fix various warnings reported by gcc

Shadowed variables, const warnings
This commit is contained in:
Lambert Clara
2012-08-12 13:24:21 +02:00
parent c8c36f6ec0
commit c2729181a2
9 changed files with 29 additions and 29 deletions

View File

@@ -330,7 +330,7 @@ void DrawBoingBall( void )
/*****************************************************************************
* Bounce the ball.
*****************************************************************************/
void BounceBall( double dt )
void BounceBall( double delta_t )
{
GLfloat sign;
GLfloat deg;
@@ -358,8 +358,8 @@ void BounceBall( double dt )
}
/* Update ball position */
ball_x += ball_x_inc * ((float)dt*ANIMATION_SPEED);
ball_y += ball_y_inc * ((float)dt*ANIMATION_SPEED);
ball_x += ball_x_inc * ((float)delta_t*ANIMATION_SPEED);
ball_y += ball_y_inc * ((float)delta_t*ANIMATION_SPEED);
/*
* Simulate the effects of gravity on Y movement.

View File

@@ -442,7 +442,6 @@ static void mouseButtonFun(GLFWwindow window, int button, int action)
int main(void)
{
GLFWwindow window;
int width, height;
// Initialise GLFW
if (!glfwInit())