Skip to content

passing _Float16 to printf where double is expected should raise a warning #68538

@sh1boot

Description

@sh1boot

Unlike __fp16, _Float16 is passed without conversion to double, and so it's an unexpected argument type at that position when used with %f and the like, and should raise a warning.

https://godbolt.org/z/r5o7djxbd

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:diagnosticsNew/improved warning or error message in Clang, but not in clang-tidy or static analyzer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions