[Insight-developers] Help Silencing warnings in gdcmDataSet
David Cole
david.cole at kitware.com
Fri Aug 5 10:25:39 EDT 2011
So the fix is simply to delete those variables from the code in ITK.
(And propagate that fix upstream to GDCM if they want it...)
On Fri, Aug 5, 2011 at 10:15 AM, Arnaud Gelas
<arnaud_gelas at hms.harvard.edu> wrote:
> These warnings show up with gcc 4.6 on linux with the gdcm provided in
> ITK...
> -Wunused-but-set-variable is now a default when using -Wall (or -Wextra)
> with gcc 4.6
>
> Arnaud
>
> On Aug 5, 2011, at 10:10 AM, David Cole wrote:
>
>> If it's the system version then why does the warning report a path
>> that begins with "ITK/Modules/ThirdParty/GDCM/src/gdcm" ... ?
>>
>>
>> On Fri, Aug 5, 2011 at 9:58 AM, Johnson, Hans J <hans-johnson at uiowa.edu>
>> wrote:
>>>
>>> Drew,
>>> I think that machine is using the system version of GDCM. The owner
>>> would
>>> have to fix the system version of GDCM.
>>>
>>> Hans
>>>
>>> From: Drew Wasem <drewwasem at gmail.com>
>>> Date: Fri, 5 Aug 2011 13:50:37 +0200
>>> To: ITK <insight-developers at itk.org>
>>> Subject: [Insight-developers] Help Silencing warnings in gdcmDataSet
>>>
>>> Hi All,
>>> I would like to silence two warnings coming from a Linux machine. I have
>>> not
>>> been able to reproduce the warnings on Mac and I have reviewed the code
>>> and
>>> it is correct as far as I can see. How do I go about silencing these
>>> warnings?
>>> Thank you,
>>> Drew Wasem
>>>
>>> ITK/Modules/ThirdParty/GDCM/src/gdcm/Source/DataStructureAndEncodingDefinition/gdcmDataSet.h:276:30:
>>> warning: variable 'pr' set but not used [-Wunused-but-set-variable]
>>>
>>> ITK/Modules/ThirdParty/GDCM/src/gdcm/Source/DataStructureAndEncodingDefinition/gdcmDataSet.h:119:10:
>>> warning: variable 'len' set but not used [-Wunused-but-set-variable]
>>>
>>> [-Wunused-variable] for mac
>>>
>>> --
>>> Drew Wasem
>>> R&D Engineer
>>> CoSMo Software Inc.
>>> 508-237-2379
>>> _______________________________________________ Powered by
>>> www.kitware.com
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html Kitware offers ITK
>>> Training Courses, for more information visit:
>>> http://kitware.com/products/protraining.html Please keep messages
>>> on-topic
>>> and check the ITK FAQ at: http://www.itk.org/Wiki/ITK_FAQ Follow this
>>> link
>>> to subscribe/unsubscribe:
>>> http://www.itk.org/mailman/listinfo/insight-developers
>>>
>>> ________________________________
>>> Notice: This UI Health Care e-mail (including attachments) is covered by
>>> the
>>> Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is
>>> confidential
>>> and may be legally privileged. If you are not the intended recipient,
>>> you
>>> are hereby notified that any retention, dissemination, distribution, or
>>> copying of this communication is strictly prohibited. Please reply to
>>> the
>>> sender that you have received the message in error, then delete it.
>>> Thank
>>> you.
>>> ________________________________
>>> _______________________________________________
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Kitware offers ITK Training Courses, for more information visit:
>>> http://kitware.com/products/protraining.html
>>>
>>> Please keep messages on-topic and check the ITK FAQ at:
>>> http://www.itk.org/Wiki/ITK_FAQ
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://www.itk.org/mailman/listinfo/insight-developers
>>>
>>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Kitware offers ITK Training Courses, for more information visit:
>> http://kitware.com/products/protraining.html
>>
>> Please keep messages on-topic and check the ITK FAQ at:
>> http://www.itk.org/Wiki/ITK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.itk.org/mailman/listinfo/insight-developers
>
>
More information about the Insight-developers
mailing list