From e56d69a267a38796478f4840465aa85067f87854 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Fri, 5 Apr 2019 15:51:32 -0400 Subject: [PATCH] silence compiler warnings --- src/RIGID/fix_shake.cpp | 2 +- src/USER-OMP/reaxc_forces_omp.cpp | 4 ++-- src/USER-REAXC/reaxc_traj.cpp | 4 ++-- src/group.cpp | 4 ++-- src/memory.h | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/RIGID/fix_shake.cpp b/src/RIGID/fix_shake.cpp index 1e8414d321..23ced2d0e7 100644 --- a/src/RIGID/fix_shake.cpp +++ b/src/RIGID/fix_shake.cpp @@ -1390,7 +1390,7 @@ void FixShake::shake_info(int *npartner, tagint **partner_tag, ------------------------------------------------------------------------- */ int FixShake::rendezvous_ids(int n, char *inbuf, - int &flag, int *&proclist, char *&outbuf, + int &flag, int *& /*proclist*/, char *& /*outbuf*/, void *ptr) { FixShake *fsptr = (FixShake *) ptr; diff --git a/src/USER-OMP/reaxc_forces_omp.cpp b/src/USER-OMP/reaxc_forces_omp.cpp index 1e1cf44f50..0a08bd6a46 100644 --- a/src/USER-OMP/reaxc_forces_omp.cpp +++ b/src/USER-OMP/reaxc_forces_omp.cpp @@ -262,8 +262,8 @@ void Compute_Total_ForceOMP( reax_system *system, control_params *control, /* ---------------------------------------------------------------------- */ -void Validate_ListsOMP( reax_system *system, storage * /*workspace */, reax_list **lists, - int step, int n, int N, int numH, MPI_Comm comm ) +void Validate_ListsOMP(reax_system *system, storage * /*workspace*/, reax_list **lists, + int step, int n, int N, int numH, MPI_Comm /*comm*/) { int i, comp, Hindex; reax_list *bonds, *hbonds; diff --git a/src/USER-REAXC/reaxc_traj.cpp b/src/USER-REAXC/reaxc_traj.cpp index 5adc0cfbb9..356d7b6eeb 100644 --- a/src/USER-REAXC/reaxc_traj.cpp +++ b/src/USER-REAXC/reaxc_traj.cpp @@ -58,7 +58,7 @@ void Write_Skip_Line( output_controls *out_control, mpi_datatypes * /*mpi_data*/ int Write_Header( reax_system *system, control_params *control, - output_controls *out_control, mpi_datatypes *mpi_data ) + output_controls *out_control, mpi_datatypes * /*mpi_data*/ ) { int num_hdr_lines, my_hdr_lines, buffer_req; char ensembles[ens_N][25] = { "NVE", "NVT", "fully flexible NPT", @@ -357,7 +357,7 @@ int Init_Traj( reax_system *system, control_params *control, int Write_Frame_Header( reax_system *system, control_params *control, simulation_data *data, output_controls *out_control, - mpi_datatypes *mpi_data ) + mpi_datatypes * /*mpi_data*/ ) { int me, num_frm_hdr_lines, my_frm_hdr_lines, buffer_req; diff --git a/src/group.cpp b/src/group.cpp index 6c19af8bc6..256bab7778 100644 --- a/src/group.cpp +++ b/src/group.cpp @@ -40,7 +40,7 @@ using namespace LAMMPS_NS; #define MAX_GROUP 32 #define EPSILON 1.0e-6 -enum{TYPE,MOLECULE,ID}; +enum{NONE,TYPE,MOLECULE,ID}; enum{LT,LE,GT,GE,EQ,NEQ,BETWEEN}; #define BIG 1.0e20 @@ -202,7 +202,7 @@ void Group::assign(int narg, char **arg) if (narg < 3) error->all(FLERR,"Illegal group command"); - int category; + int category=NONE; if (strcmp(arg[1],"type") == 0) category = TYPE; else if (strcmp(arg[1],"molecule") == 0) category = MOLECULE; else if (strcmp(arg[1],"id") == 0) category = ID; diff --git a/src/memory.h b/src/memory.h index b5d70b977f..c5eddc7fe7 100644 --- a/src/memory.h +++ b/src/memory.h @@ -477,7 +477,7 @@ class Memory : protected Pointers { } template - TYPE *****grow(TYPE *****&array, int n1, int n2, int n3, int n4, + TYPE *****grow(TYPE *****& /*array*/, int /*n1*/, int /*n2*/, int /*n3*/, int /*n4*/, const char *name) { fail(name); return NULL;