Skip to content

Commit 8db96a6

Browse files
committed
Avoid warning on unused variable.
Avoid warning on unused variable when compiled without character set conversion support.
1 parent 3ee7c15 commit 8db96a6

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

dcmsr/apps/dsr2html.cc

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
*
3-
* Copyright (C) 2000-2024, OFFIS e.V.
3+
* Copyright (C) 2000-2025, OFFIS e.V.
44
* All rights reserved. See COPYRIGHT file for details.
55
*
66
* This software and supporting documentation were developed by
@@ -207,7 +207,9 @@ int main(int argc, char *argv[])
207207
E_FileReadMode opt_readMode = ERM_autoDetect;
208208
E_TransferSyntax opt_ixfer = EXS_Unknown;
209209
OFBool opt_checkAllStrings = OFFalse;
210+
#ifdef DCMTK_ENABLE_CHARSET_CONVERSION
210211
OFBool opt_convertToUTF8 = OFFalse;
212+
#endif
211213

212214
OFConsoleApplication app(OFFIS_CONSOLE_APPLICATION, "Render DICOM SR file and data set to HTML/XHTML", rcsid);
213215
OFCommandLine cmd;

dcmsr/apps/dsrdump.cc

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
*
3-
* Copyright (C) 2000-2023, OFFIS e.V.
3+
* Copyright (C) 2000-2025, OFFIS e.V.
44
* All rights reserved. See COPYRIGHT file for details.
55
*
66
* This software and supporting documentation were developed by
@@ -106,7 +106,9 @@ int main(int argc, char *argv[])
106106
OFBool opt_printFilename = OFFalse;
107107
E_FileReadMode opt_readMode = ERM_autoDetect;
108108
E_TransferSyntax opt_ixfer = EXS_Unknown;
109+
#ifdef DCMTK_ENABLE_CHARSET_CONVERSION
109110
OFBool opt_convertToUTF8 = OFFalse;
111+
#endif
110112

111113
OFConsoleApplication app(OFFIS_CONSOLE_APPLICATION, "Dump DICOM SR file and data set", rcsid);
112114
OFCommandLine cmd;

0 commit comments

Comments
 (0)