Closed
Bug 581192
Opened 14 years ago
Closed 14 years ago
build warnings: png_check_sig & png_set_dither redefined (in png.h & mozpngconf.h)
Categories
(Core :: Graphics: ImageLib, defect)
Core
Graphics: ImageLib
Tracking
()
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
blocking2.0 | --- | final+ |
People
(Reporter: dholbert, Assigned: glennrp+bmo)
References
Details
(Whiteboard: [build_warning])
Attachments
(1 file)
2.40 KB,
patch
|
joe
:
review+
dholbert
:
feedback+
|
Details | Diff | Splinter Review |
For every file that includes png.h, we now spam 16 lines of build warnings like this:
{
> In file included from ../../../../mozilla/modules/libpr0n/build/../decoders/png/nsPNGDecoder.h:52,
> from ../../../../mozilla/modules/libpr0n/build/nsImageModule.cpp:74:
> ../../../dist/include/png.h:1563:1: warning: "png_check_sig" redefined
> In file included from ../../../dist/include/pngconf.h:25,
> from ../../../dist/include/png.h:401,
> from ../../../../mozilla/modules/libpr0n/build/../decoders/png/nsPNGDecoder.h:52,
> from ../../../../mozilla/modules/libpr0n/build/nsImageModule.cpp:74:
> ../../../dist/include/mozpngconf.h:167:1: warning: this is the location of the previous definition
> In file included from ../../../../mozilla/modules/libpr0n/build/../decoders/png/nsPNGDecoder.h:52,
> from ../../../../mozilla/modules/libpr0n/build/nsImageModule.cpp:74:
> ../../../dist/include/png.h:1791:1: warning: "png_set_dither" redefined
> In file included from ../../../dist/include/pngconf.h:25,
> from ../../../dist/include/png.h:401,
> from ../../../../mozilla/modules/libpr0n/build/../decoders/png/nsPNGDecoder.h:52,
> from ../../../../mozilla/modules/libpr0n/build/nsImageModule.cpp:74:
> ../../../dist/include/mozpngconf.h:364:1: warning: this is the location of the previous definition
}
Assignee | ||
Comment 1•14 years ago
|
||
png_set_dither was renamed png_set_quantize, and png_check_sig became a macro. This patch accounts for those changes.
Assignee: nobody → glennrp+bmo
Assignee | ||
Updated•14 years ago
|
OS: Linux → All
Hardware: x86_64 → All
Assignee | ||
Updated•14 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Updated•14 years ago
|
Attachment #459665 -
Flags: feedback?(dholbert)
Reporter | ||
Comment 2•14 years ago
|
||
Comment on attachment 459665 [details] [diff] [review] v00: sync mozpngconf.h with libpng-1.4.3 looks good to me
Attachment #459665 -
Flags: feedback?(dholbert) → feedback+
Assignee | ||
Updated•14 years ago
|
Attachment #459665 -
Flags: review?(joe)
Updated•14 years ago
|
Attachment #459665 -
Flags: review?(joe) → review+
Comment 3•14 years ago
|
||
We can't release without this; it'll break stuff anywhere we link both a system and an embedded libpng into the same binary.
blocking2.0: --- → final+
Keywords: checkin-needed
Reporter | ||
Comment 4•14 years ago
|
||
Landed: http://hg.mozilla.org/mozilla-central/rev/9e8cdfcc09d2
You need to log in
before you can comment on or make changes to this bug.
Description
•