Hi folks!

I am compiling an ansi c source code and depending on the compiler version
i get error messages or not.

With the following environment :

lion# ./mkasd
* Generating config ...
* Building lib ...
* Creating directories ...
* Building bin ...
main.c: In function `main':
main.c:38: warning: `l' might be used uninitialized in this function
* Building sbin ...
* Building dmn ...
* Done.
lion# gcc --version
gcc (GCC) 3.3.5 (propolice)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

lion# uname -a
OpenBSD lion.my.domain 4.5 GENERIC#1749 i386
lion#



But in an environment like this:

sioux@gustav$ uname -a && gcc --version
OpenBSD gustav.cpd.ufv.br 5.2 GENERIC.MP#368 amd64
gcc (GCC) 4.2.1 20070719
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

sioux@gustav$


I got no error message: why ?

The source code for the file is: http://sioux.geekisp.com/main.c

Thanks for your help.

Reply via email to