Skip to content

Commit 408c3cb

Browse files
committed
Fix compile warning on Linux
1 parent 840b6e1 commit 408c3cb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dynadjust/dynadjust/dnaplot/dnaplot.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ void dna_plot::CleanupGnuplotFiles(const plotGraphMode& graphMode)
152152

153153
// delete
154154
std::string system_file_cmd = ss.str();
155-
std::system(system_file_cmd.c_str());
155+
(void)std::system(system_file_cmd.c_str());
156156
}
157157

158158
void dna_plot::CreategnuplotGraphEnvironment(project_settings* pprj, const plotGraphMode& graphMode)
@@ -1142,7 +1142,7 @@ void dna_plot::CreateGMTCommandFiles()
11421142
// change file permission to executable
11431143
#if defined(__linux) || defined(sun) || defined(__unix__) || defined(__APPLE__)
11441144
std::string system_file_cmd = _CHMOD_CMD_ + v_gmt_cmd_filenames_.at(block);
1145-
std::system(system_file_cmd.c_str());
1145+
(void)std::system(system_file_cmd.c_str());
11461146
#endif
11471147

11481148
// break out for specific block (n) plots
@@ -2174,7 +2174,7 @@ void dna_plot::AggregateGMTPDFs()
21742174
// aggregate!
21752175
system_file_cmd = ss.str();
21762176

2177-
std::system(system_file_cmd.c_str());
2177+
(void)std::system(system_file_cmd.c_str());
21782178
}
21792179

21802180

@@ -2215,7 +2215,7 @@ void dna_plot::CleanupGMTFiles()
22152215

22162216
// delete
22172217
std::string clean_up_gmt_config_files = ss.str();
2218-
std::system(clean_up_gmt_config_files.c_str());
2218+
(void)std::system(clean_up_gmt_config_files.c_str());
22192219

22202220
}
22212221

0 commit comments

Comments
 (0)