Skip to content

Enum int mismatch in gc_hal_kernel_os.c #18

Description

@gjbauer

When building from upstream with GCC I get the following error message:

drivers/staging/media/eswin/hae/hal/os/linux/kernel/gc_hal_kernel_os.c:5610:1: error: conflicting types for ‘_QuerySignal’ due to enum/integer mismatch; have ‘gceSTATUS(struct _gckOS *, void *)’ {aka ‘enum _gceSTATUS(struct _gckOS *, void *)’} [-Werror=enum-int-mismatch]
 5610 | _QuerySignal(gckOS Os, gctSIGNAL Signal)
      | ^~~~~~~~~~~~
In file included from drivers/staging/media/eswin/hae/hal/os/linux/kernel/gc_hal_kernel_os.c:79:
drivers/staging/media/eswin/hae/hal/os/linux/kernel/gc_hal_kernel_linux.h:335:1: note: previous declaration of ‘_QuerySignal’ with type ‘gctBOOL(struct _gckOS *, void *)’ {aka ‘int(struct _gckOS *, void *)’}
  335 | _QuerySignal(gckOS Os, gctSIGNAL Signal);
      | ^~~~~~~~~~~~
cc1: all warnings being treated as errors

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions