Tested x86_64-pc-linux-gnu, applying to trunk as obvious. -- 8< --
The semicolons after each macro invocation here end up following the closing brace of a function, leading to -Wextra-semi pedwarns. libstdc++-v3/ChangeLog: * include/decimal/decimal.h (_DEFINE_DECIMAL_BINARY_OP_WITH_INT): Remove redundant semicolons. --- libstdc++-v3/include/decimal/decimal.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/libstdc++-v3/include/decimal/decimal.h b/libstdc++-v3/include/decimal/decimal.h index 6ecd1637083..99376a60cdf 100644 --- a/libstdc++-v3/include/decimal/decimal.h +++ b/libstdc++-v3/include/decimal/decimal.h @@ -336,18 +336,18 @@ namespace decimal } #define _DEFINE_DECIMAL_BINARY_OP_WITH_INT(_Op, _T1) \ - _DEFINE_DECIMAL_BINARY_OP_LHS(_Op, _T1, int); \ - _DEFINE_DECIMAL_BINARY_OP_LHS(_Op, _T1, unsigned int); \ - _DEFINE_DECIMAL_BINARY_OP_LHS(_Op, _T1, long); \ - _DEFINE_DECIMAL_BINARY_OP_LHS(_Op, _T1, unsigned long); \ - _DEFINE_DECIMAL_BINARY_OP_LHS(_Op, _T1, long long); \ - _DEFINE_DECIMAL_BINARY_OP_LHS(_Op, _T1, unsigned long long); \ - _DEFINE_DECIMAL_BINARY_OP_RHS(_Op, _T1, int); \ - _DEFINE_DECIMAL_BINARY_OP_RHS(_Op, _T1, unsigned int); \ - _DEFINE_DECIMAL_BINARY_OP_RHS(_Op, _T1, long); \ - _DEFINE_DECIMAL_BINARY_OP_RHS(_Op, _T1, unsigned long); \ - _DEFINE_DECIMAL_BINARY_OP_RHS(_Op, _T1, long long); \ - _DEFINE_DECIMAL_BINARY_OP_RHS(_Op, _T1, unsigned long long); \ + _DEFINE_DECIMAL_BINARY_OP_LHS(_Op, _T1, int) \ + _DEFINE_DECIMAL_BINARY_OP_LHS(_Op, _T1, unsigned int) \ + _DEFINE_DECIMAL_BINARY_OP_LHS(_Op, _T1, long) \ + _DEFINE_DECIMAL_BINARY_OP_LHS(_Op, _T1, unsigned long) \ + _DEFINE_DECIMAL_BINARY_OP_LHS(_Op, _T1, long long) \ + _DEFINE_DECIMAL_BINARY_OP_LHS(_Op, _T1, unsigned long long) \ + _DEFINE_DECIMAL_BINARY_OP_RHS(_Op, _T1, int) \ + _DEFINE_DECIMAL_BINARY_OP_RHS(_Op, _T1, unsigned int) \ + _DEFINE_DECIMAL_BINARY_OP_RHS(_Op, _T1, long) \ + _DEFINE_DECIMAL_BINARY_OP_RHS(_Op, _T1, unsigned long) \ + _DEFINE_DECIMAL_BINARY_OP_RHS(_Op, _T1, long long) \ + _DEFINE_DECIMAL_BINARY_OP_RHS(_Op, _T1, unsigned long long) _DEFINE_DECIMAL_BINARY_OP_WITH_DEC(+, decimal32, decimal32, decimal32) _DEFINE_DECIMAL_BINARY_OP_WITH_INT(+, decimal32) base-commit: 3178786c88761e47b3cbe700a97a0de2b6e133cb -- 2.46.0