Summary: | DataTransfer.cpp triggers -Wunused-but-set-variable | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Tomas Popela <tpopela> | ||||||
Component: | WebCore Misc. | Assignee: | Tomas Popela <tpopela> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | achristensen, buildbot, cdumez, dbates, esprehn+autocc, kangil.han, webkit-bug-importer, wenson_hsieh | ||||||
Priority: | P2 | Keywords: | InRadar | ||||||
Version: | WebKit Nightly Build | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Attachments: |
|
Description
Tomas Popela
2017-10-12 05:53:58 PDT
Created attachment 323523 [details]
Patch
Comment on attachment 323523 [details]
Patch
We could also solve this with ASSERT_DISABLED or ASSERT_UNUSED
(In reply to Alex Christensen from comment #2) > Comment on attachment 323523 [details] > Patch > > We could also solve this with ASSERT_DISABLED or ASSERT_UNUSED I knew there was a better way.. ASSERT_UNUSED is more cleaner solution. Created attachment 323643 [details]
Patch
Comment on attachment 323643 [details]
Patch
I don't think processedFiles is a great name for this local variable...perhaps make this something like:
bool containsItemsAndFiles = itemListContainsItems && addedFilesFromPasteboard;
...and then ASSERT_UNUSED(containsItemsAndFiles, !containsItemsAndFiles);?
Committed r223334: <https://trac.webkit.org/changeset/223334> |