uppsrc: CLANG warnings fixes

git-svn-id: svn://ultimatepp.org/upp/trunk@14392 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2020-04-27 16:48:40 +00:00
parent e5f9f941dc
commit 58bef320a4
3 changed files with 4 additions and 3 deletions

View file

@ -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();

View file

@ -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;

View file

@ -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()) {