jemalloc.c: Compiler warnings

RESOLVED WONTFIX

Status

()

Core
Memory Allocator
RESOLVED WONTFIX
7 years ago
2 years ago

People

(Reporter: Johannes Obermayr, Unassigned)

Tracking

(Blocks: 1 bug)

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [build_warning])

(Reporter)

Description

7 years ago
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.2.13) Gecko/20101203 SUSE/3.6.13-0.2.1 Firefox/3.6.13
Build Identifier: b63dd98e03e8

Compiling gnash which uses commit b63dd98e03e8 of mozilla's jemalloc:
(see also: http://savannah.gnu.org/bugs/?32927)

CC     libgnashbase_la-jemalloc.lo
jemalloc.c:467:0: warning: "PIC" redefined
<command-line>:0:0: note: this is the location of the previous definition
jemalloc.c: In function 'chunk_alloc':
jemalloc.c:2574:31: warning: unused parameter 'zero'
jemalloc.c: In function 'arena_run_alloc':
jemalloc.c:3200:46: warning: unused parameter 'bin'
jemalloc.c: In function 'arena_bin_malloc_easy':
jemalloc.c:3570:32: warning: unused parameter 'arena'
jemalloc.c: In function 'arena_dalloc_large':
jemalloc.c:4247:10: warning: unused variable 'size'
jemalloc.c: At top level:
jemalloc.c:5913:1: warning: no previous prototype for 'memalign'
jemalloc.c:6147:1: warning: no previous prototype for 'malloc_usable_size'
jemalloc.c:1450:1: warning: 'malloc_spin_init' defined but not used
jemalloc.c:2073:1: warning: 'extent_tree_szad_new' defined but not used
jemalloc.c:2073:1: warning: 'extent_tree_szad_first' defined but not used
jemalloc.c:2073:1: warning: 'extent_tree_szad_last' defined but not used
jemalloc.c:2073:1: warning: 'extent_tree_szad_next' defined but not used
jemalloc.c:2073:1: warning: 'extent_tree_szad_prev' defined but not used
jemalloc.c:2073:1: warning: 'extent_tree_szad_search' defined but not used
jemalloc.c:2073:1: warning: 'extent_tree_szad_nsearch' defined but not used
jemalloc.c:2073:1: warning: 'extent_tree_szad_psearch' defined but not used
jemalloc.c:2073:1: warning: 'extent_tree_szad_insert' defined but not used
jemalloc.c:2073:1: warning: 'extent_tree_szad_remove' defined but not used
jemalloc.c:2086:1: warning: 'extent_tree_ad_first' defined but not used
jemalloc.c:2086:1: warning: 'extent_tree_ad_last' defined but not used
jemalloc.c:2086:1: warning: 'extent_tree_ad_next' defined but not used
jemalloc.c:2086:1: warning: 'extent_tree_ad_prev' defined but not used
jemalloc.c:2086:1: warning: 'extent_tree_ad_nsearch' defined but not used
jemalloc.c:2086:1: warning: 'extent_tree_ad_psearch' defined but not used
jemalloc.c:2783:1: warning: 'arena_chunk_tree_dirty_first' defined but not used
jemalloc.c:2783:1: warning: 'arena_chunk_tree_dirty_next' defined but not used
jemalloc.c:2783:1: warning: 'arena_chunk_tree_dirty_prev' defined but not used
jemalloc.c:2783:1: warning: 'arena_chunk_tree_dirty_search' defined but not used
jemalloc.c:2783:1: warning: 'arena_chunk_tree_dirty_nsearch' defined but not used
jemalloc.c:2783:1: warning: 'arena_chunk_tree_dirty_psearch' defined but not used
jemalloc.c:2799:1: warning: 'arena_run_tree_last' defined but not used
jemalloc.c:2799:1: warning: 'arena_run_tree_next' defined but not used
jemalloc.c:2799:1: warning: 'arena_run_tree_prev' defined but not used
jemalloc.c:2799:1: warning: 'arena_run_tree_search' defined but not used
jemalloc.c:2799:1: warning: 'arena_run_tree_nsearch' defined but not used
jemalloc.c:2799:1: warning: 'arena_run_tree_psearch' defined but not used
jemalloc.c:2831:1: warning: 'arena_avail_tree_first' defined but not used
jemalloc.c:2831:1: warning: 'arena_avail_tree_last' defined but not used
jemalloc.c:2831:1: warning: 'arena_avail_tree_next' defined but not used
jemalloc.c:2831:1: warning: 'arena_avail_tree_prev' defined but not used
jemalloc.c:2831:1: warning: 'arena_avail_tree_search' defined but not used
jemalloc.c:2831:1: warning: 'arena_avail_tree_psearch' defined but not used
jemalloc.c: In function 'wrtmessage':
jemalloc.c:1351:8: warning: ignoring return value of 'write', declared with attribute warn_unused_result
jemalloc.c:1352:8: warning: ignoring return value of 'write', declared with attribute warn_unused_result
jemalloc.c:1353:8: warning: ignoring return value of 'write', declared with attribute warn_unused_result
jemalloc.c:1354:8: warning: ignoring return value of 'write', declared with attribute warn_unused_result


Reproducible: Always

Updated

7 years ago
Whiteboard: [build_warning]

Updated

7 years ago
Blocks: 187528

Comment 1

3 years ago
Still see the warnings in comment #0?
We don't care about -Wunused warnings in third-party code. The warn_unused_result warnings were fixed by bug 1226907
Status: UNCONFIRMED → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.