diff --git a/torch/csrc/deploy/environment.h b/torch/csrc/deploy/environment.h index 433ce6bcb3f66..5837b59a1b3b8 100644 --- a/torch/csrc/deploy/environment.h +++ b/torch/csrc/deploy/environment.h @@ -57,7 +57,7 @@ class Environment { } virtual ~Environment() { auto rmCmd = fmt::format("rm -rf {}", extraPythonLibrariesDir_); - system(rmCmd.c_str()); + (void)system(rmCmd.c_str()); } virtual void configureInterpreter(Interpreter* interp) = 0; virtual const std::vector& getExtraPythonPaths() {