3.6% of heads up: Please correct your #includes or optflags use

Enrico Scholz enrico.scholz at informatik.tu-chemnitz.de
Mon Mar 24 20:39:45 UTC 2008


Patrice Dumas <pertusus at free.fr> writes:

>> Yes fixing them is important, missing prototypes can lead to all sort
>> of errors and often lead to 64 bit issues (== crashes).
>
> And more specifically? What kid of 64bit issues and for which
> function?

Especially functions with >=7 arguments:

void foo(int a1, int a2, int a3, int a4, int a5, int a6, int *e)
{
        if (e)
           *e = a1;
}

int main()
{
        foo(1,2,3,4,5,6, 0);
}


This will segfault when foo() and main() are in two different compilation
units.



Enrico




More information about the devel mailing list