[haiku-commits] Re: haiku: hrev46774 - src/apps/pairs

  • From: John Scipione <jscipione@xxxxxxxxx>
  • To: "haiku-commits@xxxxxxxxxxxxx" <haiku-commits@xxxxxxxxxxxxx>
  • Date: Tue, 28 Jan 2014 09:22:49 -0500

On Tuesday, January 28, 2014, Axel Dörfler <axeld@xxxxxxxxxxxxxxxx> wrote:

> > On January 27, 2014 at 10:10 PM jscipione@xxxxxxxxx <javascript:;>wrote:
> > +#include
> > +     // for snprintf()
>
> Either a header is needed or not. Don't put superfluous explanations there.


Ok but gcc2 automatically includes some headers while gcc4 doesn't so the
code will compile on gcc2 without that header included while gcc4 won't and
you have no idea if it can be removed or not based on future code changes.
That's the purpose of the comment, it covers a deficiency in gcc2.

Other related posts: