Closed Bug 1236619 Opened 8 years ago Closed 8 years ago

jsmath.cpp:756:58: error: ignoring return value of ‘ssize_t read(int, void*, size_t)’

Categories

(Core :: JavaScript Engine, defect)

46 Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla46
Tracking Status
firefox46 --- fixed

People

(Reporter: bkelly, Assigned: bkelly)

References

Details

Attachments

(1 file)

I'm getting a compiler error with warnings treated as failures:

  /srv/mozilla-central/js/src/jsmath.cpp:756:58: error: ignoring return value of ‘ssize_t read(int, void*, size_t)’,  declared with attribute warn_unused_result [-Werror=unused-result]

This needs a mozilla::Unused.
Blocks: 1167248
I forgot about the warn_unused_result attribute on read() in (some versions of?) glibc's header files. We should really update our build machines' header files to this version.
Comment on attachment 8703745 [details] [diff] [review]
Fix compilation failure with warnings-as-errors with some compilers. r=jandem

Review of attachment 8703745 [details] [diff] [review]:
-----------------------------------------------------------------

Stealing review.
Attachment #8703745 - Flags: review?(jdemooij) → review+
https://hg.mozilla.org/mozilla-central/rev/2bc98e261d12
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla46
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: