Commits

Satish Balay committed 52b409b

freebsd: Add back PETSC_UNUSED - but reformat to prevent gcc warning

/home/balay/petsc.test/src/ts/examples/tutorials/ex10.c: In function 'PetscErrorCode RDIJacobian_FE(TS, PetscReal, Vec, Vec, PetscReal, _p_Mat**, _p_Mat**, MatStructure*, void*)':
/home/balay/petsc.test/src/ts/examples/tutorials/ex10.c:711:36: warning: ignoring attributes applied to 'std::complex<double>' after definition [-Wattributes]

Comments (0)

Files changed (1)

src/ts/examples/tutorials/ex10.c

     rc[0] = i; rc[1] = i+1;
     ierr  = PetscMemzero(K,sizeof(K));CHKERRQ(ierr);
     for (q=0; q<nq; q++) {
-      PetscScalar D_R,rad;
+      PetscScalar D_R;
+      PetscScalar PETSC_UNUSED rad;
       RDNode      n,nx,nt,ntx,drad,dD_R,dxD_R,dEm;
       RDEvaluate(interp,deriv,q,x,i,&n,&nx);
       RDEvaluate(interp,deriv,q,xdot,i,&nt,&ntx);