]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r344386:
authordim <dim@FreeBSD.org>
Sat, 23 Feb 2019 14:27:09 +0000 (14:27 +0000)
committerdim <dim@FreeBSD.org>
Sat, 23 Feb 2019 14:27:09 +0000 (14:27 +0000)
commite1160a466998fa3311b9a0f4a5c24846e8264c3c
tree24b17370bd0f167e0833ae1f8573c4f9cab4c82c
parent452513d43d2ccfec24b2fddaa6a5acf03eb69a6d
MFC r344386:

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
contrib/libc++/include/__locale