passing _Float16 to printf where double is expected should raise a warning #68538
Labels
clang:diagnostics
New/improved warning or error message in Clang, but not in clang-tidy or static analyzer
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
The text was updated successfully, but these errors were encountered: