From 4992243857083e70d99c4d737135c6d4e6229b7a Mon Sep 17 00:00:00 2001 From: Marco Antognini Date: Sun, 12 Apr 2015 17:07:02 +0200 Subject: [PATCH] Fixed warning about switches --- src/SFML/Graphics/RenderTarget.cpp | 2 -- src/SFML/Network/Http.cpp | 1 - src/SFML/Window/OSX/JoystickImpl.cpp | 1 + 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/SFML/Graphics/RenderTarget.cpp b/src/SFML/Graphics/RenderTarget.cpp index 3b03c38fd..77ecd0162 100644 --- a/src/SFML/Graphics/RenderTarget.cpp +++ b/src/SFML/Graphics/RenderTarget.cpp @@ -42,7 +42,6 @@ namespace { switch (blendFactor) { - default: case sf::BlendMode::Zero: return GL_ZERO; case sf::BlendMode::One: return GL_ONE; case sf::BlendMode::SrcColor: return GL_SRC_COLOR; @@ -62,7 +61,6 @@ namespace { switch (blendEquation) { - default: case sf::BlendMode::Add: return GLEXT_GL_FUNC_ADD; case sf::BlendMode::Subtract: return GLEXT_GL_FUNC_SUBTRACT; } diff --git a/src/SFML/Network/Http.cpp b/src/SFML/Network/Http.cpp index 1e010a7f1..68737f48f 100644 --- a/src/SFML/Network/Http.cpp +++ b/src/SFML/Network/Http.cpp @@ -107,7 +107,6 @@ std::string Http::Request::prepare() const std::string method; switch (m_method) { - default: case Get: method = "GET"; break; case Post: method = "POST"; break; case Head: method = "HEAD"; break; diff --git a/src/SFML/Window/OSX/JoystickImpl.cpp b/src/SFML/Window/OSX/JoystickImpl.cpp index b2b51f1ff..09d76141f 100644 --- a/src/SFML/Window/OSX/JoystickImpl.cpp +++ b/src/SFML/Window/OSX/JoystickImpl.cpp @@ -255,6 +255,7 @@ bool JoystickImpl::open(unsigned int index) case kHIDUsage_GD_Rx: m_axis[Joystick::U] = element; break; case kHIDUsage_GD_Ry: m_axis[Joystick::V] = element; break; case kHIDUsage_GD_Rz: m_axis[Joystick::R] = element; break; + default: break; // kHIDUsage_GD_Vx, kHIDUsage_GD_Vy, kHIDUsage_GD_Vz are ignored. } break;