Commit e9bc9390 authored by Daniel Schwen's avatar Daniel Schwen
Browse files

Fix more unused parameter warnings (#1076)

parent 7238d4af
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -66,8 +66,8 @@ class AtomKokkos : public Atom {
  tagint **k_special;
  AtomKokkos(class LAMMPS *lmp) : Atom(lmp) {}
  ~AtomKokkos() {}
  void sync(const ExecutionSpace space, unsigned int mask) {}
  void modified(const ExecutionSpace space, unsigned int mask) {}
  void sync(const ExecutionSpace /*space*/, unsigned int /*mask*/) {}
  void modified(const ExecutionSpace /*space*/, unsigned int /*mask*/) {}
};

class CommKokkos : public CommBrick {
+1 −1
Original line number Diff line number Diff line
@@ -148,7 +148,7 @@ void AngleZero::write_data(FILE *fp)

/* ---------------------------------------------------------------------- */

double AngleZero::single(int type, int i1, int i2, int i3)
double AngleZero::single(int /*type*/, int /*i1*/, int /*i2*/, int /*i3*/)
{
  return 0.0;
}
+2 −2
Original line number Diff line number Diff line
@@ -1516,7 +1516,7 @@ void Atom::set_mass(const char *file, int line, int itype, double value)
   called from reading of input script
------------------------------------------------------------------------- */

void Atom::set_mass(const char *file, int line, int narg, char **arg)
void Atom::set_mass(const char *file, int line, int /*narg*/, char **arg)
{
  if (mass == NULL) error->all(file,line,"Cannot set mass for this atom style");

+1 −1
Original line number Diff line number Diff line
@@ -66,7 +66,7 @@ void AtomVec::store_args(int narg, char **arg)
   no additional args by default
------------------------------------------------------------------------- */

void AtomVec::process_args(int narg, char **arg)
void AtomVec::process_args(int narg, char ** /*arg*/)
{
  if (narg) error->all(FLERR,"Invalid atom_style command");
}
+3 −0
Original line number Diff line number Diff line
@@ -82,6 +82,9 @@ AtomVecBody::~AtomVecBody()

void AtomVecBody::process_args(int narg, char **arg)
{
  // suppress unused parameter warning dependent on style_body.h
  (void)(arg);

  if (narg < 1) error->all(FLERR,"Invalid atom_style body command");

  if (0) bptr = NULL;
Loading