[Bug objc/27377] [4.2/4.3/4.4 Regression] false compiler warnings generated in Objective-C code
ayers at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Mar 14 17:11:00 GMT 2009
------- Comment #6 from ayers at gcc dot gnu dot org 2009-03-14 17:11 -------
Created an attachment (id=17465)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17465&action=view)
patch for build_conditional_expr
This patch for build_conditional_expr is modeled after build_binary_op in that
it skips the diagnostic if the objc_compare_types verifies that the types are
compatible.
If the maintainers wish, I can follow up with a little optimization for the C
front end for both build_conditional_expr and build_binary_op in that
objc_compare_types will only be called for c_dialect_objc.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27377
More information about the Gcc-bugs
mailing list