Closed
Bug 1435262
Opened 8 years ago
Closed 8 years ago
MediaBlockCacheBase.h: type qualifiers ignored on cast result type [-Wignored-qualifiers]
Categories
(Core :: Audio/Video: Playback, defect, P3)
Core
Audio/Video: Playback
Tracking
()
RESOLVED
FIXED
mozilla60
| Tracking | Status | |
|---|---|---|
| firefox60 | --- | fixed |
People
(Reporter: Sylvestre, Assigned: Sylvestre)
References
Details
Attachments
(1 file)
|
59 bytes,
text/x-review-board-request
|
Details |
In file included from /root/firefox-gcc-last/dom/media/FileBlockCache.h:16,
from /root/firefox-gcc-last/dom/media/FileBlockCache.cpp:7,
from /root/firefox-gcc-last/obj-x86_64-pc-linux-gnu/dom/media/Unified_cpp_dom_media3.cpp:38:
/root/firefox-gcc-last/dom/media/MediaBlockCacheBase.h: At global scope:
/root/firefox-gcc-last/dom/media/MediaBlockCacheBase.h:43:68: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers]
static_cast<decltype(MediaCacheStream::BLOCK_SIZE)>(INT32_MAX),
^
Thanks Benjamin for the help!
| Comment hidden (mozreview-request) |
Updated•8 years ago
|
Component: Audio/Video → Audio/Video: Playback
Assignee: nobody → sledru
Comment 2•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8947826 [details]
Bug 1435262 - Remove the const type qualifiers to silent a gcc 8 warning
https://reviewboard.mozilla.org/r/217520/#review223450
Thank you for the fix.
LGTM as-is, but here's an optional nit:
::: dom/media/MediaBlockCacheBase.h:43
(Diff revision 1)
> public:
> NS_INLINE_DECL_THREADSAFE_REFCOUNTING(MediaBlockCacheBase)
>
> static_assert(
> MediaCacheStream::BLOCK_SIZE <
> - static_cast<decltype(MediaCacheStream::BLOCK_SIZE)>(INT32_MAX),
> + static_cast<std::remove_cv<decltype(MediaCacheStream::BLOCK_SIZE)>::type>(INT32_MAX),
remove_const would suffice here.
Attachment #8947826 -
Flags: review+
Updated•8 years ago
|
Priority: -- → P3
| Comment hidden (mozreview-request) |
Pushed by sledru@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/6873d1a8a2ad
Remove the const type qualifiers to silent a gcc 8 warning r=gerald
Comment 5•8 years ago
|
||
We're sorry - something has gone wrong while rewriting or rebasing your commits. The commits being pushed no longer match what was requested. Please file a bug.
| Comment hidden (mozreview-request) |
Comment 7•8 years ago
|
||
We're sorry - something has gone wrong while rewriting or rebasing your commits. The commits being pushed no longer match what was requested. Please file a bug.
| Comment hidden (mozreview-request) |
Comment 9•8 years ago
|
||
We're sorry - something has gone wrong while rewriting or rebasing your commits. The commits being pushed no longer match what was requested. Please file a bug.
| Assignee | ||
Comment 10•8 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/eb87c9467a3598f9cf9fddfcb31fdcc42fc79241
Bug 1435262 - Remove the const type qualifiers to silent a gcc 8 warning r=gerald
Comment 11•8 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla60
Comment 12•8 years ago
|
||
| bugherder | ||
Comment 13•8 years ago
|
||
Comment on attachment 8947826 [details]
Bug 1435262 - Remove the const type qualifiers to silent a gcc 8 warning
Thanks for the patch; sorry for the delay on the review, looks like you got it landed anyway.
Attachment #8947826 -
Flags: review?(cpearce)
You need to log in
before you can comment on or make changes to this bug.
Description
•