comparison of unsigned expression >= 0 is always true
Reported by
melanie....@gmail.com,
Mar 22 2018
|
||||
Issue description
UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.162 Safari/537.36
Steps to reproduce the problem:
1. compile chromium from source using clang
What is the expected behavior?
no compiler warning regarding this problem
What went wrong?
chromium 65.0.3325.181
../../third_party/WebKit/Source/core/layout/ng/exclusions/ng_exclusion_space.cc:27:48: warning: comparison of unsigned expression >= 0 is always true [-Wtautological-compare]
for (size_t j = opportunities->size() - 1; j >= 0; --j) {
~ ^ ~
Note: size_t is unsigned
Used Software
kernel 4.15.11
glibc 2.26
gcc 7.2.1+20180116
clang 5.0.1
llvm 5.0.1
Did this work before? N/A
Chrome version: 65.0.3325.181 Channel: stable
OS Version: 4.15.11
Flash Version:
,
Mar 23 2018
The issue seems to be out of scope for triaging from our end as this needs to be triaged by compiling Chromium from source using clang. Hence adding label "TE-NeedsTriageHelp" and requesting someone from "Blink>Layout" team to have a look into it and help in triaging the issue further. Thanks!
,
Mar 23 2018
That loop condition probably needs to be rewritten, would you mind taking a look Aleks?
,
Apr 27 2018
you are in this code right now
,
Aug 20
Still broken. |
||||
►
Sign in to add a comment |
||||
Comment 1 by dtapu...@chromium.org
, Mar 22 2018