Fixed warning about switches

This commit is contained in:
Marco Antognini 2015-04-12 17:07:02 +02:00 committed by Lukas Dürrenberger
parent 53f61e9596
commit 4992243857
3 changed files with 1 additions and 3 deletions

View File

@ -42,7 +42,6 @@ namespace
{ {
switch (blendFactor) switch (blendFactor)
{ {
default:
case sf::BlendMode::Zero: return GL_ZERO; case sf::BlendMode::Zero: return GL_ZERO;
case sf::BlendMode::One: return GL_ONE; case sf::BlendMode::One: return GL_ONE;
case sf::BlendMode::SrcColor: return GL_SRC_COLOR; case sf::BlendMode::SrcColor: return GL_SRC_COLOR;
@ -62,7 +61,6 @@ namespace
{ {
switch (blendEquation) switch (blendEquation)
{ {
default:
case sf::BlendMode::Add: return GLEXT_GL_FUNC_ADD; case sf::BlendMode::Add: return GLEXT_GL_FUNC_ADD;
case sf::BlendMode::Subtract: return GLEXT_GL_FUNC_SUBTRACT; case sf::BlendMode::Subtract: return GLEXT_GL_FUNC_SUBTRACT;
} }

View File

@ -107,7 +107,6 @@ std::string Http::Request::prepare() const
std::string method; std::string method;
switch (m_method) switch (m_method)
{ {
default:
case Get: method = "GET"; break; case Get: method = "GET"; break;
case Post: method = "POST"; break; case Post: method = "POST"; break;
case Head: method = "HEAD"; break; case Head: method = "HEAD"; break;

View File

@ -255,6 +255,7 @@ bool JoystickImpl::open(unsigned int index)
case kHIDUsage_GD_Rx: m_axis[Joystick::U] = element; break; case kHIDUsage_GD_Rx: m_axis[Joystick::U] = element; break;
case kHIDUsage_GD_Ry: m_axis[Joystick::V] = element; break; case kHIDUsage_GD_Ry: m_axis[Joystick::V] = element; break;
case kHIDUsage_GD_Rz: m_axis[Joystick::R] = 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. // kHIDUsage_GD_Vx, kHIDUsage_GD_Vy, kHIDUsage_GD_Vz are ignored.
} }
break; break;