This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.
Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
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.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |