This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/19212] New: features.h not -Wundef clean
- From: "jsm28 at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Thu, 05 Nov 2015 17:49:04 +0000
- Subject: [Bug libc/19212] New: features.h not -Wundef clean
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=19212
Bug ID: 19212
Summary: features.h not -Wundef clean
Product: glibc
Version: 2.22
Status: NEW
Severity: normal
Priority: P2
Component: libc
Assignee: unassigned at sourceware dot org
Reporter: jsm28 at gcc dot gnu.org
CC: drepper.fsp at gmail dot com
Target Milestone: ---
features.h is not clean with -Wundef (for the installed header, of course this
only appears with -Wsystem-headers). In ISO C standards modes, you get:
../include/features.h:227:36: error: "_XOPEN_SOURCE" is not defined
[-Werror=undef]
#if ((!defined __STRICT_ANSI__ || (_XOPEN_SOURCE - 0) >= 500) && \
^
../include/features.h:242:30: error: "_POSIX_C_SOURCE" is not defined
[-Werror=undef]
#if defined _POSIX_SOURCE || _POSIX_C_SOURCE >= 1 || defined _XOPEN_SOURCE
^
../include/features.h:250:6: error: "_POSIX_C_SOURCE" is not defined
[-Werror=undef]
#if (_POSIX_C_SOURCE - 0) >= 199309L
^
../include/features.h:254:6: error: "_POSIX_C_SOURCE" is not defined
[-Werror=undef]
#if (_POSIX_C_SOURCE - 0) >= 199506L
^
../include/features.h:258:6: error: "_POSIX_C_SOURCE" is not defined
[-Werror=undef]
#if (_POSIX_C_SOURCE - 0) >= 200112L
^
--
You are receiving this mail because:
You are on the CC list for the bug.