Bug 178544

Summary: -Wsign-compare triggered by MallocBench
Product: WebKit Reporter: Michael Catanzaro <mcatanzaro>
Component: Tools / TestsAssignee: Michael Catanzaro <mcatanzaro>
Status: RESOLVED FIXED    
Severity: Normal CC: buildbot, cdumez, commit-queue, lforschler, mcatanzaro, rniwa, webkit-bug-importer, ysuzuki
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: PC   
OS: Linux   
Attachments:
Description Flags
Patch none

Michael Catanzaro
Reported 2017-10-19 14:20:40 PDT
I see a warning now that MallocBench is enabled for Linux: In file included from ../../PerformanceTests/MallocBench/MallocBench/Interpreter.cpp:28:0: ../../PerformanceTests/MallocBench/MallocBench/Interpreter.cpp: In constructor ‘Interpreter::Interpreter(const char*, bool, bool)’: ../../PerformanceTests/MallocBench/MallocBench/Interpreter.cpp:64:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] assert(m_opCount * sizeof(Op) == buf.st_size); ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ buf.st_size is an off_t, which is signed, so I think we should do static_cast<size_t>(buf.st_size).
Attachments
Patch (1.33 KB, patch)
2017-10-19 14:22 PDT, Michael Catanzaro
no flags
Michael Catanzaro
Comment 1 2017-10-19 14:22:55 PDT
WebKit Commit Bot
Comment 2 2017-10-19 18:48:00 PDT
Comment on attachment 324284 [details] Patch Clearing flags on attachment: 324284 Committed r223733: <https://trac.webkit.org/changeset/223733>
WebKit Commit Bot
Comment 3 2017-10-19 18:48:02 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 4 2017-11-15 13:01:39 PST
Note You need to log in before you can comment on or make changes to this bug.