silence compiler warnings
This commit is contained in:
@ -148,8 +148,10 @@ void AngleWrite::command(int narg, char **arg)
|
||||
FILE *coeffs;
|
||||
char line[MAXLINE] = {'\0'};
|
||||
coeffs = fopen(coeffs_file.c_str(), "r");
|
||||
if (!coeffs)
|
||||
error->one(FLERR, "Unable to open temporary file {}: {}", coeffs_file, utils::getsyserror());
|
||||
for (int i = 0; i < atom->nangletypes; ++i) {
|
||||
fgets(line, MAXLINE, coeffs);
|
||||
utils::sfgets(FLERR, line, MAXLINE, coeffs, coeffs_file.c_str(), error);
|
||||
writer->input->one(fmt::format("angle_coeff {}", line));
|
||||
}
|
||||
fclose(coeffs);
|
||||
|
||||
Reference in New Issue
Block a user