Browse Source

Fix some minor warnings which have no effect on code produced

David Wimsey 11 years ago
parent
commit
5372e08aba
2 changed files with 3 additions and 3 deletions
  1. 2 2
      Samples/invaders/src/main.cpp
  2. 1 1
      Source/Core/Math.cpp

+ 2 - 2
Samples/invaders/src/main.cpp

@@ -57,9 +57,9 @@ void GameLoop()
 
 
 #if defined ROCKET_PLATFORM_WIN32
 #if defined ROCKET_PLATFORM_WIN32
 #include <windows.h>
 #include <windows.h>
-int APIENTRY WinMain(HINSTANCE, HINSTANCE, char*, int)
+int APIENTRY WinMain(HINSTANCE ROCKET_UNUSED_PARAMETER(instance_handle), HINSTANCE ROCKET_UNUSED_PARAMETER(previous_instance_handle), char* ROCKET_UNUSED_PARAMETER(command_line), int ROCKET_UNUSED_PARAMETER(command_show))
 #else
 #else
-int main(int, char**)
+int main(int ROCKET_UNUSED_PARAMETER(argc), char** ROCKET_UNUSED_PARAMETER(argv))
 #endif
 #endif
 {
 {
 	ShellRenderInterfaceOpenGL opengl_renderer;
 	ShellRenderInterfaceOpenGL opengl_renderer;

+ 1 - 1
Source/Core/Math.cpp

@@ -108,7 +108,7 @@ ROCKETCORE_API float DegreesToRadians(float angle)
 // Normalises and angle in radians
 // Normalises and angle in radians
 ROCKETCORE_API float NormaliseAngle(float angle)
 ROCKETCORE_API float NormaliseAngle(float angle)
 {
 {
-	return fmodf(angle, ROCKET_PI * 2.0);
+	return fmodf(angle, ROCKET_PI * 2.0f);
 }
 }
 
 
 // Calculates the square root of a value.
 // Calculates the square root of a value.