[Top][All Lists]

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

Re: preparing the pretest

From: Eli Zaretskii
Subject: Re: preparing the pretest
Date: Thu, 26 Sep 2002 07:17:26 +0200 (IST)

On Wed, 25 Sep 2002, Francesco Potorti` wrote:

> gcc -c -D_BSD_SOURCE   -Demacs -DHAVE_CONFIG_H -DUSE_LUCID  -I. 
> -I/home/pot/gnu/emacs-pretest/src -D_BSD_SOURCE -I/usr/X11R6/include -g -O2 
> -DPURESIZE=5000000 -I../src dired.c
> In file included from dired.c:93:
> regex.h:541:1: warning: "__restrict_arr" redefined
> In file included from /usr/include/features.h:283,
>                  from /usr/lib/gcc-lib/i386-linux/3.2.1/include/stdio.h:37,
>                  from s/gnu-linux.h:157,
>                  from config.h:371,
>                  from dired.c:23:
> /usr/include/sys/cdefs.h:212:1: warning: this is the location of the previous 
> definition
> The warning does not appear when using gcc 2.95 (and did not appear with
> gcc 3.0).  The reason is that src/regex.h has this:
> ===File ~/gnu/emacs-pretest/src/regex.h=====================
> /* For now unconditionally define __restrict_arr to expand to nothing.
>    Ideally we would have a test for the compiler which allows defining
>    it to restrict.  */
> #define __restrict_arr

I suggest to make this definition conditional:

  #ifndef __restrict_arr
  #define __restrict_arr

reply via email to

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