|
From: Antonio C. <ant...@gm...> - 2011-06-01 15:14:09
|
you should select carefully what type of warnings to disable in this way. in my example i turned off warnings only for unused variables and parameters that in general should not pose any serious threat to your code (in fact i cannot imagine an example in which such approach would fail, do you have one? i'd really be interested). antonio On Wed, Jun 1, 2011 at 4:28 PM, Roy Stogner <roy...@ic...> wrote: > > On Wed, 1 Jun 2011, Derek Gaston wrote: > >> 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? > > That sounds like a pretty nice idea. Even after going so far as to > edit my local MPI headers, I haven't gotten around to doing the same > for (different problems in) the VTK headers... > > I'd worry a bit about disabling warnings this way, though. If you're > instantiating a template or a macro that's defined in a header, for > instance, and there's something wrong with your instantiation, does > disabling warnings for the header also disable the warning about your > own mistake? > --- > Roy > |