|
From: | Manuel Collado |
Subject: | Re: Why 'statement may have no effect' lint warning here? |
Date: | Tue, 13 Apr 2021 23:41:13 +0200 |
User-agent: | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 |
El 13/04/2021 a las 10:20, Wolfgang Laun escribió:
Just ask your Software Quality Dptmt what they think of using a logical expression as an alternative to an if statement without else.
Of course, that construct is a mistake. My point is that --lint is intended to help diagnose mistakes. And hence flagging that statement as dubious makes sense. HTH. -- Manuel Collado - http://mcollado.z15.es
[Prev in Thread] | Current Thread | [Next in Thread] |