tech-pkg archive

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

re: Fixing configure failures from newer gcc



> > the problem with the "use -std=" advice is that it does not help the
> > new problems GCC 14 is turning into error cases.
>
> I'm pretty sure it does actually.

i jusp spend several weeks dealing with this issue, maybe you could
trust me on it.  for instance:

the-blessing ~> cat b.c
foo(x)
{
 return x;
}
the-blessing ~> gcc -std=c99 b.c
b.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | foo(x)
      | ^~~
b.c: In function 'foo':
b.c:1:1: error: type of 'x' defaults to 'int' [-Wimplicit-int]


Home | Main Index | Thread Index | Old Index