[Webkit-unassigned] [Bug 217791] New: PDFPlugin.mm:2303:139: error: type 'SEL _Nullable' cannot be narrowed to 'bool' in initializer list [-Wc++11-narrowing]
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Oct 15 15:53:44 PDT 2020
https://bugs.webkit.org/show_bug.cgi?id=217791
Bug ID: 217791
Summary: PDFPlugin.mm:2303:139: error: type 'SEL _Nullable'
cannot be narrowed to 'bool' in initializer list
[-Wc++11-narrowing]
Product: WebKit
Version: Other
Hardware: Unspecified
OS: Unspecified
Status: NEW
Keywords: InRadar
Severity: Normal
Priority: P2
Component: PDF
Assignee: webkit-unassigned at lists.webkit.org
Reporter: ddkilzer at webkit.org
CC: beidson at apple.com, thorton at apple.com
Issue found by open source clang:
In file included from WebKitBuild/Release/DerivedSources/WebKit2/unified-sources/UnifiedSource55-mm.mm:3:
Source/WebKit/WebProcess/Plugins/PDF/PDFPlugin.mm:2303:139: error: type 'SEL _Nullable' cannot be narrowed to 'bool' in initializer list [-Wc++11-narrowing]
PDFContextMenuItem menuItem { String([item title]), !![item isEnabled], !![item isSeparatorItem], static_cast<int>([item state]), [item action], i };
^~~~~~~~~~~~~
Source/WebKit/WebProcess/Plugins/PDF/PDFPlugin.mm:2303:139: note: insert an explicit cast to silence this issue
PDFContextMenuItem menuItem { String([item title]), !![item isEnabled], !![item isSeparatorItem], static_cast<int>([item state]), [item action], i };
^~~~~~~~~~~~~
static_cast<bool>( )
<rdar://problem/70349804>
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20201015/aeaeed5e/attachment.htm>
More information about the webkit-unassigned
mailing list