PR libstdc++/82481 Suppress clang-tidy warnings
Backport from mainline 2017-10-13 Jonathan Wakely <jwakely@redhat.com> PR libstdc++/82481 * include/std/mutex (call_once): Suppress clang-tidy warnings about dangling references. From-SVN: r253944
This commit is contained in:
parent
7759a387e2
commit
774310c50c
@ -1,5 +1,12 @@
|
||||
2017-10-20 Jonathan Wakely <jwakely@redhat.com>
|
||||
|
||||
Backport from mainline
|
||||
2017-10-13 Jonathan Wakely <jwakely@redhat.com>
|
||||
|
||||
PR libstdc++/82481
|
||||
* include/std/mutex (call_once): Suppress clang-tidy warnings about
|
||||
dangling references.
|
||||
|
||||
Backport from mainline
|
||||
2017-09-12 Jonathan Wakely <jwakely@redhat.com>
|
||||
|
||||
|
@ -688,6 +688,12 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
|
||||
__set_once_functor_lock_ptr(0);
|
||||
#endif
|
||||
|
||||
#ifdef __clang_analyzer__
|
||||
// PR libstdc++/82481
|
||||
__once_callable = nullptr;
|
||||
__once_call = nullptr;
|
||||
#endif
|
||||
|
||||
if (__e)
|
||||
__throw_system_error(__e);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user