diff --git a/src/fix_ave_histo.cpp b/src/fix_ave_histo.cpp index 1a51304bed..b990f46997 100644 --- a/src/fix_ave_histo.cpp +++ b/src/fix_ave_histo.cpp @@ -195,7 +195,6 @@ FixAveHisto::FixAveHisto(LAMMPS *lmp, int narg, char **arg) : error->all(FLERR,"{} overwrite keyword requires ave running setting", mycmd); int kindglobal,kindperatom,kindlocal; - int i = 0; for (auto &val : values) { kindglobal = kindperatom = kindlocal = 0; diff --git a/src/pair_hybrid_scaled.cpp b/src/pair_hybrid_scaled.cpp index 025c468935..d2d773c1d3 100644 --- a/src/pair_hybrid_scaled.cpp +++ b/src/pair_hybrid_scaled.cpp @@ -436,7 +436,6 @@ double PairHybridScaled::single(int i, int j, int itype, int jtype, double rsq, // update scale values from variables where needed const int nvars = scalevars.size(); - int atomscaleflag = 0; if (nvars > 0) { auto vals = new double[nvars]; auto vars = new int[nvars]; @@ -453,7 +452,6 @@ double PairHybridScaled::single(int i, int j, int itype, int jtype, double rsq, } else if (input->variable->atomstyle(m)) { vals[k] = 0.0; vars[k] = m; - atomscaleflag = 1; } else error->all(FLERR, "Variable '{}' has incompatible style", scalevars[k]); } @@ -517,7 +515,6 @@ void PairHybridScaled::born_matrix(int i, int j, int itype, int jtype, double rs // update scale values from variables where needed const int nvars = scalevars.size(); - int atomscaleflag = 0; if (nvars > 0) { auto vals = new double[nvars]; auto vars = new int[nvars]; @@ -534,7 +531,6 @@ void PairHybridScaled::born_matrix(int i, int j, int itype, int jtype, double rs } else if (input->variable->atomstyle(m)) { vals[k] = 0.0; vars[k] = m; - atomscaleflag = 1; } else error->all(FLERR, "Variable '{}' has incompatible style", scalevars[k]); }