Hi Martin Martin Sebor via Gcc-patches <gcc-patches@gcc.gnu.org> wrote:
The attached patch replaces the uses of TREE_NO_WARNING in the Objective-C front end. <gcc-no-warning-objc.diff>
I’ve been gradually trying to improve/add locations in the ObjC stuff. To that end, I wonder if it might be worth considering always supplying the intended masked warning (rather than omitting this when the node currently has no location). I guess that would mean that the setter/getter would need to determine if there was some suitable location (more work but better abstraction). This would mean that an improvement/addition to location would automatically gain the improvement in masked warnings. This is not an objection (the patch is OK for ObjC as is) .. just a question, thanks Iain