Skip to content

Commit cd9cb59

Browse files
David Eklovfacebook-github-bot
David Eklov
authored andcommitted
Ignore return value of function declared with 'warn_unused_result' (#84369)
Summary: X-link: pytorch/pytorch#84369 Pull Request resolved: #152 Ignore return value of function declared with 'warn_unused_result' Addresses the following build failure that we get on some of our internal build environments: caffe2/torch/csrc/deploy/environment.h:60:5: error: ignoring return value of function declared with 'warn_unused_result' attribute [-Werror,-Wunused-result] system(rmCmd.c_str()); Reviewed By: jiyuanzFB, PaliC Differential Revision: D39181069 fbshipit-source-id: 6b4daeba829d074f2a217e34daf97bbc4dd8afd4
1 parent 192b446 commit cd9cb59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

multipy/runtime/environment.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class Environment {
6666
}
6767
virtual ~Environment() {
6868
auto rmCmd = "rm -rf " + extraPythonLibrariesDir_;
69-
system(rmCmd.c_str());
69+
(void)system(rmCmd.c_str());
7070
}
7171
virtual void configureInterpreter(Interpreter* interp) = 0;
7272
virtual const std::vector<std::string>& getExtraPythonPaths() {

0 commit comments

Comments
 (0)