]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Pull in r242623 from upstream libc++ trunk (by Eric Fiselier):
authordim <dim@FreeBSD.org>
Fri, 9 Oct 2015 21:04:28 +0000 (21:04 +0000)
committerdim <dim@FreeBSD.org>
Fri, 9 Oct 2015 21:04:28 +0000 (21:04 +0000)
commitc8b9e1b4f19c160f314955218d6d9a442821ef43
treefa0dd5bba88c51092f776b1aa06c75a91f7b97b1
parentfcb0c0cc8d6934f766070dc4dbb56bf42c4679db
Pull in r242623 from upstream libc++ trunk (by Eric Fiselier):

  Enable and fix warnings during the build.

  Although CMake adds warning flags, they are ignored in the libc++ headers
  because the headers '#pragma system header' themselves.

  This patch disables the system header pragma when building libc++ and fixes
  the warnings that arose.

  The warnings fixed were:
  1. <memory> - anonymous structs are a GNU extension
  2. <functional> - anonymous structs are a GNU extension.
  3. <__hash_table> - Embedded preprocessor directives have undefined behavior.
  4. <string> - Definition is missing noexcept from declaration.
  5. <__std_stream> - Unused variable.

This should fix building world (in particular libatf-c++) with -std=c++11.

Reported by: Oliver Hartmann <ohartman@zedat.fu-berlin.de>
contrib/libc++/include/__hash_table
contrib/libc++/include/__std_stream
contrib/libc++/include/functional
contrib/libc++/include/memory
contrib/libc++/include/string