tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] tiny bit of lint


From: Christian Jullien
Subject: Re: [Tinycc-devel] tiny bit of lint
Date: Tue, 9 May 2017 18:18:07 +0200

Even with clang, you can write without warnings:

  if (pe->s1->verbose) {
    static const char* plural = "s";
    printf("<- %s (%d symbol%s)\n",
           buf, sym_count, plural + (int)(sym_count < 2));
  }

But clearly, I prefer to waste 11/20 bytes. Now, it's up to you!


-----Original Message-----
From: Tinycc-devel [mailto:address@hidden
On Behalf Of grischka
Sent: mardi 9 mai 2017 17:44
To: address@hidden
Subject: Re: [Tinycc-devel] tiny bit of lint

Larry Doolittle wrote:
> Friends -
> 
> On Tue, May 09, 2017 at 11:49:23AM +0200, Christian Jullien wrote:
>> Arf! You're right.
>> That why I never fix warning in a code which is not mine.
>> My fix proposal is definitively better.
> 
> Sorry, everyone, testing should have caught my original mistake.
> 
> I committed a fix.
> 
> The real equivalence is between the original "s" + (i<2) and 
> &"s"[i<2].

If people are going to use clang more likely, can't you add something to
configure for clang to turn off some silly warnings?

That would be USEFUL, for example ;)

--- gr

_______________________________________________
Tinycc-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/tinycc-devel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]