Hi,
I am getting following compiler error with gcc-4.6.
/tmp/DCMTK/dcmimgle/include/dcmtk/dcmimgle/discalet.h:189:48: error:
uninitialized const ‘rep’ [-fpermissive]
Here is the code which causes the error:
175
176 /** check whether template type T is signed or not
177 *
178 ** @return true if signed, false otherwise
179 */
180 inline int isSigned() const
181 {
182 const DiPixelRepresentationTemplate<T> rep;
183 return rep.isSigned();
184 }
http://git.dcmtk.org/web?p=dcmtk.git;a= ... ;hb=master
With the following workaround the compiler error disappears. Is this the right thing to do?
- const DiPixelRepresentationTemplate<T> rep;
+ DiPixelRepresentationTemplate<T> rep;
Thanks
Dominique
compiler error with gcc-4.6
Moderator: Moderator Team
-
- DCMTK Developer
- Posts: 2507
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
-
- DCMTK Developer
- Posts: 2507
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
Do you mean this commit? According to the log, it is part of DCMTK 3.6.0!
Who is online
Users browsing this forum: No registered users and 1 guest