silence compiler warnings

This commit is contained in:
Axel Kohlmeyer
2020-09-17 10:16:56 -04:00
parent e2fc70da62
commit 62a63d0cd8
3 changed files with 2 additions and 7 deletions

View File

@ -64,11 +64,6 @@ enum{ISO,ANISO,TRICLINIC};
const int NUM_INPUT_DATA_COLUMNS = 2; // columns in the pressure correction file
// NB:
// - Keep error and warning messages less than 255 chars long.
// - Allocate your char buffer to be 1 char longer than this
const int MAX_MESSAGE_LENGTH = 255;
/* ----------------------------------------------------------------------
NVT,NPH,NPT integrators for improved Nose-Hoover equations of motion
---------------------------------------------------------------------- */

View File

@ -1353,7 +1353,7 @@ PrincipalEigen(ConstMatrix matrix,
Scalar eval;
// This line does all of the hard work:
size_t itern = ll_engine.run(eval, evec);
ll_engine.run(eval, evec);
for (int i = 0; i < n; i++)
eigenvector[i] = evec[i];

View File

@ -802,7 +802,7 @@ void Molecule::charges(char *line)
readline(line);
ValueTokenizer values(line);
if (values.count() != 2) error->one(FLERR,"Invalid Charges section in molecule file");
if ((int)values.count() != 2) error->one(FLERR,"Invalid Charges section in molecule file");
values.next_int();
q[i] = values.next_double();