mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-19 08:31:11 +00:00
Corrects various impossible-in-real-life compiler warnings.
This commit is contained in:
parent
d703328114
commit
bd27f61a03
@ -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 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 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_) {
|
switch(colour_space_) {
|
||||||
case ColourSpace::YIQ:
|
case ColourSpace::YIQ:
|
||||||
|
@ -24,7 +24,7 @@ std::string IntermediateShader::get_input_name(Input input) {
|
|||||||
case Input::PhaseTimeAndAmplitude: return "phaseTimeAndAmplitude";
|
case Input::PhaseTimeAndAmplitude: return "phaseTimeAndAmplitude";
|
||||||
|
|
||||||
// Intended to be unreachable.
|
// Intended to be unreachable.
|
||||||
default: assert(false);
|
default: assert(false); return "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ std::string OutputShader::get_input_name(Input input) {
|
|||||||
case Input::Vertical: return "vertical";
|
case Input::Vertical: return "vertical";
|
||||||
|
|
||||||
// Intended to be unreachable.
|
// Intended to be unreachable.
|
||||||
default: assert(false);
|
default: assert(false); return "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user