This commit is contained in:
Branimir Karadžić 2016-02-20 14:49:22 -08:00
parent 9e16567e67
commit 1b89cbe5f1
3 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,7 @@
#ifdef __GNUC__
# pragma GCC diagnostic ignored "-Wshadow"
# pragma GCC diagnostic ignored "-Warray-bounds"
# pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#elif defined(_MSC_VER)
# pragma warning(disable:4312) // warning C4312: 'type cast': conversion from '' to '' of greater size
# pragma warning(disable:4456) // warning C4456: declaration of 'k' hides previous local declaration

View File

@ -2794,14 +2794,14 @@ namespace bgfx
for (uint32_t ii = 0; ii < count; ++ii)
{
uint8_t nameSize;
uint8_t nameSize = 0;
bx::read(&reader, nameSize);
char name[256];
bx::read(&reader, &name, nameSize);
name[nameSize] = '\0';
uint8_t type;
uint8_t type = 0;
bx::read(&reader, type);
type &= ~BGFX_UNIFORM_MASK;

View File

@ -4590,7 +4590,7 @@ namespace bgfx { namespace gl
for (uint32_t ii = 0; ii < count; ++ii)
{
uint8_t nameSize;
uint8_t nameSize = 0;
bx::read(&reader, nameSize);
char name[256];