Fixed minor clang warnings
This commit is contained in:
parent
7083b8a54a
commit
17867ced03
@ -456,7 +456,7 @@ static unsigned ZSTD_NbCommonBytes (register size_t val)
|
||||
_BitScanReverse( &r, (unsigned long)val );
|
||||
return (unsigned)(r>>3);
|
||||
# elif defined(__GNUC__) && (GCC_VERSION >= 304) && !defined(LZ4_FORCE_SW_BITCOUNT)
|
||||
return (__builtin_clz(val) >> 3);
|
||||
return (__builtin_clz((U32)val) >> 3);
|
||||
# else
|
||||
unsigned r;
|
||||
if (!(val>>16)) { r=2; val>>=8; } else { r=0; val>>=24; }
|
||||
|
@ -36,7 +36,8 @@ DESTDIR?=
|
||||
PREFIX ?= /usr
|
||||
CFLAGS ?= -O3
|
||||
CFLAGS += -std=c99 -Wall -Wextra -Wundef -Wshadow -Wcast-qual -Wcast-align -Wstrict-prototypes -DZSTD_VERSION=\"$(RELEASE)\"
|
||||
FLAGS = -I../lib $(CPPFLAGS) $(CFLAGS) $(LDFLAGS)
|
||||
LDFLAGS = -I../lib
|
||||
FLAGS = $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(MOREFLAGS)
|
||||
|
||||
BINDIR=$(PREFIX)/bin
|
||||
MANDIR=$(PREFIX)/share/man/man1
|
||||
|
@ -174,7 +174,7 @@ int main(int argc, char** argv)
|
||||
char extension[] = ZSTD_EXTENSION;
|
||||
|
||||
/* Pick out basename component. Don't rely on stdlib because of conflicting behaviour. */
|
||||
for (i = strlen(programName); i > 0; i--)
|
||||
for (i = (int)strlen(programName); i > 0; i--)
|
||||
{
|
||||
if (programName[i] == '/')
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user