From: Mathieu Malaterre Date: Tue, 23 Nov 2021 07:14:00 +0000 (+0100) Subject: d/patches: Fix compilation of dicomscope. Closes: #1000220 X-Git-Tag: archive/raspbian/3.6.9-4+rpi1^2~118 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=48c24b0f258b9503053b0583ce4c7cf84427c72c;p=dcmtk.git d/patches: Fix compilation of dicomscope. Closes: #1000220 --- diff --git a/debian/patches/bug1000220.patch b/debian/patches/bug1000220.patch new file mode 100644 index 00000000..68c27ac5 --- /dev/null +++ b/debian/patches/bug1000220.patch @@ -0,0 +1,44 @@ +From 8f6c9ba05eb146310a6325fb8ab18dfb14c1a291 Mon Sep 17 00:00:00 2001 +From: Joerg Riesmeier +Date: Mon, 22 Nov 2021 18:54:35 +0100 +Subject: [PATCH] Replaced OFListIterator by OFListConstIterator. + +Replaced type of iterator variable to OFListConstIterator to avoid +compiler errors reported by gcc when compiling DICOMscope with STL +and C++14 support enabled. + +Thanks to GitHub user "malaterre" for the report and suggested fix. +--- + dcmsr/include/dcmtk/dcmsr/dsrtlist.h | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/dcmsr/include/dcmtk/dcmsr/dsrtlist.h b/dcmsr/include/dcmtk/dcmsr/dsrtlist.h +index 5ec109aca..31759b851 100644 +--- a/dcmsr/include/dcmtk/dcmsr/dsrtlist.h ++++ b/dcmsr/include/dcmtk/dcmsr/dsrtlist.h +@@ -1,6 +1,6 @@ + /* + * +- * Copyright (C) 2000-2018, OFFIS e.V. ++ * Copyright (C) 2000-2021, OFFIS e.V. + * All rights reserved. See COPYRIGHT file for details. + * + * This software and supporting documentation were developed by +@@ -282,7 +282,7 @@ template class DSRListOfItems + ItemList.push_back(item); + result = EC_Normal; + } else { +- OFLIST_TYPENAME OFListIterator(T) iterator = ItemList.begin(); ++ OFLIST_TYPENAME OFListConstIterator(T) iterator = ItemList.begin(); + if (gotoItemPos(idx, iterator)) + { + ItemList.insert(iterator, 1, item); +@@ -299,7 +299,7 @@ template class DSRListOfItems + OFCondition removeItem(const size_t idx) + { + OFCondition result = EC_IllegalParameter; +- OFLIST_TYPENAME OFListIterator(T) iterator = ItemList.begin(); ++ OFLIST_TYPENAME OFListConstIterator(T) iterator = ItemList.begin(); + if (gotoItemPos(idx, iterator)) + { + ItemList.erase(iterator); diff --git a/debian/patches/series b/debian/patches/series index 01b30684..2b398ace 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -2,3 +2,4 @@ 03_datadic_install.patch 07_dont_export_all_executables.patch bigendian.patch +bug1000220.patch