Closed Bug 765116 Opened 8 years ago Closed 8 years ago

mozglue/android: fix gcc -Wall -pedantic warnings

Categories

(Firefox for Android :: General, defect, minor)

ARM
Android
defect
Not set
minor

Tracking

()

RESOLVED FIXED
Firefox 16
Tracking Status
firefox16 --- fixed

People

(Reporter: cpeterson, Assigned: cpeterson)

Details

Attachments

(2 files)

No description provided.
Part 1: mozglue/android: fix gcc -Wall warnings
Attachment #633361 - Flags: review?(mh+mozilla)
Part 2: mozglue/android: fix gcc -pedantic warnings

gcc -pedantic warns about dlsym() casts because ISO C does not guarantee that sizeof(function pointer) == sizeof(void*), though that would be an unusual machine architecture. To suppress these warnings, this patch casts dlsym()'s return value from void* to uintptr_t to a function pointer.
Attachment #633362 - Flags: review?(mh+mozilla)
Attachment #633361 - Flags: review?(mh+mozilla) → review+
Attachment #633362 - Flags: review?(mh+mozilla) → review+
You need to log in before you can comment on or make changes to this bug.