mathinline.h
Thorsten Kukuk
kukuk@suse.de
Thu May 20 01:10:00 GMT 1999
Hello,
If I compile the following program with:
#define _BSD_SOURCE
#define _GNU_SOURCE
#include <math.h>
int main () { return 0; }
with gcc -O2 -pedantic -c math.c I get following error:
/usr/include/bits/mathinline.h: In function `__signbitf':
In file included from /usr/include/math.h:348,
from math.c:5:
/usr/include/bits/mathinline.h:117: warning: ANSI C forbids specifying structure member to initialize
/usr/include/bits/mathinline.h:117: initializer element for `__u.__f' is not computable at load time
/usr/include/bits/mathinline.h: In function `__signbit':
/usr/include/bits/mathinline.h:122: warning: ANSI C forbids specifying structure member to initialize
/usr/include/bits/mathinline.h:122: initializer element for `__u.__d' is not computable at load time
/usr/include/bits/mathinline.h: In function `__signbitl':
/usr/include/bits/mathinline.h:127: warning: ANSI C forbids specifying structure member to initialize
/usr/include/bits/mathinline.h:127: initializer element for `__u.__l' is not computable at load time
If I remove _GNU_SOURCE, -pedantic or -O2, it works. I think something goes wrong
here.
Thorsten
--
Thorsten Kukuk http://www.suse.de/~kukuk/ kukuk@suse.de
SuSE GmbH Schanzaeckerstr. 10 90443 Nuernberg
Linux is like a Vorlon. It is incredibly powerful, gives terse,
cryptic answers and has a lot of things going on in the background.
More information about the Libc-hacker
mailing list