Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Feb 2019 21:06:11 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r344386 - head/contrib/libc++/include
Message-ID:  <201902202106.x1KL6BL1097077@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Wed Feb 20 21:06:11 2019
New Revision: 344386
URL: https://svnweb.freebsd.org/changeset/base/344386

Log:
  Pull in r354515 from upstream libc++ trunk:
  
    Fix the build with gcc when `-Wredundant-decls` is passed
  
    Summary:
  
    gcc warns that `__throw_runtime_error` is declared both in
    `<__locale>` and `<stdexcept>`, if `-Wredundant-decls` is passed on
    the command line; this is the case with FreeBSD when ${WARNS} == 6.
  
    Since `<__locale>` gets its first declaration via a transitive
    include of `<stdexcept>`, and the second declaration is after the
    first invocation of `__throw_runtime_error`, delete that second
    declaration.
  
    Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
  
    Reviewers: kristina, MaskRay, EricWF, ldionne, ngie
  
    Reviewed By: EricWF
  
    Subscribers: krytarowski, brooks, emaste, dim, christof, jdoerfert, libcxx-commits
  
    Tags: #libc
  
    Differential Revision: https://reviews.llvm.org/D58425
  
  Submitted by:	ngie
  MFC after:	3 days

Modified:
  head/contrib/libc++/include/__locale

Modified: head/contrib/libc++/include/__locale
==============================================================================
--- head/contrib/libc++/include/__locale	Wed Feb 20 20:55:02 2019	(r344385)
+++ head/contrib/libc++/include/__locale	Wed Feb 20 21:06:11 2019	(r344386)
@@ -1230,8 +1230,6 @@ _LIBCPP_EXTERN_TEMPLATE2(class _LIBCPP_EXTERN_TEMPLATE
 _LIBCPP_EXTERN_TEMPLATE2(class _LIBCPP_EXTERN_TEMPLATE_TYPE_VIS codecvt_byname<char16_t, char, mbstate_t>)
 _LIBCPP_EXTERN_TEMPLATE2(class _LIBCPP_EXTERN_TEMPLATE_TYPE_VIS codecvt_byname<char32_t, char, mbstate_t>)
 
-_LIBCPP_NORETURN _LIBCPP_FUNC_VIS void __throw_runtime_error(const char*);
-
 template <size_t _Np>
 struct __narrow_to_utf8
 {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201902202106.x1KL6BL1097077>