Fix uninitialized variable warnings being emitted by current clang
parent
a455d3ee7d
commit
36d4dc4e2b
|
|
@ -1051,7 +1051,7 @@ void LLXferManager::retransmitUnackedPackets()
|
|||
// Re-build mOutgoingHosts data
|
||||
updateHostStatus();
|
||||
|
||||
F32 et;
|
||||
F32 et = 0.f;
|
||||
iter = mSendList.begin();
|
||||
while (iter != mSendList.end())
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1123,17 +1123,6 @@ bool LLGLManager::initGL()
|
|||
if (mGLVersion >= 2.f)
|
||||
{
|
||||
parse_glsl_version(mGLSLVersionMajor, mGLSLVersionMinor);
|
||||
|
||||
#if 0 && LL_DARWIN
|
||||
// TODO maybe switch to using a core profile for GL 3.2?
|
||||
// https://stackoverflow.com/a/19868861
|
||||
//never use GLSL greater than 1.20 on OSX
|
||||
if (mGLSLVersionMajor > 1 || mGLSLVersionMinor > 30)
|
||||
{
|
||||
mGLSLVersionMajor = 1;
|
||||
mGLSLVersionMinor = 30;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
if (mGLVersion >= 2.1f && LLImageGL::sCompressTextures)
|
||||
|
|
@ -2749,7 +2738,7 @@ void LLGLUserClipPlane::setPlane(F32 a, F32 b, F32 c, F32 d)
|
|||
if(cplane[2] < 0)
|
||||
cplane *= -1;
|
||||
|
||||
glm::mat4 suffix;
|
||||
glm::mat4 suffix = glm::identity<glm::mat4>();
|
||||
suffix = glm::row(suffix, 2, cplane);
|
||||
glm::mat4 newP = suffix * P;
|
||||
gGL.matrixMode(LLRender::MM_PROJECTION);
|
||||
|
|
|
|||
|
|
@ -1281,7 +1281,7 @@ bool LLXMLNode::getAttributeU8(const char* name, U8& value )
|
|||
bool LLXMLNode::getAttributeS8(const char* name, S8& value )
|
||||
{
|
||||
LLXMLNodePtr node;
|
||||
S32 val;
|
||||
S32 val{};
|
||||
if (!(getAttribute(name, node) && node->getIntValue(1, &val)))
|
||||
{
|
||||
return false;
|
||||
|
|
@ -1293,7 +1293,7 @@ bool LLXMLNode::getAttributeS8(const char* name, S8& value )
|
|||
bool LLXMLNode::getAttributeU16(const char* name, U16& value )
|
||||
{
|
||||
LLXMLNodePtr node;
|
||||
U32 val;
|
||||
U32 val{};
|
||||
if (!(getAttribute(name, node) && node->getUnsignedValue(1, &val)))
|
||||
{
|
||||
return false;
|
||||
|
|
@ -1305,7 +1305,7 @@ bool LLXMLNode::getAttributeU16(const char* name, U16& value )
|
|||
bool LLXMLNode::getAttributeS16(const char* name, S16& value )
|
||||
{
|
||||
LLXMLNodePtr node;
|
||||
S32 val;
|
||||
S32 val{};
|
||||
if (!(getAttribute(name, node) && node->getIntValue(1, &val)))
|
||||
{
|
||||
return false;
|
||||
|
|
|
|||
|
|
@ -645,7 +645,7 @@ void LLPanelPrimMediaControls::updateShape()
|
|||
vert_it = vect_face.begin();
|
||||
vert_end = vect_face.end();
|
||||
|
||||
glm::mat4 mat;
|
||||
glm::mat4 mat = glm::identity<glm::mat4>();
|
||||
if (!is_hud)
|
||||
{
|
||||
mat = get_current_projection() * get_current_modelview();
|
||||
|
|
|
|||
Loading…
Reference in New Issue