mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
uppsrc: CLANG warnings fixes
git-svn-id: svn://ultimatepp.org/upp/trunk@14392 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
e5f9f941dc
commit
58bef320a4
3 changed files with 4 additions and 3 deletions
|
|
@ -44,7 +44,7 @@ GLCode::GLCode(const char *vertex_shader, const char *pixel_shader)
|
|||
if(p.Id("sampler2D") || p.Id("sampler3D")) {
|
||||
int n;
|
||||
String id = readID(n);
|
||||
if(id.GetCount())
|
||||
if(id.GetCount()) {
|
||||
if(n) {
|
||||
for(int i = 0; i < n; i++) {
|
||||
ASSERT(GetUniform(id + '[' + AsString(i) + ']') >= 0);
|
||||
|
|
@ -53,6 +53,7 @@ GLCode::GLCode(const char *vertex_shader, const char *pixel_shader)
|
|||
}
|
||||
else
|
||||
glUniform1i(GetUniform(id), ti++);
|
||||
}
|
||||
}
|
||||
else
|
||||
p.SkipTerm();
|
||||
|
|
|
|||
|
|
@ -146,7 +146,7 @@ MEM_STATIC size_t BIT_readBitsFast(BIT_DStream_t* bitD, unsigned nbBits);
|
|||
/*-**************************************************************
|
||||
* Internal functions
|
||||
****************************************************************/
|
||||
MEM_STATIC unsigned BIT_highbit32 (register U32 val)
|
||||
MEM_STATIC unsigned BIT_highbit32 (U32 val)
|
||||
{
|
||||
# if defined(_MSC_VER) /* Visual */
|
||||
unsigned long r=0;
|
||||
|
|
|
|||
|
|
@ -967,7 +967,7 @@ MEM_STATIC void ZSTD_storeSeq(seqStore_t* seqStorePtr, size_t litLength, const v
|
|||
/*-*************************************
|
||||
* Match length counter
|
||||
***************************************/
|
||||
static unsigned ZSTD_NbCommonBytes (register size_t val)
|
||||
static unsigned ZSTD_NbCommonBytes (size_t val)
|
||||
{
|
||||
if (MEM_isLittleEndian()) {
|
||||
if (MEM_64bits()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue