From 6b767db126f161e6c3d100ce1950a63f12841850 Mon Sep 17 00:00:00 2001 From: Ingar Date: Thu, 14 May 2026 19:56:10 +0000 Subject: Updated to v2.2.1.1. Moved Cmake configure step to the PKGBUILD prepare() function. This makes makepkg -e happy. --- indi-3rdparty-2.2.1.1-unused_variables.patch | 96 ++++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 indi-3rdparty-2.2.1.1-unused_variables.patch (limited to 'indi-3rdparty-2.2.1.1-unused_variables.patch') diff --git a/indi-3rdparty-2.2.1.1-unused_variables.patch b/indi-3rdparty-2.2.1.1-unused_variables.patch new file mode 100644 index 0000000..19493e0 --- /dev/null +++ b/indi-3rdparty-2.2.1.1-unused_variables.patch @@ -0,0 +1,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::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; + } + } + } -- cgit v1.2.3