[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-idutils] A couple of issues building idutils 4.5 on HP-UX 11
From: |
Bruno Haible |
Subject: |
Re: [bug-idutils] A couple of issues building idutils 4.5 on HP-UX 11 |
Date: |
Sun, 20 Jun 2010 17:22:14 +0200 |
User-agent: |
KMail/1.9.9 |
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__ (__printf__, 1, 2)))
> _GL_ARG_NONNULL ((1)));
> -_GL_CXXALIAS_RPL (printf, printf, int, (const char *format, ...));
> +_GL_CXXALIAS_RPL (printf, int, (const char *format, ...));
> # endif
> # define GNULIB_overrides_printf 1
> # else
This is correct. Thanks for the correction. It was my mistake on 2010-05-16.
> * Lines 150-153 of gnulib-tests/setenv.c read:
>
> new_environ =
> (char **) (last_environ == NULL
> ? malloc ((size + 2) * sizeof (char *))
> : realloc (last_environ, (size + 2) * sizeof (char *)));
>
> malloc() and realloc() both return (void *), so casting a (void *) to
> (char **) upsets the HP C compiler.
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 **'.
Bruno