[PATCH] D15636: Reduce false positives in printf/scanf format checker

Richard Trieu via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 25 12:18:28 PST 2016


rtrieu added a comment.

Hi Andy,

Could you give some motivation for this patch?  From your example:

  printf(minimal ? "%i\n" : "%i: %s\n", code, msg);

I would expect the first format string to produce a warning that msg is not used.


http://reviews.llvm.org/D15636





More information about the cfe-commits mailing list