diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2021-02-15 14:00:36 +0000 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2021-02-15 15:52:25 +0000 |
commit | d27153f038c2f39ed1b7e6ba9dab59f88b8ca245 (patch) | |
tree | ab414963f73495cd1e61545cffb3294fd254c31d /libcpp/files.c | |
parent | abe07a74bb7a2692eff2af151ca54e749ed5eba6 (diff) | |
download | gcc-d27153f038c2f39ed1b7e6ba9dab59f88b8ca245.zip gcc-d27153f038c2f39ed1b7e6ba9dab59f88b8ca245.tar.gz gcc-d27153f038c2f39ed1b7e6ba9dab59f88b8ca245.tar.bz2 |
libstdc++: Add missing return and use reserved name
The once_flag::_M_activate() function is only ever called immediately
after a call to once_flag::_M_passive(), and so in the non-gthreads case
it is impossible for _M_passive() to be true in the body of
_M_activate(). Add a check for it anyway, to avoid warnings about
missing return.
Also replace a non-reserved name with a reserved one.
libstdc++-v3/ChangeLog:
* include/std/mutex (once_flag::_M_activate()): Add explicit
return statement for passive case.
(once_flag::_M_finish(bool)): Use reserved name for parameter.
Diffstat (limited to 'libcpp/files.c')
0 files changed, 0 insertions, 0 deletions