WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
252666
Fix JPEGImageDecoder boolean enum and #define TRUE/FALSE mix
https://bugs.webkit.org/show_bug.cgi?id=252666
Summary
Fix JPEGImageDecoder boolean enum and #define TRUE/FALSE mix
Giulio Benetti
Reported
2023-02-21 07:57:14 PST
Created
attachment 465108
[details]
Fix JPEGImageDecoder boolean enum and #define TRUE/FALSE mix jpeglib.h contains a typedef enum for boolean type but LCMSUniquePtr.h include files that can contain #define TRUE/FALSE. This way build fails with: JPEGImageDecoder.cpp:343:43: error: invalid conversion from ‘int’ to ‘boolean’ This is because TRUE or FALSE should be an enum instead they get defined as 1 or 0.
Attachments
Fix JPEGImageDecoder boolean enum and #define TRUE/FALSE mix
(1.52 KB, patch)
2023-02-21 07:57 PST
,
Giulio Benetti
no flags
Details
Formatted Diff
Diff
Fix JPEGImageDecoder boolean enum and #define TRUE/FALSE mix
(1.66 KB, patch)
2023-02-21 08:08 PST
,
Giulio Benetti
mcatanzaro
: review+
mcatanzaro
: commit-queue-
Details
Formatted Diff
Diff
Fix JPEGImageDecoder boolean enum and #define TRUE/FALSE mix
(1.73 KB, patch)
2023-02-21 09:51 PST
,
Giulio Benetti
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Giulio Benetti
Comment 1
2023-02-21 08:08:03 PST
Created
attachment 465109
[details]
Fix JPEGImageDecoder boolean enum and #define TRUE/FALSE mix Fix JPEGImageDecoder boolean enum and #define TRUE/FALSE mix
https://bugs.webkit.org/show_bug.cgi?id=252666
Reviewed by NOBODY (OOPS!). jpeglib.h contains a typedef enum for boolean type but LCMSUniquePtr.h include files that can contain #define TRUE/FALSE. This way build fails with: JPEGImageDecoder.cpp:343:43: error: invalid conversion from ‘int’ to ‘boolean’ This is because TRUE or FALSE should be an enum instead they get defined as 1 or 0. To fix this move jpeglib.h inclusion after LCMSUniquePtr.h inclusion. Source/WebCore/platform/image-decoders/jpeg/JPEGImageDecoder.h:
Michael Catanzaro
Comment 2
2023-02-21 09:15:51 PST
Comment on
attachment 465109
[details]
Fix JPEGImageDecoder boolean enum and #define TRUE/FALSE mix View in context:
https://bugs.webkit.org/attachment.cgi?id=465109&action=review
Sigh, OK....
> Source/WebCore/platform/image-decoders/jpeg/JPEGImageDecoder.h:41 > +#include "jpeglib.h"
Preexisting issue: should be #include <jpeglib.h>
Giulio Benetti
Comment 3
2023-02-21 09:51:52 PST
Created
attachment 465111
[details]
Fix JPEGImageDecoder boolean enum and #define TRUE/FALSE mix I've just pushed --force to branch and attached I use angular parenthesis.
EWS
Comment 4
2023-02-21 15:05:15 PST
Committed
260633@main
(360f2f938bba): <
https://commits.webkit.org/260633@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 465111
[details]
.
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