[LyX/master] Fix unused variable compiler warning
Scott Kostyshak
skostysh at lyx.org
Sat Jul 11 12:09:26 UTC 2026
commit dbcfc22854e9bfc772710ca346f708243fba92c9
Author: Scott Kostyshak <skostysh at lyx.org>
Date: Sat Jul 11 14:07:32 2026 +0200
Fix unused variable compiler warning
src/Buffer.cpp:3184:7: error: variable 'counted' set but not used [-Werror,-Wunused-but-set-variable]
3184 | int counted = 0;
| ^
1 error generated.
Amends e0dd8db6.
---
src/Buffer.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/Buffer.cpp b/src/Buffer.cpp
index 9c301c36d9..8ccaac1c96 100644
--- a/src/Buffer.cpp
+++ b/src/Buffer.cpp
@@ -3181,14 +3181,14 @@ void Buffer::dispatch(FuncRequest const & func, DispatchResult & dr)
ForkedCallQueue::setMaxRunning(convert<int>(arg));
}
bufs.push_front(this);
- int counted = 0;
+ // int counted = 0;
for (Buffer * b : bufs) {
InsetIterator it = begin(b->inset());
InsetIterator const itend = end(b->inset());
for (; it != itend; ++it) {
if (it->lyxCode() == GRAPHICS_CODE) {
static_cast<InsetGraphics const &>(*it).preload();
- ++counted;
+ // ++counted;
}
}
}
More information about the lyx-cvs
mailing list