Re: Build failed in Jenkins: 3.HEAD-amd64-FreeBSD-9.0-clang #28

From: Tsantilas Christos <chtsanti_at_users.sourceforge.net>
Date: Thu, 08 Nov 2012 11:40:41 +0200

On 11/08/2012 01:10 AM, Amos Jeffries wrote:
> On 08.11.2012 06:36, Tsantilas Christos wrote:
>> The "certificate_db/ssl_crtd fixes" patch I posted should fix these
>> errors.
>>
>> But we may have still problems in other cases too. I did not find any
>> way to check using gcc.
>
> You can create yourself a login at http://build.squid-cache.org/ and let
> me or kinkie know to grant you access to the build jobs. You can then
> schedule testing for patch or branches as needed to check things.

I created a user with id "chtsanti". Please tell me if something else
required from my side.

>>
>> Also assume that we are storing the value from a function:
>> ret = afunc();
>> If we did not use the "ret" value, will result to a "value set but not
>> used" error or something like that.

>> Is there any flag in clang++ compiler eg a "-Wno-unused-value" which
>> ignores this warning?
>>
>
> It is a bit annoying. Using it in an if condition with debugs()
> statement to display failure events is the Right Thing(tm) and enough to
> avoid all need for warning suppression AFAIK.

OK. I will try this.
Also casting the function to void in cases we don't care about the
result looks good choice.
The gcc does not check for such cases, so it is easy for someone to make
such mistakes.

>
> Amos
>
>
Received on Thu Nov 08 2012 - 09:40:53 MST

This archive was generated by hypermail 2.2.0 : Thu Nov 08 2012 - 12:00:05 MST