[petsc-dev] PETSc blame digest (next) 2015-04-08

Tobin Isaac tisaac at ices.utexas.edu
Wed Apr 8 11:35:13 CDT 2015


On Wed, Apr 08, 2015 at 10:58:41AM -0500, Barry Smith wrote:
> 
>    Jed,
> 
>     These warnings have traditionally been filtered out; the new edition of checkBuilds did not filter them (from Solaris compilers) I asked Toby and Satish to filter them but they ignored me so I can add the filter later today. It is not intended that we change the code to remove the warnings.

That's one account; here's another: the problem is that there used to
be just one filter location (for the dashboard, runhtml.py), and now
we have two.  Ideally, they should use the same filter.

  Toby

> 
>    Barry
> 
> > On Apr 8, 2015, at 9:08 AM, Jed Brown <jed at jedbrown.org> wrote:
> > 
> > PETSc checkBuilds <petsc-checkbuilds at mcs.anl.gov> writes:
> >> warnings attributed to commit ac76247 Point-to-point PetscSF: bcast and reduce, still need fetch-and-op, ref #9
> >> 
> >>  src/vec/is/sf/impls/basic/sfbasic.c:816
> >>    [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/04/08/build_next_arch-opensolaris-cmplx-pkgs-dbg_n-gage.log]
> >>      "/export/home/petsc/petsc.clone-3/src/vec/is/sf/impls/basic/sfbasic.c", line 816: warning: loop not entered at top
> > 
> > How do we fix this?  If I remove the final (unreached)
> > PetscFunctionReturn(0) then the code is invalid when not
> > PETSC_USE_ERRORCHECKING (no return statement in function returning
> > non-void).  But as long as error checking is on, we don't reach that
> > statement.  Can we tune the warning flags to avoid this noise?
> > 
> > static PetscErrorCode PetscSFBasicGetPackInUse(PetscSF sf,MPI_Datatype unit,const void *key,PetscCopyMode cmode,PetscSFBasicPack *mylink)
> > {
> >  PetscSF_Basic    *bas = (PetscSF_Basic*)sf->data;
> >  PetscErrorCode   ierr;
> >  PetscSFBasicPack link,*p;
> > 
> >  PetscFunctionBegin;
> >  /* Look for types in cache */
> >  for (p=&bas->inuse; (link=*p); p=&link->next) {
> >    PetscBool match;
> >    ierr = MPIPetsc_Type_compare(unit,link->unit,&match);CHKERRQ(ierr);
> >    if (match && (key == link->key)) {
> >      switch (cmode) {
> >      case PETSC_OWN_POINTER: *p = link->next; break; /* Remove from inuse list */
> >      case PETSC_USE_POINTER: break;
> >      default: SETERRQ(PETSC_COMM_SELF,PETSC_ERR_ARG_INCOMP,"invalid cmode");
> >      }
> >      *mylink = link;
> >      PetscFunctionReturn(0);
> >    }
> >  }
> >  SETERRQ(PetscObjectComm((PetscObject)sf),PETSC_ERR_ARG_WRONGSTATE,"Could not find pack");
> >  PetscFunctionReturn(0);
> > }
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: Digital signature
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20150408/e72dac89/attachment.sig>


More information about the petsc-dev mailing list