Closed Bug 984081 Opened 10 years ago Closed 10 years ago

Suppress clang and gcc warnings in third-party code: harfbuzz

Categories

(Core :: Graphics: Text, defect, P4)

defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: cpeterson, Assigned: cpeterson)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

gfx/harfbuzz/src/hb-common.cc:238:6 [-Wunused-function] unused function 'free_langs'
Attachment #8391831 - Flags: review?(jdaggett)
Might be better to propose a patch upstream, rather than just suppressing the warning here. The free_langs() function could be wrapped in #ifdef HAVE_ATEXIT, just like the only callsite.
Fixed upstream by merging Jonathan's pullrequest already.
Comment on attachment 8391831 [details] [diff] [review]
suppress-harfbuzz-warnings.patch

I agree with Jonathan, I think it would be better to have something upstream. Clearing the review for now.
Attachment #8391831 - Flags: review?(jdaggett)
I will try to submit an upstream patch. Two additional clang warnings in --disable-optimize builds:

gfx/harfbuzz/src/hb-private.hh:236:3 [-Wdeprecated-register] 'register' storage class specifier is deprecated
gfx/harfbuzz/src/hb-private.hh:252:3 [-Wdeprecated-register] 'register' storage class specifier is deprecated
(In reply to Chris Peterson (:cpeterson) from comment #4)
> I will try to submit an upstream patch. Two additional clang warnings in
> --disable-optimize builds:
> 
> gfx/harfbuzz/src/hb-private.hh:236:3 [-Wdeprecated-register] 'register'
> storage class specifier is deprecated
> gfx/harfbuzz/src/hb-private.hh:252:3 [-Wdeprecated-register] 'register'
> storage class specifier is deprecated

Fixed upstream.
Thanks, Behdad! :)
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → WORKSFORME
Depends on: 1012218
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: