mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
Fix warning on gcc 4.3.
"system() declared with attribute warn_unused_result." git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64574 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -658,7 +658,10 @@ Path::eraseFromDisk(bool remove_contents, std::string *ErrStr) const {
|
|||||||
if (remove_contents) {
|
if (remove_contents) {
|
||||||
// Recursively descend the directory to remove its contents.
|
// Recursively descend the directory to remove its contents.
|
||||||
std::string cmd = "/bin/rm -rf " + path;
|
std::string cmd = "/bin/rm -rf " + path;
|
||||||
system(cmd.c_str());
|
if (system(cmd.c_str()) != 0) {
|
||||||
|
MakeErrMsg(ErrStr, path + ": failed to recursively remove directory.");
|
||||||
|
return true;
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user