WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
32852
Use ASSERT instead of assert in image-decoders
https://bugs.webkit.org/show_bug.cgi?id=32852
Summary
Use ASSERT instead of assert in image-decoders
Kwang Yul Seo
Reported
2009-12-21 22:28:07 PST
RVCT can't compile PNGImagerDecoder.cpp with the following compile error: [1570/1814] cxx: WebCore\platform\image-decoders\png\PNGImageDecoder.cpp -> build\default\WebCore\platform\image-decoders\png\PNGImageDecoder_1.o "..\WebCore\platform\image-decoders\png\PNGImageDecoder.cpp", line 295: Error: #20: identifier "assert" is undefined assert(channels == 3 || channels == 4); ^ ..\WebCore\platform\image-decoders\png\PNGImageDecoder.cpp: 0 warnings, 1 error Waf: Leaving directory `C:\cygwin\home\skyul\WebKit\build' Build failed -> task failed (err #1): {task: cxx PNGImageDecoder.cpp -> PNGImageDecoder_1.o} After I changed #include "assert.h" to #include <assert.h>, I could compile the file without this error. I am not sure if this is a real RVCT bug. However, it seems that other decoders (BMP, GIF, ICO and XBM) use WTF's ASSERT macro instead of assert, so I suggest to change the remaining asserts in PNGImageDecoder.cpp and JPEGImageDecoder.cpp to ASSERT.
Attachments
Use WTF's ASSERT macro in PNGImageDecoder.cpp and JPEGImageDecoder.cpp
(2.27 KB, patch)
2009-12-21 22:32 PST
,
Kwang Yul Seo
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Kwang Yul Seo
Comment 1
2009-12-21 22:32:39 PST
Created
attachment 45366
[details]
Use WTF's ASSERT macro in PNGImageDecoder.cpp and JPEGImageDecoder.cpp
WebKit Review Bot
Comment 2
2009-12-21 22:34:43 PST
style-queue ran check-webkit-style on
attachment 45366
[details]
without any errors.
Eric Seidel (no email)
Comment 3
2009-12-21 22:40:20 PST
Comment on
attachment 45366
[details]
Use WTF's ASSERT macro in PNGImageDecoder.cpp and JPEGImageDecoder.cpp LGTM.
WebKit Commit Bot
Comment 4
2009-12-21 22:57:27 PST
Comment on
attachment 45366
[details]
Use WTF's ASSERT macro in PNGImageDecoder.cpp and JPEGImageDecoder.cpp Clearing flags on attachment: 45366 Committed
r52483
: <
http://trac.webkit.org/changeset/52483
>
WebKit Commit Bot
Comment 5
2009-12-21 22:57:32 PST
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug