Return-Path: X-Original-To: apmail-httpd-dev-archive@www.apache.org Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2130BD260 for ; Fri, 14 Sep 2012 20:40:14 +0000 (UTC) Received: (qmail 59727 invoked by uid 500); 14 Sep 2012 20:40:13 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 59654 invoked by uid 500); 14 Sep 2012 20:40:13 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 59646 invoked by uid 99); 14 Sep 2012 20:40:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Sep 2012 20:40:13 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of apache-dev@m.gmane.org designates 80.91.229.3 as permitted sender) Received: from [80.91.229.3] (HELO plane.gmane.org) (80.91.229.3) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Sep 2012 20:40:06 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TCcfz-0001gU-JF for dev@httpd.apache.org; Fri, 14 Sep 2012 22:39:47 +0200 Received: from aorleans-552-1-79-188.w92-140.abo.wanadoo.fr ([92.140.222.188]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 14 Sep 2012 22:39:47 +0200 Received: from christophe.jaillet by aorleans-552-1-79-188.w92-140.abo.wanadoo.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 14 Sep 2012 22:39:47 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: dev@httpd.apache.org From: Christophe JAILLET Subject: Re: Clang Checkers Date: Fri, 14 Sep 2012 22:39:34 +0200 Lines: 70 Message-ID: <50539606.4000407@wanadoo.fr> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------020906070603090904030407" X-Complaints-To: usenet@ger.gmane.org Cc: =?UTF-8?B?SWdvciBHYWxpxIc=?= X-Gmane-NNTP-Posting-Host: aorleans-552-1-79-188.w92-140.abo.wanadoo.fr User-Agent: Mozilla/5.0 (X11; Linux i686; rv:15.0) Gecko/20120827 Thunderbird/15.0 In-Reply-To: X-Antivirus: avast! (VPS 120914-0, 14/09/2012), Outbound message X-Antivirus-Status: Clean X-Virus-Checked: Checked by ClamAV on apache.org This is a multi-part message in MIME format. --------------020906070603090904030407 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi, this one remove a dead assignment and reduce the scope of a variable. mod_proxy_balancer.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) Best regards, CJ On 09/14/2012 08:10 PM, Igor Galić wrote: > > Hey folks, > > over at trafficserver we started looking into running > clang's checkers over our code. Using the momentum, Daniel > and myself rand the checkers over httpd and apr (both from > trunk) as well. > > Daniel's checks are ran under FreeBSD/clang 3.0: > > http://inhouse.humbedooh.com/clang/2012-09-14-3/ > > Mine are ran under Fedora and clang 3.2 (trunk): > > http://people.apache.org/~igalic/checks/httpd/latest/ > > > So long, > > i > --------------020906070603090904030407 Content-Type: text/x-patch; name="diff_httpd.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="diff_httpd.diff" Index: modules/proxy/mod_proxy_balancer.c =================================================================== --- modules/proxy/mod_proxy_balancer.c (revision 1384907) +++ modules/proxy/mod_proxy_balancer.c (working copy) @@ -702,7 +702,6 @@ apr_pool_t *ptemp, server_rec *s) { apr_status_t rv; - void *sconf = s->module_config; proxy_server_conf *conf; ap_slotmem_instance_t *new = NULL; apr_time_t tstamp; @@ -744,7 +743,7 @@ while (s) { int i,j; proxy_balancer *balancer; - sconf = s->module_config; + void *sconf = s->module_config; conf = (proxy_server_conf *)ap_get_module_config(sconf, &proxy_module); if (conf->bslot) { --------------020906070603090904030407--