Re: data type
In article <47028ae8$0$510 3$ba4acef3@news .orange.frjacob navia <jacob@nospam.o rgwrites:
....
What is wrong about that compiler? It gives one more warning message
than yours. To quote:
Your compiler gives two.
Which of the warning messages is your compiler missing?
--
dik t. winter, cwi, kruislaan 413, 1098 sj amsterdam, nederland, +31205924131
home: bovenover 215, 1025 jn amsterdam, nederland; http://www.cwi.nl/~dik/
In article <47028ae8$0$510 3$ba4acef3@news .orange.frjacob navia <jacob@nospam.o rgwrites:
Richard Heathfield wrote:
heathfield is using the wrong compiler!
than yours. To quote:
foo.c:3: warning: return-type defaults to `int'
foo.c:3: warning: function declaration isn't a prototype
foo.c: In function `foo':
foo.c:3: warning: type of `x' defaults to `int'
foo.c:3: warning: function declaration isn't a prototype
foo.c: In function `foo':
foo.c:3: warning: type of `x' defaults to `int'
d:\lcc\test>lc th1.c
Warning th1.c: 2 no type specified. Defaulting to int
Warning th1.c: 8 Missing prototype for 'foo'
0 errors, 2 warnings
Warning th1.c: 2 no type specified. Defaulting to int
Warning th1.c: 8 Missing prototype for 'foo'
0 errors, 2 warnings
--
dik t. winter, cwi, kruislaan 413, 1098 sj amsterdam, nederland, +31205924131
home: bovenover 215, 1025 jn amsterdam, nederland; http://www.cwi.nl/~dik/
Comment