Cleanup.
This commit is contained in:
parent
9e16567e67
commit
1b89cbe5f1
1
3rdparty/stb/stb_image.c
vendored
1
3rdparty/stb/stb_image.c
vendored
@ -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
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user