The postfix increment operator is never used. It copies format_result,
whose copy constructor is declared private and never defined, so it
would not link if it were used, and some compilers reject it outright.
gcc/ChangeLog:
* gimple-ssa-sprintf.cc (format_result::operator++ (int)): Remove.
Signed-off-by: Shiva <[email protected]>
---
Bootstrapped and regression-tested on x86_64-pc-linux-gnu and
aarch64-unknown-linux-gnu. I do not have write access; please commit
if approved.
gcc/gimple-ssa-sprintf.cc | 8 --------
1 file changed, 8 deletions(-)
diff --git a/gcc/gimple-ssa-sprintf.cc b/gcc/gimple-ssa-sprintf.cc
index b4c1490ed88..d23e4dfc229 100644
--- a/gcc/gimple-ssa-sprintf.cc
+++ b/gcc/gimple-ssa-sprintf.cc
@@ -728,14 +728,6 @@ struct format_result
return *this += 1;
}
- /* Postincrement the number of output characters by 1. */
- format_result operator++ (int)
- {
- format_result prev (*this);
- *this += 1;
- return prev;
- }
-
/* Increment the number of output characters by N. */
format_result& operator+= (unsigned HOST_WIDE_INT);