Skip to content

Commit 1a5b3ab

Browse files
David Eklovfacebook-github-bot
David Eklov
authored andcommitted
Ignore return value of function declared with 'warn_unused_result'
Summary: 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()); Differential Revision: D39181069 fbshipit-source-id: e9516178b645729874a7cc1b82720789a1aca0d1
1 parent 45e6401 commit 1a5b3ab

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)