This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Pointers in comparison expressions


> I think that even if the use of relational operators other than '==' and '!=' 
> is legal with pointers, the compiler should issue a warning (when the option 
> -Wall is used), as it does for assignment, used as truth values, not 
> surrounded with parentheses.

Why?
It's legal, it's useful, and used.

--Dan


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]