Unverified Commit 95c215d5 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

silence compiler warnings

parent 65f9c1ab
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -410,7 +410,7 @@ int PythonImpl::create_entry(char *name)

  if (!format && ninput+noutput)
    error->all(FLERR,"Invalid python command");
  else if (format && strlen(format) != ninput+noutput)
  else if (format && ((int) strlen(format) != ninput+noutput))
    error->all(FLERR,"Invalid python command");

  // process inputs as values or variables
+3 −3
Original line number Diff line number Diff line
@@ -511,7 +511,7 @@ void ComputeVoronoi::processCell(voronoicell_neighbor &c, int i)
      c.face_areas(narea);
      have_narea = true;
      voro[i][1] = 0.0;
      for (j=0; j<narea.size(); ++j)
      for (j=0; j < (int)narea.size(); ++j)
        if (narea[j] > fthresh) voro[i][1] += 1.0;
    } else {
      // unthresholded face count
@@ -526,7 +526,7 @@ void ComputeVoronoi::processCell(voronoicell_neighbor &c, int i)
      voro[i][2] = 0.0;

      // each entry in neigh should correspond to an entry in narea
      if (neighs != narea.size())
      if (neighs != (int)narea.size())
        error->one(FLERR,"Voro++ error: narea and neigh have a different size");

      // loop over all faces (neighbors) and check if they are in the surface group
@@ -587,7 +587,7 @@ void ComputeVoronoi::processCell(voronoicell_neighbor &c, int i)

      if (!have_narea) c.face_areas(narea);

      if (neighs != narea.size())
      if (neighs != (int)narea.size())
        error->one(FLERR,"Voro++ error: narea and neigh have a different size");
      tagint itag, jtag;
      tagint *tag = atom->tag;