From mboxrd@z Thu Jan 1 00:00:00 1970 From: elfring@users.sourceforge.net (SF Markus Elfring) Date: Fri, 23 Dec 2016 07:54:02 +0100 Subject: [Cocci] =?utf-8?q?=E2=80=A6_adding_missing_NULL_checks?= In-Reply-To: <20161222225335.oeswg7cbcm76m3wr@fbsd-laptop.lan> References: <20161216215537.p3ymxl3t6526af3i@fbsd-laptop> <20161222225335.oeswg7cbcm76m3wr@fbsd-laptop.lan> Message-ID: To: cocci@systeme.lip6.fr List-Id: cocci@systeme.lip6.fr > Is there a clever way of conditionally making this change? The answer depends on your desire how ?clever? (or sophisticated) an other approach should become. You could try to work with more disjunctions and rules in the semantic patch language. This transformation might trigger a few target conflicts and further software development challenges as you might become also aware of special needs and corresponding advancements in technology. How many software developers and source code reviewers care really about unused (or ignored) return values from various function calls? Regards, Markus