On Fri, Dec 21, 2012 at 10:22 AM, Kirk, Benjamin (JSC-EG311)
<benjamin.kir...@nasa.gov> wrote:
> On Dec 21, 2012, at 11:20 AM, "Paul T. Bauman" <ptbau...@gmail.com> wrote:
>
>> I don't think such a warning exists. I remember posting something to this 
>> list (maybe 2 years ago? buried in a somewhat unrelated thready I think) 
>> about this. Apparently this is explicitly allowed by the standard.
>
>
> Maybe, but it sure pisses off Oracle's CC, at least:
>
> "src/mesh/nemesis_io_helper.C", line 455: Warning: num_proc hides 
> libMesh::Nemesis_IO_Helper::num_proc.
> "src/mesh/nemesis_io_helper.C", line 456: Warning: num_proc_in_file hides 
> libMesh::Nemesis_IO_Helper::num_proc_in_file.
> "src/mesh/nemesis_io_helper.C", line 457: Warning: ftype hides 
> libMesh::Nemesis_IO_Helper::ftype.
> "src/mesh/nemesis_io_helper.C", line 471: Warning: num_nodes_global hides 
> libMesh::Nemesis_IO_Helper::num_nodes_global.

OK yeah, -Wshadow does catch cases where you declare a local variable
that has the same name as a class variable.

We should probably fix the above!

--
John

------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Libmesh-devel mailing list
Libmesh-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmesh-devel

Reply via email to