Re: [xml] AIX 4.3.2 compile error with 2.4.2



On Thu, Aug 16, 2001 at 02:20:34PM -0500, xml thewrittenword com wrote:
gmake[2]: Entering directory `/opt/build/libxml2-2.4.2'
/bin/sh ./libtool --mode=compile xlc -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  -O2
-qmaxmem=-1 -qarch=com -c SAX.c
mkdir .libs
xlc -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 -O2 -qmaxmem=-1 -qarch=com -c SAX.c
-DPIC
"./include/libxml/HTMLparser.h", line 61.25: 1506-120 (S) Function
cannot return a const qualified type.
"./include/libxml/HTMLparser.h", line 62.25: 1506-120 (S) Function
cannot return a const qualified type.
"./include/libxml/HTMLparser.h", line 63.25: 1506-120 (S) Function
cannot return a const qualified type.

include/libxml/HTMLparser.h has:
const htmlElemDescPtr   htmlTagLookup   (const xmlChar *tag);
const htmlEntityDescPtr htmlEntityLookup(const xmlChar *name);
const htmlEntityDescPtr htmlEntityValueLookup(unsigned int value);

Is this valid C89 code? I passed this through GCC 2.95.3 and 3.0 with
-ansi -pedantic and it worked.

BTW, IRIX cc gives:

cc-3303 cc: WARNING File = ./include/libxml/HTMLparser.h, Line = 61
  A type qualifier on a return type is meaningless.

  const htmlElemDescPtr htmlTagLookup   (const xmlChar *tag);
                        ^

cc-3303 cc: WARNING File = ./include/libxml/HTMLparser.h, Line = 62
  A type qualifier on a return type is meaningless.

  const htmlEntityDescPtr       htmlEntityLookup(const xmlChar *name);
                                ^

cc-3303 cc: WARNING File = ./include/libxml/HTMLparser.h, Line = 63
  A type qualifier on a return type is meaningless.

  const htmlEntityDescPtr       htmlEntityValueLookup(unsigned int value);
                                ^

cc-1552 cc: WARNING File = xpointer.c, Line = 2470
  The variable "stringlen" is set but never used.

      int stringlen; /* in bytes */

-- 
albert chin (china thewrittenword com)




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