Re: [xml] AIX 4.3.2 compile error with 2.4.2



On Thu, Aug 16, 2001 at 07:08:38PM -0400, Daniel Veillard wrote:
On Thu, Aug 16, 2001 at 03:12:35PM -0700, Darin Adler wrote:
On Thursday, August 16, 2001, at 12:32  PM, Daniel Veillard wrote:
  Meaningful to me and gcc:
    the function returns a pointer to an immutable memory region,
warn if it is affected.

A pointer to an immutable memory region would be "const htmlEntityDesc *", 
and there would be no warning. What you have there now, "const 
htmlElemDescPtr", gives you an immutable pointer to a mutable memory 
region -- it's equivalent to "htmlEntityDesc * const", and it is 
meaningless for a return type.

  Oh, okay, I always make a typedef for pointers to structs, and that's
the first time I get a difference in semantic :-\

  I have tried to clean up the code in this respect, Albert that
would be great if you could check the enclosed patch on the Irix/AIX
compilers,

Worked perfectly. Thanks!

BTW, here are some more variables set but never used:

cc -DHAVE_CONFIG_H -I. -I. -I. -I./include -I./include
-I/opt/TWWfsw/zlib11/include -I/opt/TWWfsw/readline4/include
-I/opt/TWWfsw/libiconv16/include -Wl,-woff,84 -Wl,-woff,85 -woff 1429
-O2 -c SAX.c  -DPIC -o .libs/SAX.lo
cc-1552 cc: WARNING File = SAX.c, Line = 208
  The variable "oldwellFormed" is set but never used.

        int oldwellFormed;
            ^

cc-1552 cc: WARNING File = SAX.c, Line = 363
  The variable "parse" is set but never used.

        int parse;
            ^

-- 
albert chin (china thewrittenword com)




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]