I want to catch equality comparisons of doubles in my code and get warnings for them. Is there a GCC warning that will do this?
It’s not something that can be easily grepped for in the source code.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
GCC 4.7.0 has:
and it produces, amongst many others:
(GCC 4.1.2 does not support the extended help; it ‘just’ has
--help. It does have the warning option, though.)