andykaylor wrote: The logic that leads us to suppress the warning for exact floating-point literals could easily be extended to integer literals that can be exactly represented, but I'm also not sure it's a good idea to have ever done that. The reasoning for the warning seems to apply to the exact-literal comparison cases as well as anything else. If there really is demand for not diagnosing in these cases, perhaps a new option to control that behavior specifically is in order.
https://github.com/llvm/llvm-project/pull/207288 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
