From 32be894ae2b120ffc8eaac4111b783f251a1c765 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Wed, 28 Jul 2021 16:16:22 -0400 Subject: [PATCH] silence compiler warnings --- src/CG-DNA/atom_vec_oxdna.cpp | 2 +- src/CG-DNA/pair_oxdna_stk.cpp | 1 - src/CG-DNA/pair_oxrna2_stk.cpp | 1 - src/DIELECTRIC/pppm_disp_dielectric.cpp | 1 - src/DPD-SMOOTH/fix_meso_move.cpp | 2 +- 5 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/CG-DNA/atom_vec_oxdna.cpp b/src/CG-DNA/atom_vec_oxdna.cpp index 7ce2189a64..f5d56eef31 100644 --- a/src/CG-DNA/atom_vec_oxdna.cpp +++ b/src/CG-DNA/atom_vec_oxdna.cpp @@ -80,7 +80,7 @@ void AtomVecOxdna::data_atom_post(int ilocal) store 5' partner to inform 3'->5' bond directionality ------------------------------------------------------------------------- */ -void AtomVecOxdna::data_bonds_post(int m, int num_bond, tagint atom1, tagint atom2, +void AtomVecOxdna::data_bonds_post(int /*m*/, int /*num_bond*/, tagint atom1, tagint atom2, tagint id_offset) { int n; diff --git a/src/CG-DNA/pair_oxdna_stk.cpp b/src/CG-DNA/pair_oxdna_stk.cpp index 63439e3ac4..2f1a0bf1b6 100644 --- a/src/CG-DNA/pair_oxdna_stk.cpp +++ b/src/CG-DNA/pair_oxdna_stk.cpp @@ -255,7 +255,6 @@ void PairOxdnaStk::compute(int eflag, int vflag) double f1,f4t4,f4t5,f4t6,f5c1,f5c2; double df1,df4t4,df4t5,df4t6,df5c1,df5c2; - double tptofp; evdwl = 0.0; ev_init(eflag,vflag); diff --git a/src/CG-DNA/pair_oxrna2_stk.cpp b/src/CG-DNA/pair_oxrna2_stk.cpp index b6b68662d5..4d733f53b5 100644 --- a/src/CG-DNA/pair_oxrna2_stk.cpp +++ b/src/CG-DNA/pair_oxrna2_stk.cpp @@ -272,7 +272,6 @@ void PairOxrna2Stk::compute(int eflag, int vflag) double f1,f4t5,f4t6,f4t9,f4t10,f5c1,f5c2; double df1,df4t5,df4t6,df4t9,df4t10,df5c1,df5c2; - double tptofp; evdwl = 0.0; ev_init(eflag,vflag); diff --git a/src/DIELECTRIC/pppm_disp_dielectric.cpp b/src/DIELECTRIC/pppm_disp_dielectric.cpp index b6a82296b2..944225dd43 100644 --- a/src/DIELECTRIC/pppm_disp_dielectric.cpp +++ b/src/DIELECTRIC/pppm_disp_dielectric.cpp @@ -609,7 +609,6 @@ void PPPMDispDielectric::fieldforce_c_ad() double *q = atom->q; double **x = atom->x; double **f = atom->f; - double *eps = atom->epsilon; int nlocal = atom->nlocal; for (i = 0; i < nlocal; i++) { diff --git a/src/DPD-SMOOTH/fix_meso_move.cpp b/src/DPD-SMOOTH/fix_meso_move.cpp index 220019ea98..85eee5ffbe 100644 --- a/src/DPD-SMOOTH/fix_meso_move.cpp +++ b/src/DPD-SMOOTH/fix_meso_move.cpp @@ -68,7 +68,7 @@ FixMesoMove::FixMesoMove (LAMMPS *lmp, int narg, char **arg) : // parse args - int iarg; + int iarg = narg; if (strcmp(arg[3],"linear") == 0) { if (narg < 7) error->all(FLERR,"Illegal fix meso/move command");