gbranden pushed a commit to branch master
in repository groff.
commit 095dd9463452dccc2f967f4c2ba5518839065254
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sat Mar 14 15:16:56 2026 -0500
[grohtml]: Drop unused variable from preprocessor.
* src/preproc/html/pushback.cpp (pushBackBuffer::readInt): Eliminate
initialized-and-written-to-but-never-read local variable `c`.
Thanks to Bjarni Ingi Gislason for the report in
<https://lists.gnu.org/archive/html/groff/2026-03/msg00072.html>.
---
ChangeLog | 9 +++++++++
src/preproc/html/pushback.cpp | 2 --
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 7cd62918b..dc6de6164 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2026-03-14 G. Branden Robinson <[email protected]>
+
+ * src/preproc/html/pushback.cpp (pushBackBuffer::readInt):
+ Eliminate initialized-and-written-to-but-never-read local
+ variable `c`.
+
+ Thanks to Bjarni Ingi Gislason for the report in <https://\
+ lists.gnu.org/archive/html/groff/2026-03/msg00072.html>.
+
2026-03-14 G. Branden Robinson <[email protected]>
* src/roff/troff/env.cpp: Throw warning in category "style" if
diff --git a/src/preproc/html/pushback.cpp b/src/preproc/html/pushback.cpp
index 9ecd4363e..f1c3ce93f 100644
--- a/src/preproc/html/pushback.cpp
+++ b/src/preproc/html/pushback.cpp
@@ -239,7 +239,6 @@ static int isHexDigit (char ch)
int pushBackBuffer::readInt (void)
{
- int c =0;
int i =0;
int s =1;
char ch=getPB();
@@ -259,7 +258,6 @@ int pushBackBuffer::readInt (void)
i += (int)(ch-'0');
}
ch = getPB();
- c++;
}
if (ch != putPB(ch)) {
ERROR("assert failed");
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit