Skip to content

alignof(expression) is GNU extension #539

@jmr

Description

@jmr

Should be replaced by the type.

/Users/runner/work/s2geometry/s2geometry/src/s2/s2point_array.h:35:43: warning: 'alignof' applied to an expression is a GNU extension [-Wgnu-alignof-expression]
    ::operator delete(p, std::align_val_t(alignof(*p)));
                                          ^

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