Page MenuHomeFreeBSD

Warning patches for clang
ClosedPublic

Authored by sbruno on Jul 16 2014, 1:45 PM.
Tags
None
Referenced Files
F131236607: D423.id.diff
Mon, Oct 6, 3:38 AM
F131225231: D423.id738.diff
Mon, Oct 6, 1:27 AM
F131219104: D423.id733.diff
Mon, Oct 6, 12:16 AM
F131210709: D423.id733.diff
Sun, Oct 5, 10:36 PM
F131210460: D423.id738.diff
Sun, Oct 5, 10:33 PM
Unknown Object (File)
Fri, Sep 26, 9:27 PM
Unknown Object (File)
Thu, Sep 25, 5:14 PM
Unknown Object (File)
Wed, Sep 24, 1:28 AM
Subscribers

Details

Reviewers
dumbbell
Summary

remove irrelevant checks for < 0 for unsigned variables

dfixed_trunc is a bitwise shift operator on a struct fixed20_12 "full" element.

full is defined as a u32, so it can't ever be less than 0 and these checks are pointless and simply spew warnings during compilation.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

sbruno retitled this revision from to Warning patches for clang dfixed_trunc is a bitwise shift operator on a struct fixed20_12 "full" element. full is defined as a u32, so it can't ever be less than 0 and these checks are pointless and simply spew warnings during compilation..
sbruno updated this object.
sbruno added a reviewer: dumbbell.
sbruno retitled this revision from Warning patches for clang dfixed_trunc is a bitwise shift operator on a struct fixed20_12 "full" element. full is defined as a u32, so it can't ever be less than 0 and these checks are pointless and simply spew warnings during compilation. to Warning patches for clang.Jul 16 2014, 1:51 PM
sbruno updated this object.

This problem was already fixed by OpenBSD and submitted to Linux. Please see the upstream patch:

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=1cd73ff7

te our code has "#ifdef DUMBBELL_WIP" around the first patch.
Probably dumbbell hacked it to work around the first problem. ;-)

Jung-uk Kim

dumbbell edited edge metadata.

I'm ok with the patch: feel free to commit it to -CURRENT. I will merge it in my development branch.

This revision is now accepted and ready to land.Jul 17 2014, 8:40 PM

Committed to freebsd head at svn R268954