Skip to content
Snippets Groups Projects
Commit 3c01d1b6 authored by Peter W. Draper's avatar Peter W. Draper
Browse files

Squash snprintf compilation warnings (gcc 7.5)

parent 8d87dadd
No related branches found
No related tags found
1 merge request!1239Fix threadpool
......@@ -1550,8 +1550,8 @@ int main(int argc, char *argv[]) {
/* Dump MPI requests if collected. */
#if defined(SWIFT_MPIUSE_REPORTS) && defined(WITH_MPI)
{
char dumpfile[40];
snprintf(dumpfile, 40, "mpiuse_report-rank%d-step%d.dat", engine_rank,
char dumpfile[80];
snprintf(dumpfile, 80, "mpiuse_report-rank%d-step%d.dat", engine_rank,
j + 1);
mpiuse_log_dump(dumpfile, e.tic_step);
}
......@@ -1560,12 +1560,12 @@ int main(int argc, char *argv[]) {
#ifdef SWIFT_DEBUG_THREADPOOL
/* Dump the task data using the given frequency. */
if (dump_threadpool && (dump_threadpool == 1 || j % dump_threadpool == 1)) {
char dumpfile[40];
char dumpfile[80];
#ifdef WITH_MPI
snprintf(dumpfile, 40, "threadpool_info-rank%d-step%d.dat", engine_rank,
snprintf(dumpfile, 80, "threadpool_info-rank%d-step%d.dat", engine_rank,
j + 1);
#else
snprintf(dumpfile, 40, "threadpool_info-step%d.dat", j + 1);
snprintf(dumpfile, 80, "threadpool_info-step%d.dat", j + 1);
#endif // WITH_MPI
threadpool_dump_log(&e.threadpool, dumpfile, 1);
} else {
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment