Closed
Bug 502904
Opened 16 years ago
Closed 9 years ago
Compiler warnings in jemalloc.c
Categories
(Core :: Memory Allocator, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 1226907
People
(Reporter: sune, Unassigned)
References
(Blocks 1 open bug)
Details
(Whiteboard: [build_warning])
Attachments
(1 file, 1 obsolete file)
1.20 KB,
patch
|
jasone
:
review+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; rv:1.9.1.1pre) Gecko/20090707 SeaMonkey/2.0b1pre
Build Identifier: Mozilla/5.0 (X11; U; Linux x86_64; rv:1.9.1.1pre) Gecko/20090707 SeaMonkey/2.0b1pre
Compiling produces the following warnings:
jemalloc.c: In function ‘wrtmessage’:
jemalloc.c:1395: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
jemalloc.c:1396: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
jemalloc.c:1397: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
jemalloc.c:1398: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
Reproducible: Always
Steps to Reproduce:
1. Compile
2. Watch output
Actual Results:
Warnings
Expected Results:
No warnings
Adding a patch, when I see how to diff correctly
Reporter | ||
Updated•16 years ago
|
Component: General → jemalloc
Product: SeaMonkey → Core
Version: unspecified → Trunk
Reporter | ||
Comment 1•16 years ago
|
||
Comment 2•16 years ago
|
||
Comment on attachment 387258 [details] [diff] [review]
Patch to use write() as it should be
You have to request review from someone
Attachment #387258 -
Flags: review?(jasone)
Updated•16 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 3•16 years ago
|
||
Comment on attachment 387258 [details] [diff] [review]
Patch to use write() as it should be
If the write(STDERR_FILENO, ...) call fails, fprintf(stderr, ...) is very likely to fail too. See http://canonware.com/cgi-bin/hg_jemalloc/file/938eab26a83a/jemalloc/src/jemalloc.c (lines 1205-1209) for how I recently worked around this compiler warning in a different source repo.
Attachment #387258 -
Flags: review?(jasone) → review+
Reporter | ||
Comment 4•16 years ago
|
||
Attachment #387258 -
Attachment is obsolete: true
Attachment #387490 -
Flags: review?(jasone)
Updated•16 years ago
|
Attachment #387490 -
Flags: review?(jasone) → review+
Comment 5•16 years ago
|
||
Jason: can you help with bringing this patch into the tree ?
Do you know an sr for this patch ?
Updated•15 years ago
|
QA Contact: general → jemalloc
Updated•14 years ago
|
Whiteboard: [build_warning]
Updated•14 years ago
|
Blocks: buildwarning
Comment 6•9 years ago
|
||
I fixed this mozjemalloc warnings in bug 1226907.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•