libstdc++: Use [[maybe_unused]] attribute in src/c++23/print.cc
This avoids some warnings when the preprocessor conditions are not met. libstdc++-v3/ChangeLog: * src/c++23/print.cc (__open_terminal): Use [[maybe_unused]] on parameter. (cherry picked from commit b40156d69153364315e071dc968227ce1c3bd2a8)
This commit is contained in:
parent
5fad887430
commit
b41487a883
1 changed files with 2 additions and 2 deletions
|
@ -67,7 +67,7 @@ namespace
|
|||
// This returns intptr_t that is either a Windows HANDLE
|
||||
// or 1 + a POSIX file descriptor. A zero return indicates failure.
|
||||
void*
|
||||
__open_terminal(FILE* f)
|
||||
__open_terminal([[maybe_unused]] FILE* f)
|
||||
{
|
||||
#ifndef _GLIBCXX_USE_STDIO_PURE
|
||||
if (f)
|
||||
|
@ -85,7 +85,7 @@ namespace
|
|||
}
|
||||
|
||||
void*
|
||||
__open_terminal(std::streambuf* sb)
|
||||
__open_terminal([[maybe_unused]] std::streambuf* sb)
|
||||
{
|
||||
#if ! defined _GLIBCXX_USE_STDIO_PURE && defined __cpp_rtti
|
||||
using namespace __gnu_cxx;
|
||||
|
|
Loading…
Add table
Reference in a new issue