[Top][All Lists]

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

Re: [PATCH] strerror_r: avoid compiler warning

From: Bruno Haible
Subject: Re: [PATCH] strerror_r: avoid compiler warning
Date: Sat, 21 May 2011 20:02:54 +0200
User-agent: KMail/1.9.9

Eric Blake wrote:
> @@ -48,7 +48,6 @@ AC_DEFUN([gl_FUNC_STRERROR_R],
>               [AC_LANG_PROGRAM(
>                  [[#include <errno.h>
>                    #include <string.h>
> -                  int strerror_r (int, char *, size_t);
>                  ]],
>                  [[int result = 0;
>                    char buf[79];

This part doesn't look good to me. The line was meant to provide a declaration
if the system's <string.h> doesn't.

  This function is sometimes not declared in @code{<string.h>} on some 
  glibc 2.8, OSF/1 5.1.

We don't care if gcc makes warnings about duplicate declarations during
configure tests. "-Werror" is not supported at configure-time.

In memoriam Alfred Grünberg <http://en.wikipedia.org/wiki/Alfred_Grünberg>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]