This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Clang-tidy correctly notices that after exiting std:call_once a couple of globals are left pointing to local variables that go out of scope. This isn't a problem, because the globals are only ever used by std::call_once and it will re-init them before the next use. Zero the variables out just for clang-tidy, to prevent the warnings. PR libstdc++/82481 * include/std/mutex (call_once): Suppress clang-tidy warnings about dangling references. Tested powerpc64le-linux, committed to trunk.
Attachment:
patch.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |