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)

defect

Tracking

()

RESOLVED FIXED
mozilla60
Tracking Status
firefox60 --- fixed

People

(Reporter: Sylvestre, Assigned: Sylvestre)

References

Details

Attachments

(1 file)

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!
Component: Audio/Video → Audio/Video: Playback
Assignee: nobody → sledru
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+
Priority: -- → P3
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
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.
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.
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.
https://hg.mozilla.org/integration/mozilla-inbound/rev/eb87c9467a3598f9cf9fddfcb31fdcc42fc79241 Bug 1435262 - Remove the const type qualifiers to silent a gcc 8 warning r=gerald
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla60
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.

Attachment

General

Created:
Updated:
Size: