This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: C++ and feature guards Warning Question
- From: Jeffrey Walton <noloader at gmail dot com>
- To: Joel Sherrill <joel dot sherrill at oarcorp dot com>
- Cc: "newlib at sourceware dot org" <newlib at sourceware dot org>
- Date: Fri, 7 Apr 2017 17:22:04 -0400
- Subject: Re: C++ and feature guards Warning Question
- Authentication-results: sourceware.org; auth=none
- References: <ec0af940-6d74-30a4-0e8d-c81ffe449e99@oarcorp.com>
- Reply-to: noloader at gmail dot com
> ...
> Native GCC and glibc results:
>
> $ gcc -std=c++03 -c j.cc
> $ gcc -std=c++11 -c j.cc
> $ gcc -std=c++11 ^C j.cc
> $ gcc --version
> gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-11)
>
> Suggestions on what to do to eliminate the warnings is
> appreciated.
Defining _XOPEN_SOURCE to 600 or 700 can usually squash the problems
in userland programs and libraries. I found one C++ library where it
does not.
I'm not sure how GCC will react to the define because I don't build
the compiler from sources.
Jeff