[petsc-dev] Simplifying PETSc Debugging in Totalview

Barry Smith bsmith at mcs.anl.gov
Thu Jul 1 18:58:03 CDT 2010


  Ok, but you know the PETSc/Bill Gropp rule. ./configure has to determine if __attribute((unused)) exists and then define PETSC_UNUSED. It cannot be done with a #ifdef __GNUC__ :-)

   Barry

On Jul 1, 2010, at 5:01 PM, Jed Brown wrote:

> On Thu, Jul 1, 2010 at 15:56, Barry Smith <bsmith at mcs.anl.gov> wrote:
>  Don't have a good cure for this.
> 
> Not sure if this counts as "good", but
> 
> #ifdef __GNUC__
> #  define PETSC_UNUSED __attribute((unused))
> #else
> #  define PETSC_UNUSED
> #endif
> 
> 
> PETSC_UNUSED static int TV_display_type(const struct _p_Vec *v)
> { ... }
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20100701/32cb49de/attachment.html>


More information about the petsc-dev mailing list