Hi Bruno,
how about Jim's suggestion to remove the cast completely?
Or is that code used also in C++, where a cast might be necessary?
Ciao,
Claudio
> Can you show the compiler's complete error message, please? I can't imagine
> a C compiler that refuses to cast a 'void *' to 'char **'.
OK, an unmodified gnulib-tests/setenv.c from idutils 4.5 reports this
when compiled with HP's ANSI C compiler on HP-UX 11.11 (PA-RISC platform)
via the "gmake
Hi Claudio,
> ... suggestion to remove the cast completely?
This suggestion would not help fixing the problem, because the problem was
that malloc and/or realloc were not declared, according to the compiler error
message.
> Or is that code used also in C++, where a cast might be necessary?
1. Y
Richard Lloyd wrote:
> an unmodified gnulib-tests/setenv.c from idutils 4.5 reports this
> when compiled with HP's ANSI C compiler on HP-UX 11.11 (PA-RISC platform)
> via the "gmake check" command:
>
> CC setenv.o
> cc: "setenv.c", line 151: error 1647: Illegal integer-pointer combination
Hi Jim, Richard,
> diff --git a/lib/stdio.in.h b/lib/stdio.in.h
> index ca8960e..135b084 100644
> --- a/lib/stdio.in.h
> +++ b/lib/stdio.in.h
> @@ -661,7 +661,7 @@ _GL_FUNCDECL_RPL (printf, int,
>(const char *format, ...)
>__attribute__ ((__format__ (__print
Richard Lloyd wrote:
> I'm using HP's ANSI C compiler on PA-RISC and Itanium platforms running
> HP-UX 11.11, 11.23 and 11.31 and came across a couple of code issues that
> needed fixing:
>
> * Line 666 of lib/stdio.in.h reads:
>
> _GL_CXXALIAS_RPL (printf, printf, int, (const char *format, ...))