Fix build with warnings turned on.
This commit is contained in:
parent
509055876b
commit
4d457153b7
29 changed files with 90 additions and 71 deletions
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef __gl_h_
|
||||
#define __gl_h_
|
||||
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wredundant-decls"
|
||||
/* $Revision: 10601 $ on $Date:: 2010-03-04 22:15:27 -0800 #$ */
|
||||
|
||||
#include <GLES/glplatform.h>
|
||||
|
|
@ -766,5 +768,7 @@ GL_API void GL_APIENTRY glPointSizePointerOES (GLenum type, GLsizei stride, cons
|
|||
}
|
||||
#endif
|
||||
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
#endif /* __gl_h_ */
|
||||
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ public:
|
|||
|
||||
if (!m_buf || len > m_bufsize) {
|
||||
int allocLen = m_bufsize < len ? len : m_bufsize;
|
||||
m_buf = (unsigned char *)allocBuffer(allocLen);
|
||||
m_buf = static_cast<unsigned char *>(allocBuffer(allocLen));
|
||||
if (!m_buf)
|
||||
return NULL;
|
||||
m_bufsize = m_free = allocLen;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue