Comments (8)
@aghayoor Please try to fix these warnings. We don't have a compiler that issues these warnings, so you will have to to it a bit blind.
Hans
from brainstools.
Which compiler are you using ?
I am using the one coming with Ubuntu 13.10 ...
$ g++ --version
g++ (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1
On Fri, Aug 1, 2014 at 12:26 PM, hjmjohnson [email protected]
wrote:
@aghayoor https://github.com/aghayoor Please try to fix these warnings.
We don't have a compiler that issues these warnings, so you will have to to
it a bit blind.Hans
—
Reply to this email directly or view it on GitHub
#132 (comment)
.
+1 919 869 8849
from brainstools.
We’re standardized on Red Hat Enterprise Linux for all our real servers/workstations. I’ll investigate getting a VM running with ubuntu 13.10… 4.8.1 isn’t quite bleeding edge. I’d maybe wait on 4.9 except for experimenting:
http://www.phoronix.com/scan.php?page=news_item&px=MTc1MDQ
From: Jean-Christophe Fillion-Robin <[email protected]mailto:[email protected]>
Reply-To: BRAINSia/BRAINSTools <[email protected]mailto:[email protected]>
Date: Friday, August 1, 2014 at 11:46 AM
To: BRAINSia/BRAINSTools <[email protected]mailto:[email protected]>
Subject: Re: [BRAINSTools] Fix shadow warnings (#132)
Which compiler are you using ?
I am using the one coming with Ubuntu 13.10 ...
$ g++ --version
g++ (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1
On Fri, Aug 1, 2014 at 12:26 PM, hjmjohnson <[email protected]mailto:[email protected]>
wrote:
@aghayoor https://github.com/aghayoor Please try to fix these warnings.
We don't have a compiler that issues these warnings, so you will have to to
it a bit blind.Hans
—
Reply to this email directly or view it on GitHub
#132 (comment)
.
+1 919 869 8849
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/132#issuecomment-50907262.
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.
from brainstools.
These will only show up in 4.8 gcc. They turned this wanting back off I. 4.9 I think. ITK had similar issues.
Sent from my iPhone
On Aug 1, 2014, at 11:46 AM, Jean-Christophe Fillion-Robin [email protected] wrote:
Which compiler are you using ?
I am using the one coming with Ubuntu 13.10 ...
$ g++ --version g++ (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1
On Fri, Aug 1, 2014 at 12:26 PM, hjmjohnson [email protected]
wrote:@aghayoor https://github.com/aghayoor Please try to fix these warnings.
We don't have a compiler that issues these warnings, so you will have to to
it a bit blind.Hans
—
Reply to this email directly or view it on GitHub
#132 (comment)
.+1 919 869 8849
—
Reply to this email directly or view it on GitHub.
from brainstools.
I think you are talking about "Wunused-local-*typedefs" * flag. And
they all have been fixed in ITK/Slicer .. this allows to keep you code
readable.
Regarding the shadow, the warning in 4.8 are most useful .. if I understand
well they now report what could a real issue:
From https://gcc.gnu.org/gcc-4.8/changes.html:
- The option -Wshadow no longer warns if a declaration shadows a
function declaration, unless the former declares a function or pointer to
function, because this is a common and valid case in real-world code
https://lkml.org/lkml/2006/11/28/239.
On Fri, Aug 1, 2014 at 3:10 PM, hjmjohnson [email protected] wrote:
These will only show up in 4.8 gcc. They turned this wanting back off I.
4.9 I think. ITK had similar issues.Sent from my iPhone
On Aug 1, 2014, at 11:46 AM, Jean-Christophe Fillion-Robin <
[email protected]> wrote:Which compiler are you using ?
I am using the one coming with Ubuntu 13.10 ...
$ g++ --version g++ (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1
On Fri, Aug 1, 2014 at 12:26 PM, hjmjohnson [email protected]
wrote:@aghayoor https://github.com/aghayoor Please try to fix these
warnings.
We don't have a compiler that issues these warnings, so you will have
to to
it a bit blind.Hans
—
Reply to this email directly or view it on GitHub
<
https://github.com/BRAINSia/BRAINSTools/issues/132#issuecomment-50904829>
.+1 919 869 8849
—
Reply to this email directly or view it on GitHub.—
Reply to this email directly or view it on GitHub
#132 (comment)
.
+1 919 869 8849
from brainstools.
Kent Please take care of this issue when you return on Thursday.
Hans
from brainstools.
Fixed in f00678a
from brainstools.
@Chaircrusher Thanks for working on this.
There are few more:
In file included from /home/jchris/Projects/Slicer-2-SuperBuild-Debug/BRAINSTools/BRAINSCommonLib/GenericTransformImage.h:196:0,
from /home/jchris/Projects/Slicer-2-SuperBuild-Debug/BRAINSTools/BRAINSCommonLib/genericRegistrationHelper.hxx:39,
from /home/jchris/Projects/Slicer-2-SuperBuild-Debug/BRAINSTools/BRAINSCommonLib/genericRegistrationHelper.h:559,
from /home/jchris/Projects/Slicer-2-SuperBuild-Debug/BRAINSTools/BRAINSCommonLib/BRAINSFitHelperTemplate.h:63,
from /home/jchris/Projects/Slicer-2-SuperBuild-Debug/BRAINSTools/BRAINSCommonLib/BRAINSFitHelper.h:43,
from /home/jchris/Projects/Slicer-2-SuperBuild-Debug/BRAINSTools/BRAINSCommonLib/BRAINSFitHelper.cxx:21:
/home/jchris/Projects/Slicer-2-SuperBuild-Debug/BRAINSTools/BRAINSCommonLib/GenericTransformImage.hxx: In instantiation of ‘typename OutputImageType::Pointer GenericTransformImage(const InputImageType*, const itk::ImageBase<TImage:: ImageDimension>*, itk::Transform<double, 3u, 3u>::Pointer, typename InputImageType::PixelType, const string&, bool) [with InputImageType = itk::Image<float, 3u>; OutputImageType = itk::Image<float, 3u>; DisplacementImageType = itk::Image<itk::Vector<float, 3u>, 3u>; typename OutputImageType::Pointer = itk::SmartPointer<itk::Image<float, 3u> >; itk::Transform<double, 3u, 3u>::Pointer = itk::SmartPointer<itk::Transform<double, 3u, 3u> >; typename InputImageType::PixelType = float; std::string = std::basic_string<char>]’:
/home/jchris/Projects/Slicer-2-SuperBuild-Debug/BRAINSTools/BRAINSCommonLib/BRAINSFitHelperTemplate.hxx:1386:84: required from ‘void itk::BRAINSFitHelperTemplate<FixedImageType, MovingImageType>::Update() [with FixedImageType = itk::Image<float, 3u>; MovingImageType = itk::Image<float, 3u>]’
/home/jchris/Projects/Slicer-2-SuperBuild-Debug/BRAINSTools/BRAINSCommonLib/BRAINSFitHelper.h:446:20: required from ‘void itk::BRAINSFitHelper::RunRegistration() [with TLocalCostMetric = itk::MattesMutualInformationImageToImageMetricv4<itk::Image<float, 3u>, itk::Image<float, 3u>, itk::Image<float, 3u>, double, itk::DefaultImageToImageMetricTraitsv4<itk::Image<float, 3u>, itk::Image<float, 3u>, itk::Image<float, 3u>, double> >]’
/home/jchris/Projects/Slicer-2-SuperBuild-Debug/BRAINSTools/BRAINSCommonLib/BRAINSFitHelper.cxx:322:43: required from here
/home/jchris/Projects/Slicer-2-SuperBuild-Debug/BRAINSTools/BRAINSCommonLib/GenericTransformImage.hxx:343:54: warning: declaration of ‘VersorRigid3DTransformType’ shadows a global declaration [-Wshadow]
typedef itk::VersorRigid3DTransform<double> VersorRigid3DTransformType;
^
In file included from /home/jchris/Projects/Slicer-2-SuperBuild-Debug/BRAINSTools/BRAINSCommonLib/BRAINSFitHelper.cxx:20:0:
/home/jchris/Projects/Slicer-2-SuperBuild-Debug/BRAINSTools/BRAINSCommonLib/BRAINSFitUtils.h:47:58: warning: shadowed declaration is here [-Wshadow]
typedef itk::VersorRigid3DTransform<double> VersorRigid3DTransformType;
^
[ 9%] Built target CreateDICOMSeries
[ 9%] Built target CLIROITestLib
In file included from /home/jchris/Projects/Slicer-2-SuperBuild-Debug/BRAINSTools/BRAINSCommonLib/GenericTransformImage.h:196:0,
from /home/jchris/Projects/Slicer-2-SuperBuild-Debug/BRAINSTools/BRAINSCommonLib/genericRegistrationHelper.hxx:39,
from /home/jchris/Projects/Slicer-2-SuperBuild-Debug/BRAINSTools/BRAINSCommonLib/genericRegistrationHelper.h:559,
from /home/jchris/Projects/Slicer-2-SuperBuild-Debug/BRAINSTools/BRAINSCommonLib/BRAINSFitHelperTemplate.h:63,
from /home/jchris/Projects/Slicer-2-SuperBuild-Debug/BRAINSTools/BRAINSCommonLib/BRAINSFitHelper.h:43,
from /home/jchris/Projects/Slicer-2-SuperBuild-Debug/BRAINSTools/BRAINSCommonLib/BRAINSFitHelper.cxx:21:
/home/jchris/Projects/Slicer-2-SuperBuild-Debug/BRAINSTools/BRAINSCommonLib/GenericTransformImage.hxx: In instantiation of ‘typename OutputImageType::Pointer GenericTransformImage(const InputImageType*, const itk::ImageBase<TImage:: ImageDimension>*, itk::Transform<double, 3u, 3u>::Pointer, typename InputImageType::PixelType, const string&, bool) [with InputImageType = itk::Image<unsigned char, 3u>; OutputImageType = itk::Image<unsigned char, 3u>; DisplacementImageType = itk::Image<itk::Vector<float, 3u>, 3u>; typename OutputImageType::Pointer = itk::SmartPointer<itk::Image<unsigned char, 3u> >; itk::Transform<double, 3u, 3u>::Pointer = itk::SmartPointer<itk::Transform<double, 3u, 3u> >; typename InputImageType::PixelType = unsigned char; std::string = std::basic_string<char>]’:
/home/jchris/Projects/Slicer-2-SuperBuild-Debug/BRAINSTools/BRAINSCommonLib/BRAINSFitHelperTemplate.hxx:1406:88: required from ‘void itk::BRAINSFitHelperTemplate<FixedImageType, MovingImageType>::Update() [with FixedImageType = itk::Image<float, 3u>; MovingImageType = itk::Image<float, 3u>]’
/home/jchris/Projects/Slicer-2-SuperBuild-Debug/BRAINSTools/BRAINSCommonLib/BRAINSFitHelper.h:446:20: required from ‘void itk::BRAINSFitHelper::RunRegistration() [with TLocalCostMetric = itk::MattesMutualInformationImageToImageMetricv4<itk::Image<float, 3u>, itk::Image<float, 3u>, itk::Image<float, 3u>, double, itk::DefaultImageToImageMetricTraitsv4<itk::Image<float, 3u>, itk::Image<float, 3u>, itk::Image<float, 3u>, double> >]’
/home/jchris/Projects/Slicer-2-SuperBuild-Debug/BRAINSTools/BRAINSCommonLib/BRAINSFitHelper.cxx:322:43: required from here
/home/jchris/Projects/Slicer-2-SuperBuild-Debug/BRAINSTools/BRAINSCommonLib/GenericTransformImage.hxx:343:54: warning: declaration of ‘VersorRigid3DTransformType’ shadows a global declaration [-Wshadow]
typedef itk::VersorRigid3DTransform<double> VersorRigid3DTransformType;
^
In file included from /home/jchris/Projects/Slicer-2-SuperBuild-Debug/BRAINSTools/BRAINSCommonLib/BRAINSFitHelper.cxx:20:0:
/home/jchris/Projects/Slicer-2-SuperBuild-Debug/BRAINSTools/BRAINSCommonLib/BRAINSFitUtils.h:47:58: warning: shadowed declaration is here [-Wshadow]
typedef itk::VersorRigid3DTransform<double> VersorRigid3DTransformType;
from brainstools.
Related Issues (20)
- International conversion of string values to double (or int)
- Review population based template building. HOT 2
- DWIConvert fails with coronal DICOMs
- BRAINSTools build fails to properly configure TBB HOT 3
- Build issue related to MultiThreaderBase.h HOT 9
- Warning: #define main ModuleEntryPoint (-fvar-tracking-assignments)
- DWIConvert absent in build/bin HOT 3
- Problem with script hierarchy using Sphinx
- Problems accessing scripts using Sphinx
- Problems autodocumenting scripts using Sphinx
- Bug: inputLandmarkFiles.size() >= 2 instead of >2 ? HOT 2
- Missing 'from collection import OrderedDict'?
- interpolator type issue (was: can't use transform template in ITK5) HOT 4
- DWIConvert converts UINT16 as INT16
- BCD: Error during Reading in external files HOT 1
- GTRACT command line Slicer 4.10. HOT 1
- Float output type required for updated itk::SignedMaurerDistanceMapImageFilter
- Fix GH-PAGES
- problems with installation HOT 1
- Clarify CLI module paramter description
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from brainstools.