Skip to content

Build of hitags breaks strict aliasing rule is back #2796

@JohnDoeIsKIng

Description

@JohnDoeIsKIng

Dear community,

the build error regarding the strict aliasing rule is back:

[-] CC hitagu.c hitagu.c: In function 'htu_read_uid': hitagu.c:675:9: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] uid = BSWAP_48((uint64_t *)&tag.uid); ^ hitagu.c:675:9: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] hitagu.c:675:9: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] hitagu.c:675:9: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] hitagu.c:675:9: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] hitagu.c:675:9: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] cc1: all warnings being treated as errors ../common_arm/Makefile.common:118: recipe for target 'obj/hitagu.o' failed make[1]: *** [obj/hitagu.o] Error 1 Makefile:167: recipe for target 'armsrc/all' failed make: *** [armsrc/all] Error 2

Any hints?
Best regards

JD.

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