Re: AIX C compiler message unexplainable
On Oct 17, 1:13 pm, jacob navia <ja...@nospam.org> wrote:
> andreas.lue...@gmx.net wrote:
> > Hi All
>
> > Compile a our source with BM XL C/C++ Enterprise Edition V8.0 for AIX
> > (Version: 08.00.0000.0000) produces a lot of Informational message
> > like this:
>
> > "aaalib.c", line 671.1: 1506-412 (I) Referenced variable "n", which
> > was not initialized in its declaration.
>
> > n is a variable in procedure an is assigned before used. Compiling the
> > same sources with other compiles such as AIX version 7.0, gcc on
> > linux etc do not display this information.
>
> > Appreciate your in this regard,
>
> > Thanks,
> > Andreas
>
> P.S. It would be maybe better to SHOW where the compiler
> complains, where you think it is wrong with
> concrete examples, if not it is not possible to you
> anyway.
>
> --
> jacob navia
> jacob at jacob point remcomp point fr
> logiciels/informatiquehttp://www.cs.virginia.edu/~lcc-win32
here is the code snipped:
void aaalib_trim (char *in) {
int n;
for (n = (strlen(in)) - 1; n>= 0; n--)
if (!isspace(in[n]))
break;
in[n+1] = '\0';
}
|