Re: clang's static checker report.

From: Greg Stark <gsstark(at)mit(dot)edu>
To: Grzegorz Jaskiewicz <gj(at)pointblue(dot)com(dot)pl>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Alex Hunsaker <badalex(at)gmail(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-hackers Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: clang's static checker report.
Date: 2009-08-29 16:35:35
Message-ID: 407d949e0908290935j19167061oa83776b00a264304@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

We still have things like this showing "division by zero":

Assert(activeTapes > 0);
1913 slotsPerTape = (state->memtupsize - state->mergefirstfree) / activeTapes;

It looks like if you marked ExceptionalCondition() as never returning
then it should hide this.

--
greg
http://mit.edu/~gsstark/resume.pdf

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Grzegorz Jaskiewicz 2009-08-29 16:47:42 Re: clang's static checker report.
Previous Message Grzegorz Jaskiewicz 2009-08-29 16:13:50 Re: clang's static checker report.