Closed Bug 1128866 Opened 9 years ago Closed 9 years ago

js/src/builtin/Profilers.cpp: [-Wused-but-marked-unused] 'UnsafeError' was marked unused but was used

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla38

People

(Reporter: cpeterson, Assigned: cpeterson)

References

Details

Attachments

(1 file)

clang warns that js/src/builtin/Profilers.cpp's UnsafeError() function is marked __attribute__((unused)) but is actually used:

js/src/builtin/Profilers.cpp:79:13 [-Wused-but-marked-unused] 'UnsafeError' was marked unused but was used
js/src/builtin/Profilers.cpp:81:13 [-Wused-but-marked-unused] 'UnsafeError' was marked unused but was used

FWIW, clang's -Wused-but-marked-unused warning is not enabled by default.
Attachment #8558396 - Flags: review?(sphink)
Attachment #8558396 - Flags: review?(sphink) → review+
https://hg.mozilla.org/mozilla-central/rev/375121e292af
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla38
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: