Skip to content

compile error: ordered comparison of pointer with integer zero #451

Description

@geissonator

OpenBMC rebased on upstream yocto which brought in some compiler updates. The new compiler is erroring out on this now when building croserver for OpenBMC:

10:52:04 | ServerSPIInstruction.C: In member function 'virtual uint32_t ServerSPIInstruction::spi_open(Handle**, InstructionStatus&)':
10:52:04 | ServerSPIInstruction.C:66:17: error: ordered comparison of pointer with integer zero ('Handle*' and 'int')
10:52:04 |    66 |     if (*handle < 0 || (uint32_t)*handle == 0xFFFFFFFF) {
10:52:04 |       |         ~~~~~~~~^~~

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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