https://bugs.freedesktop.org/show_bug.cgi?id=109761

            Bug ID: 109761
           Summary: misuse of enums in vdpau_private.h
           Product: Mesa
           Version: git
          Hardware: All
                OS: NetBSD
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Other
          Assignee: mesa-dev@lists.freedesktop.org
          Reporter: co...@sdf.org
        QA Contact: mesa-dev@lists.freedesktop.org

using a custom build system and clang 7, I get warnings about
src/gallium/state_trackers/vdpau/vdpau_private.h.

functions like FormatYCBCRToPipeChroma return enum pipe_video_chroma_format.

PIPE_FORMAT_NONE, returned in the else case, isn't in this enum, it's enum
pipe_format.

I can trivially replace for returning PIPE_VIDEO_CHROMA_FORMAT_NONE but that
sounds like a risky change that might have harmful effects, so making a bug
reports rather than a patch.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to