From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id A06786DE0355 for ; Sat, 26 Aug 2017 07:42:01 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[AWL=0.011, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id huU6XMKffe9R for ; Sat, 26 Aug 2017 07:42:01 -0700 (PDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id 3DE466DE0352 for ; Sat, 26 Aug 2017 07:42:00 -0700 (PDT) Received: from remotemail by fethera.tethera.net with local (Exim 4.89) (envelope-from ) id 1dlcE9-00038t-5i; Sat, 26 Aug 2017 10:38:21 -0400 Received: (nullmailer pid 11243 invoked by uid 1000); Sat, 26 Aug 2017 14:41:55 -0000 From: David Bremner To: notmuch@notmuchmail.org, notmuch@freelists.org Subject: make notmuch cppcheck clean Date: Sat, 26 Aug 2017 11:41:36 -0300 Message-Id: <20170826144141.11140-1-david@tethera.net> X-Mailer: git-send-email 2.14.1 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Aug 2017 14:42:01 -0000 I don't know if cppcheck is the best static checker there is, but it's found a few problems already, and I had it installed, so this is an initial response to Jani's suggestion of having one or more targets to run static checkers. I punted on a few of the tricker issues: cppcheck is run serially here, even though it scales rather well, and the target is optional. The rest of the series fixes complaints of cppcheck so that in principle, we could run it automatically. My main reason for not doing so is that I don't want builds that break with a new release of cppcheck.