<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div>  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__ :-)<div><br></div><div>   Barry</div><div><br><div><div>On Jul 1, 2010, at 5:01 PM, Jed Brown wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">On Thu, Jul 1, 2010 at 15:56, Barry Smith <span dir="ltr"><<a href="mailto:bsmith@mcs.anl.gov">bsmith@mcs.anl.gov</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"> Don't have a good cure for this.</div></blockquote><div><br></div><div>Not sure if this counts as "good", but</div><div><br></div><div>#ifdef __GNUC__</div></div><div>#  define PETSC_UNUSED __attribute((unused))</div>
<div>#else</div><div>#  define PETSC_UNUSED</div><div>#endif</div><div><br></div><div><br></div><div>PETSC_UNUSED static int TV_display_type(const struct _p_Vec *v)</div><div>{ ... }</div><div><br></div><div><br></div>
</blockquote></div><br></div></body></html>