mirror of
https://github.com/SFML/SFML.git
synced 2025-01-19 07:45:13 +08:00
Fixed warning about switches
This commit is contained in:
parent
53f61e9596
commit
4992243857
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user