Closed
Bug 998961
Opened 11 years ago
Closed 11 years ago
Silence unused typedef warnings in gfx/harfbuzz/
Categories
(Core :: Graphics: Text, defect)
Tracking
()
RESOLVED
FIXED
mozilla34
People
(Reporter: poiru, Assigned: poiru)
References
Details
Attachments
(1 file)
724 bytes,
patch
|
Details | Diff | Splinter Review |
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 ^
Assignee | ||
Comment 1•11 years ago
|
||
Attachment #8409679 -
Flags: review?(jdaggett)
Comment 2•11 years ago
|
||
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.
Assignee | ||
Comment 3•11 years ago
|
||
(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?
Comment 4•11 years ago
|
||
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 5•11 years ago
|
||
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)
Comment 6•11 years ago
|
||
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?)
Comment 7•11 years ago
|
||
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...
Assignee | ||
Comment 8•11 years ago
|
||
Fixed in bug 1036981.
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
Target Milestone: --- → mozilla34
Updated•11 years ago
|
Flags: qe-verify-
You need to log in
before you can comment on or make changes to this bug.
Description
•