Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C strange warning.

Name: Anonymous 2010-07-01 18:34

http://pastebin.com/3js28CTR
$> gcc main.c
If tata(char|short|float c) => warning
If tata(int|long|double c) => nothing

Does somebody could explain why exactly ? =)

Name: Anonymous 2010-07-05 0:45

>>39
It's not anyone's fault; it's just because C is forty years old. Nobody really thought to prototype declarations back then.

Despite what you may think, backwards compatibility is important. There are still codebases and compilers that rely on the old way of declarations without prototypes. Have you looked at libpng lately? It still has all those preprocessor routines to hide arguments on old compilers because it is still used in places where prototypes are not supported.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List