Closed Bug 998961 Opened 11 years ago Closed 11 years ago

Silence unused typedef warnings in gfx/harfbuzz/

Categories

(Core :: Graphics: Text, defect)

All
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla34

People

(Reporter: poiru, Assigned: poiru)

References

Details

Attachments

(1 file)

Silence ~100 warnings such as: 3:05.64 In file included from /mozilla-central/obj-d/gfx/harfbuzz/src/Unified_cpp_gfx_harfbuzz_src0.cpp:2:0: 3:05.64 /mozilla-central/gfx/harfbuzz/src/hb-buffer.cc: In member function ‘bool hb_buffer_t::enlarge(unsigned int)’: 3:05.64 Warning: -Wunused-local-typedefs in /mozilla-central/gfx/harfbuzz/src/hb-buffer.cc: typedef ‘_static_assert_on_line_100_failed’ locally defined but not used 3:05.64 /mozilla-central/gfx/harfbuzz/src/hb-buffer.cc:100:15: warning: typedef ‘_static_assert_on_line_100_failed’ locally defined but not used [-Wunused-local-typedefs] 3:05.64 ASSERT_STATIC (sizeof (info[0]) == sizeof (pos[0])); 3:05.64 ^
Attachment #8409679 - Flags: review?(jdaggett)
I see this is a new warning in gcc 4.8, which is why we haven't been seeing it in standard mozilla-central build logs. According to some comments I've found, it may be fixable via the __attribute__((unused)) annotation in the source. So I'd suggest reporting this upstream, and see if it can be fixed there.
(In reply to Jonathan Kew (:jfkthame) from comment #2) > According to some comments I've found, it may be fixable via the > __attribute__((unused)) annotation in the source. So I'd suggest reporting > this upstream, and see if it can be fixed there. Upstream bug report: https://bugs.freedesktop.org/show_bug.cgi?id=77732 Should this bug be closed?
Let's wait and see what happens with the upstream report and patch. Once it's fixed there, and we take our next harfbuzz update, we can resolve this bug.
Comment on attachment 8409679 [details] [diff] [review] Silence unused typedef warnings in gfx/harfbuzz/ Canceling the review for now, will fix upstream.
Attachment #8409679 - Flags: review?(jdaggett)
Looks like this was indeed fixed upstream, according to https://bugs.freedesktop.org/show_bug.cgi?id=77732#c2 John[athan], any idea when our next harfbuzz update is coming?)
I'd like to take one soon. Behdad did a release (0.9.30) a few days ago, so we should update to that, but would like to run some tests before we drop in the new code. Just a question of finding the time...
Fixed in bug 1036981.
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla34
Flags: qe-verify-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: