Skip to content

Pedantic warning while using HB_TAG  #504

@ksvskushal

Description

@ksvskushal

While compiling freetype2, I found the following warning.

hb-common.h:93:29: warning: ISO C restricts enumerator values to range of ‘int’ [-Wpedantic]
 #define HB_TAG(c1,c2,c3,c4) ((hb_tag_t)((((uint8_t)(c1))<<24)|(((uint8_t)(c2))<

HB_TAG_MAX seems to be the problem.

hb-common.h:97:20: note: in expansion of macro ‘HB_TAG’
 #define HB_TAG_MAX HB_TAG(0xff,0xff,0xff,0xff)

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