[vte] sixel: Fix unused variable warning when not building with sixel enabled
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] sixel: Fix unused variable warning when not building with sixel enabled
- Date: Sun, 25 Oct 2020 21:25:38 +0000 (UTC)
commit c112ac02caa628e65d3255837db0b5944d26c1b7
Author: Christian Persch <chpe src gnome org>
Date: Sun Oct 25 22:25:30 2020 +0100
sixel: Fix unused variable warning when not building with sixel enabled
src/vteseq.cc | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/vteseq.cc b/src/vteseq.cc
index ecdc6974..ac9c4993 100644
--- a/src/vteseq.cc
+++ b/src/vteseq.cc
@@ -8763,7 +8763,6 @@ Terminal::XTERM_SMGRAPHICS(vte::parser::Sequence const& seq)
*/
auto const attr = seq.collect1(0);
- auto const what = seq.collect1(1);
auto status = 3, rv0 = -2, rv1 = -2;
switch (attr) {
@@ -8774,7 +8773,7 @@ Terminal::XTERM_SMGRAPHICS(vte::parser::Sequence const& seq)
* return the fixed number, and set() returns success iff the passed number
* was less or equal that number.
*/
- switch (what) {
+ switch (seq.collect1(1)) {
case 1: /* read */
case 2: /* reset */
case 4: /* read maximum */
@@ -8798,7 +8797,7 @@ Terminal::XTERM_SMGRAPHICS(vte::parser::Sequence const& seq)
* the maximum size of a SIXEL graphic, and set() returns success iff the
* passed numbers are less or equal to that number.
*/
- switch (what) {
+ switch (seq.collect1(1)) {
case 1: /* read */
case 2: /* reset */
case 4: /* read maximum */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]