1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-03 11:30:02 +00:00

Corrects various impossible-in-real-life compiler warnings.

This commit is contained in:
Thomas Harte 2018-05-12 18:02:16 -04:00
parent d703328114
commit bd27f61a03
3 changed files with 3 additions and 3 deletions

View File

@ -435,7 +435,7 @@ void OpenGLOutputBuilder::set_colour_space_uniforms() {
GLfloat rgbToYIQ[] = {0.299f, 0.596f, 0.211f, 0.587f, -0.274f, -0.523f, 0.114f, -0.322f, 0.312f};
GLfloat yiqToRGB[] = {1.0f, 1.0f, 1.0f, 0.956f, -0.272f, -1.106f, 0.621f, -0.647f, 1.703f};
GLfloat *fromRGB, *toRGB;
GLfloat *fromRGB = nullptr, *toRGB = nullptr;
switch(colour_space_) {
case ColourSpace::YIQ:

View File

@ -24,7 +24,7 @@ std::string IntermediateShader::get_input_name(Input input) {
case Input::PhaseTimeAndAmplitude: return "phaseTimeAndAmplitude";
// Intended to be unreachable.
default: assert(false);
default: assert(false); return "";
}
}

View File

@ -20,7 +20,7 @@ std::string OutputShader::get_input_name(Input input) {
case Input::Vertical: return "vertical";
// Intended to be unreachable.
default: assert(false);
default: assert(false); return "";
}
}