Closed Bug 1323923 Opened 8 years ago Closed 8 years ago

Fix -Wunknown-warning-option clang warning in gfx/cairo

Categories

(Core :: Graphics, defect, P3)

51 Branch
defect

Tracking

()

RESOLVED FIXED
mozilla53
Tracking Status
firefox50 --- unaffected
firefox51 --- unaffected
firefox52 --- wontfix
firefox53 --- fixed

People

(Reporter: cpeterson, Assigned: cpeterson)

References

Details

(Keywords: regression)

Attachments

(2 files)

Bug 1306640 suppressed some -Wunused-but-set-variable gcc warnings. However, -Wunused-but-set-variable is not a clang warning, so clang warns about the unknown -Wno-unused-but-set-variable flag. The confusion comes from GNU_CC being defined for both gcc and clang in moz.build. > warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean '-Wno-unused-const-variable'? [-Wunknown-warning-option]
Attachment #8819175 - Flags: review?(lsalzman)
If we're going to suppress some clang and gcc warnings in the third-party Cairo code, we might as well suppress them all. :) Part 2: Suppress more clang warnings and unify CLANG_CXX/CLANG_CL warning flags in gfx/cairo: gfx/cairo/cairo/src/cairo-image-surface.c:1225:35 [-Wabsolute-value] using floating point absolute value function 'fabs' when argument is of integer type gfx/cairo/cairo/src/cairo-image-surface.c:1227:35 [-Wabsolute-value] using floating point absolute value function 'fabs' when argument is of integer type gfx/cairo/cairo/src/cairo-quartz-surface.c:1919:12 [-Wunreachable-code] code will never be executed gfx/cairo/cairo/src/cairo-quartz-surface.c:1920:6 [-Wunreachable-code] code will never be executed gfx/cairo/cairo/src/cairo-quartz-surface.c:3530:18 [-Wunused-variable] unused variable 'i' gfx/cairo/cairo/src/cairo-version.c:39:9 [-Wmacro-redefined] 'CAIRO_VERSION_H' macro redefined
Attachment #8819176 - Flags: review?(lsalzman)
Attachment #8819175 - Flags: review?(lsalzman) → review+
Attachment #8819176 - Flags: review?(lsalzman) → review+
Thanks for the quick review, Lee!
Pushed by cpeterson@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/58701d19071d Part 1: Fix -Wunknown-warning-option clang warning in gfx/cairo. r=lsalzman https://hg.mozilla.org/integration/mozilla-inbound/rev/ddb057be5d8c Part 2: Suppress more clang warnings and unify CLANG_CXX/CLANG_CL warning flags in gfx/cairo. r=lsalzman
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla53
Depends on: 1400705
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: