Very cool.... do we need something like a LIBMESH_INCLUDE_NO_WARN_BEGIN and LIBMESH_INCLUDE_NO_WARN_END that could be set to compiler specific #pragmas at configure time?
Derek On Jun 1, 2011, at 8:11 AM, Antonio Cervone wrote: > 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 <[email protected]> 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 >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/libmesh-users >> >> ------------------------------------------------------------------------------ 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 [email protected] https://lists.sourceforge.net/lists/listinfo/libmesh-users
