Browse Source

Don't return after std::abort().

MSVC marks that as unreachable code, which is.
pull/34/head
Vladimír Vondruš 13 years ago
parent
commit
e3bf8070b5
  1. 1
      src/AbstractImage.cpp
  2. 4
      src/AbstractShaderProgram.cpp

1
src/AbstractImage.cpp

@ -133,7 +133,6 @@ std::size_t AbstractImage::pixelSize(ColorFormat format, ColorType type) {
} }
CORRADE_ASSERT_UNREACHABLE(); CORRADE_ASSERT_UNREACHABLE();
return 0;
} }
} }

4
src/AbstractShaderProgram.cpp

@ -762,7 +762,6 @@ std::size_t FloatAttribute::size(GLint components, DataType dataType) {
} }
CORRADE_ASSERT_UNREACHABLE(); CORRADE_ASSERT_UNREACHABLE();
return 0;
} }
#ifndef MAGNUM_TARGET_GLES2 #ifndef MAGNUM_TARGET_GLES2
@ -780,7 +779,6 @@ std::size_t IntAttribute::size(GLint components, DataType dataType) {
} }
CORRADE_ASSERT_UNREACHABLE(); CORRADE_ASSERT_UNREACHABLE();
return 0;
} }
#endif #endif
@ -792,7 +790,6 @@ std::size_t DoubleAttribute::size(GLint components, DataType dataType) {
} }
CORRADE_ASSERT_UNREACHABLE(); CORRADE_ASSERT_UNREACHABLE();
return 0;
} }
#endif #endif
@ -827,7 +824,6 @@ std::size_t Attribute<Math::Vector<4, Float>>::size(GLint components, DataType d
} }
CORRADE_ASSERT_UNREACHABLE(); CORRADE_ASSERT_UNREACHABLE();
return 0;
} }
Debug operator<<(Debug debug, SizedAttribute<1, 1>::Components value) { Debug operator<<(Debug debug, SizedAttribute<1, 1>::Components value) {

Loading…
Cancel
Save