Closed Bug 1388978 Opened 7 years ago Closed 7 years ago

Fix -Wunknown-warning-option warnings in media/ffvpx

Categories

(Core :: Audio/Video: Playback, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla57
Tracking Status
firefox-esr52 --- unaffected
firefox55 --- unaffected
firefox56 --- wontfix
firefox57 --- fixed

People

(Reporter: cpeterson, Assigned: cpeterson)

References

Details

Attachments

(2 files)

clang doesn't support gcc warning options -Wdiscarded-qualifiers or -Wmaybe-uninitialized in media/ffvpx/ffvpxcommon.mozbuild (added in bug 1369791):

warning: unknown warning option '-Wno-discarded-qualifiers'; did you mean '-Wno-ignored-qualifiers'? [-Wunknown-warning-option]

warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean '-Wno-uninitialized'? [-Wunknown-warning-option]
Comment on attachment 8895664 [details]
Bug 1388978 - Fix -Wunknown-warning-option warnings in media/ffvpx.

https://reviewboard.mozilla.org/r/166936/#review172374

Thanks for fixing this!

::: commit-message-a4a44:3
(Diff revision 1)
> +Bug 1388978 - Fix -Wunknown-warning-option warnings in media/ffvpx. r?rillian
> +
> +clang doesn't support gcc warning options -Wdiscarded-qualifiers or -Wmaybe-uninitialized in media/ffvpxcommon.mozbuild (added in bug 1369791), so only suppress those warnings for real gcc.

s/suppress/enable/
Attachment #8895664 - Flags: review?(giles) → review+
(In reply to Ralph Giles (:rillian) | needinfo me from comment #2)
> > +clang doesn't support gcc warning options -Wdiscarded-qualifiers or -Wmaybe-uninitialized in media/ffvpxcommon.mozbuild (added in bug 1369791), so only suppress those warnings for real gcc.
> 
> s/suppress/enable/

But we are suppressing, not enabling, those warnings with -Wno-:

>        CFLAGS += [
>            '-Wno-discarded-qualifiers',
>            '-Wno-maybe-uninitialized',
>        ]
Comment on attachment 8895664 [details]
Bug 1388978 - Fix -Wunknown-warning-option warnings in media/ffvpx.

https://reviewboard.mozilla.org/r/166936/#review172412

::: commit-message-a4a44:3
(Diff revision 1)
> +Bug 1388978 - Fix -Wunknown-warning-option warnings in media/ffvpx. r?rillian
> +
> +clang doesn't support gcc warning options -Wdiscarded-qualifiers or -Wmaybe-uninitialized in media/ffvpxcommon.mozbuild (added in bug 1369791), so only suppress those warnings for real gcc.

Oh, I see what what you mean. Sorry, that's fine.
Comment on attachment 8895902 [details]
Bug 1388978 - Suppress some more clang warnings in media/ffvpx.

https://reviewboard.mozilla.org/r/167182/#review172416
Attachment #8895902 - Flags: review?(giles) → review+
Pushed by rgiles@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/49d28f01cd08
Fix -Wunknown-warning-option warnings in media/ffvpx. r=rillian
https://hg.mozilla.org/integration/autoland/rev/e7d4860a4ef2
Suppress some more clang warnings in media/ffvpx. r=rillian
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: