Closed Bug 871007 Opened 7 years ago Closed 7 years ago

fix clang warning about class/struct mismatch for JS::RuntimeStats

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set

Tracking

()

RESOLVED FIXED
mozilla24

People

(Reporter: froydnj, Unassigned)

Details

Attachments

(1 file)

In file included from /opt/build/froydnj/build-mc/dom/bindings/BatteryManagerBinding.cpp:9:
/home/froydnj/src/mozilla-central-official.git/dom/workers/WorkerPrivate.h:44:16: warning: class 'RuntimeStats' was previously declared as a struct [-Wmismatched-tags]
namespace JS { class RuntimeStats; }
               ^
../../dist/include/js/MemoryMetrics.h:361:8: note: previous use is here
struct RuntimeStats
       ^
/home/froydnj/src/mozilla-central-official.git/dom/workers/WorkerPrivate.h:44:16: note: did you mean struct here?
namespace JS { class RuntimeStats; }
               ^~~~~
               struct
Comment on attachment 748211 [details] [diff] [review]
fix clang warning about class/struct mismatch for JS::RuntimeStats

r=me
Attachment #748211 - Flags: review?(bzbarsky) → review+
https://hg.mozilla.org/mozilla-central/rev/7c110197cd1a
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla24
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.