]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Fix unused warning for new variable
authorJonathan Wakely <jwakely@redhat.com>
Fri, 30 Jun 2023 14:13:25 +0000 (15:13 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 30 Jun 2023 14:29:51 +0000 (15:29 +0100)
commitd083c8c808cae2c7acb46117374bb047b4c3afce
treeaa984e5967093a3870b051ddde061baa9dffe838
parenteab57b825bcc350e9ff44eb2fa739a80199d9bb1
libstdc++: Fix unused warning for new variable

This newly-introduced variable isn't used on all paths, so add the
[[maybe_unused]] attribute.

libstdc++-v3/ChangeLog:

* src/c++11/random.cc (random_device::_M_init): Add maybe_unused
attribute.
libstdc++-v3/src/c++11/random.cc