[Webkit-unassigned] [Bug 252666] New: Fix JPEGImageDecoder boolean enum and #define TRUE/FALSE mix

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Feb 21 07:57:14 PST 2023


https://bugs.webkit.org/show_bug.cgi?id=252666

            Bug ID: 252666
           Summary: Fix JPEGImageDecoder boolean enum and #define
                    TRUE/FALSE mix
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Linux
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKitGTK
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: giulio.benetti at benettiengineering.com
                CC: bugs-noreply at webkitgtk.org

Created attachment 465108

  --> https://bugs.webkit.org/attachment.cgi?id=465108&action=review

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230221/b7aeb52c/attachment.htm>


More information about the webkit-unassigned mailing list