ccotter wrote: Oh, you are entirely right. I completely missed that gcc had this check. All of my test cases are covered by gcc's check, and gcc's check is a bit smarter than mine (`sprintf(stp->buf, "%s", st1.buf)` is caught by gcc, but not my check).
Is this still worth adding here? I didn't see an equivalent in clang's -Wall. https://github.com/llvm/llvm-project/pull/114244 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits