|
From: Antonio C. <ant...@gm...> - 2011-06-01 14:11:53
|
you can specity to gcc that warnings coming from outside library should be ignored wrapping the include in a pragma // Tell the compiler to ignore specific kind of warnings: #pragma GCC diagnostic ignored "-Wunused-variable" #pragma GCC diagnostic ignored "-Wunused-parameter" #include <mpicxx.h> // Restore compiler warnings: #pragma GCC diagnostic warning "-Wunused-variable" #pragma GCC diagnostic warning "-Wunused-parameter" instead of editing the external library. Antonio On Wed, Jun 1, 2011 at 3:59 PM, Roy Stogner <roy...@ic...> wrote: > > On Tue, 31 May 2011, Kyunghoon Lee wrote: > >> /opt/local/include/mpicxx.h:386: warning: unused parameter ‘oldtype’ >> /opt/local/include/mpicxx.h:386: warning: unused parameter ‘keyval’ >> /opt/local/include/mpicxx.h:386: warning: unused parameter ‘ex’ >> /opt/local/include/mpicxx.h:386: warning: unused parameter ‘attr_in’ >> /opt/local/include/mpicxx.h:386: warning: unused parameter ‘attr_out’ > > And these warnings pop up for effectively every libMesh object build, > too - aren't they annoying? > > The default MPI stack in Ubuntu has the same issues in its headers. > These warnings don't indicate any problem more serious than "those > developers didn't worry about checking and disabling gcc warnings", > but I ended up editing the file (commenting out the legitimately > unused parameter names in the declaration headers) so that any libMesh > and/or application warnings wouldn't be buried in noise. > --- > Roy > ------------------------------------------------------------------------------ > Simplify data backup and recovery for your virtual environment with vRanger. > Installation's a snap, and flexible recovery options mean your data is safe, > secure and there when you need it. Data protection magic? > Nope - It's vRanger. Get your free trial download today. > http://p.sf.net/sfu/quest-sfdev2dev > _______________________________________________ > Libmesh-users mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libmesh-users > > |