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)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
blocking2.0 --- final+

People

(Reporter: dholbert, Assigned: glennrp+bmo)

References

Details

(Whiteboard: [build_warning])

Attachments

(1 file)

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
}
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
OS: Linux → All
Hardware: x86_64 → All
Status: NEW → ASSIGNED
Attachment #459665 - Flags: feedback?(dholbert)
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+
Attachment #459665 - Flags: review?(joe)
Attachment #459665 - Flags: review?(joe) → review+
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
Landed: http://hg.mozilla.org/mozilla-central/rev/9e8cdfcc09d2
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: