Hi all,

The attached patch makes -Wformat-non-standard warn about the use of
positional arguments (e.g. "%3$d") in format strings. (pr12017)

I'm not super happy about using pragmas to suppress this in
format-strings-fixit.c, so please let me know if there is a better
way.

The problem is that the file is expected to compile cleanly with
-pedantic after the fix-its are applied, which makes sense. An
alternative would be to move the two occurrences of positional
arguments from that file to something like
"format-strings-positional-args-fixit.c" which could be run with
-pedantic -Wno-format-non-standard. But there are already so many
format-strings-*.c files..

Please take a look.

Thanks,
Hans

Attachment: positional-arguments-warning.diff
Description: Binary data

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to