summaryrefslogtreecommitdiff
path: root/indi-3rdparty-2.2.1.1-unused_variables.patch
blob: 19493e04d8794427df5a7e851973cfa00be28383 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
diff -u -r indi-3rdparty-2.2.1.1/libpktriggercord/src/pktriggercord-cli.c indi-3rdparty-2.2.1.1-ing/libpktriggercord/src/pktriggercord-cli.c
--- indi-3rdparty-2.2.1.1/libpktriggercord/src/pktriggercord-cli.c	2026-04-23 21:37:33.000000000 +0000
+++ indi-3rdparty-2.2.1.1-ing/libpktriggercord/src/pktriggercord-cli.c	2026-05-14 19:48:54.066000000 +0000
@@ -124,7 +124,6 @@
     pslr_buffer_type imagetype;
     uint8_t buf[65536];
     uint32_t length;
-    uint32_t current;
 
     if (filefmt == USER_FILE_FORMAT_PEF) {
         imagetype = PSLR_BUF_PEF;
@@ -142,7 +141,6 @@
 
     length = pslr_buffer_get_size(camhandle);
     DPRINT("Buffer length: %d\n", length);
-    current = 0;
 
     while (true) {
         uint32_t bytes;
@@ -158,7 +156,6 @@
         } else if ((uint32_t)r < bytes) {
             DPRINT("write(buf): only write %zu bytes, should be %d bytes.\n", r, bytes);
         }
-        current += bytes;
     }
     pslr_buffer_close(camhandle);
     return 0;
diff -u -r indi-3rdparty-2.2.1.1/libpktriggercord/src/pktriggercord-servermode.c indi-3rdparty-2.2.1.1-ing/libpktriggercord/src/pktriggercord-servermode.c
--- indi-3rdparty-2.2.1.1/libpktriggercord/src/pktriggercord-servermode.c	2026-04-23 21:37:33.000000000 +0000
+++ indi-3rdparty-2.2.1.1-ing/libpktriggercord/src/pktriggercord-servermode.c	2026-05-14 19:37:56.215950378 +0000
@@ -344,7 +344,6 @@
                         imageSize = pslr_buffer_get_size(camhandle);
                         sprintf(buf, "%d %d\n", 0, imageSize);
                         write_socket_answer(buf);
-                        uint32_t current = 0;
                         while (1) {
                             uint32_t bytes;
                             uint8_t buf[65536];
@@ -353,7 +352,6 @@
                                 break;
                             }
                             write_socket_answer_bin( buf, bytes);
-                            current += bytes;
                         }
                         pslr_buffer_close(camhandle);
                     }
diff -u -r indi-3rdparty-2.2.1.1/libpktriggercord/src/pslr.c indi-3rdparty-2.2.1.1-ing/libpktriggercord/src/pslr.c
--- indi-3rdparty-2.2.1.1/libpktriggercord/src/pslr.c	2026-04-23 21:37:33.000000000 +0000
+++ indi-3rdparty-2.2.1.1-ing/libpktriggercord/src/pslr.c	2026-05-14 19:37:56.216000000 +0000
@@ -1002,7 +1002,6 @@
     DPRINT("[C]\tpslr_buffer_open(#%X, type=%X, res=%X)\n", bufno, buftype, bufres);
     pslr_buffer_segment_info info;
     uint16_t bufs;
-    uint32_t buf_total = 0;
     int i, j;
     int ret;
     int retry = 0;
@@ -1063,7 +1062,6 @@
             j++;
         }
         CHECK(ipslr_next_segment(p));
-        buf_total += info.length;
         i++;
     } while (i < 9 && info.b != 2);
     p->segment_count = j;
diff -u -r indi-3rdparty-2.2.1.1/libqsi/SimpleIni.h indi-3rdparty-2.2.1.1-ing/libqsi/SimpleIni.h
--- indi-3rdparty-2.2.1.1/libqsi/SimpleIni.h	2026-04-23 21:37:33.000000000 +0000
+++ indi-3rdparty-2.2.1.1-ing/libqsi/SimpleIni.h	2026-05-14 19:37:56.216748395 +0000
@@ -1809,8 +1809,7 @@
 void
 CSimpleIniTempl<SI_CHAR,SI_STRLESS,SI_CONVERTER>::GetAllSections( TNamesDepend & a_names  ) const
 {
-    typename TSection::const_iterator i = m_data.begin();
-    for (int n = 0; i != m_data.end(); ++i, ++n ) 
+    for (typename TSection::const_iterator i = m_data.begin(); i != m_data.end(); ++i) 
 	{
         a_names.push_back(i->first);
     }
@@ -1833,13 +1832,12 @@
 
     const TKeyVal & section = iSection->second;
     const SI_CHAR * pLastKey = NULL;
-    typename TKeyVal::const_iterator iKeyVal = section.begin();
-    for (int n = 0; iKeyVal != section.end(); ++iKeyVal, ++n ) 
+    for (typename TKeyVal::const_iterator i = section.begin(); i != section.end(); ++i ) 
 	{
-        if (!pLastKey || IsLess(pLastKey, iKeyVal->first.pItem)) 
+        if (!pLastKey || IsLess(pLastKey, i->first.pItem)) 
 		{
-            a_names.push_back(iKeyVal->first);
-            pLastKey = iKeyVal->first.pItem;
+            a_names.push_back(i->first);
+            pLastKey = i->first.pItem;
         }
     }
 }