diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2021-08-03 15:03:44 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2021-08-03 15:41:11 +0100 |
commit | a77a46d9aeb0166b4b1ee4b52e1cbb4b52c6736f (patch) | |
tree | 69bfd04ec514391c0e5202128e930e43229601ea /libgcc | |
parent | 5c6759e41607f9edbbe25be18bd322d6a0408238 (diff) | |
download | gcc-a77a46d9aeb0166b4b1ee4b52e1cbb4b52c6736f.zip gcc-a77a46d9aeb0166b4b1ee4b52e1cbb4b52c6736f.tar.gz gcc-a77a46d9aeb0166b4b1ee4b52e1cbb4b52c6736f.tar.bz2 |
libstdc++: Suppress redundant definitions of inline variables
In C++17 the out-of-class definitions for static constexpr variables are
redundant, because they are implicitly inline. This change avoids
"redundant redeclaration" warnings from -Wsystem-headers -Wdeprecated.
Signed-off-by: Jonathan Wakely <jwakely@redhat.com>
libstdc++-v3/ChangeLog:
* include/bits/random.tcc (linear_congruential_engine): Do not
define static constexpr members when they are implicitly inline.
* include/std/ratio (ratio, __ratio_multiply, __ratio_divide)
(__ratio_add, __ratio_subtract): Likewise.
* include/std/type_traits (integral_constant): Likewise.
* testsuite/26_numerics/random/pr60037-neg.cc: Adjust dg-error
line number.
Diffstat (limited to 'libgcc')
0 files changed, 0 insertions, 0 deletions