[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gnubg] movefilter -- line 3210 in eval.c
From: |
Jim Segrave |
Subject: |
Re: [Bug-gnubg] movefilter -- line 3210 in eval.c |
Date: |
Tue, 3 Dec 2002 19:52:26 +0100 |
User-agent: |
Mutt/1.4i |
On Wed 04 Dec 2002 (07:35 +1300), Joseph Heled wrote:
>
> This is probably a GNU C/C++ extention which I am using without knowing it
> is non standard.
>
> Joseph
Yep - try compiling something like it it with -pedantic:
typedef struct astruct {
int integer;
char *string;
} struct_ptr;
struct_ptr *
thing (void) {
struct_ptr *pointer = & (struct_ptr) { 27, 0};
return pointer;
}
address@hidden:/home/jes$ gcc -Wall -pedantic -c fred.c
fred.c: In function `thing':
fred.c:10: warning: ANSI C forbids constructor expressions
--
Jim Segrave address@hidden