Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.

clang3.9.1 util.c - comparison of unsigned expression < 0 is always false #310

@gtirloni

Description

@gtirloni

Environment

Fedora 26 x86_64
clang 3.9.1
git faef420

Error

/usr/bin/clang -DHAVE_CONFIG_H -I. -I..    -Wall -Werror -DVERSIONCOMMIT=\""0.8.1, commit: `git describe --dirty --always --tags 2> /dev/null || true`"\" -g -O2 -MT util.o -MD -MP -MF $depbase.Tpo -c -o util.o util.c &&\
mv -f $depbase.Tpo $depbase.Po
util.c:251:9: error: comparison of unsigned expression < 0 is always false [-Werror,-Wtautological-compare]
                if (l < 0) {
                    ~ ^ ~
1 error generated.
make[2]: *** [Makefile:362: util.o] Error 1

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions