cast return value to void to indicate that we want to ignore the result

This commit is contained in:
Axel Kohlmeyer
2024-08-13 12:36:43 -04:00
parent b479cf6c68
commit 0f792b0434
22 changed files with 56 additions and 56 deletions

View File

@ -817,7 +817,7 @@ int Variable::next(int narg, char **arg)
fprintf(fp,"%d\n",nextindex+1);
fclose(fp);
fp = nullptr;
rename("tmp.lammps.variable.lock","tmp.lammps.variable");
(void) rename("tmp.lammps.variable.lock","tmp.lammps.variable");
if (universe->uscreen)
fprintf(universe->uscreen, "Increment via next: value %d on partition %d\n",
nextindex+1,universe->iworld);