]> git.lizzy.rs Git - rust.git/commitdiff
Command::env_saw_path() may be unused on platforms not using posix_spawn()
authorBryan Drewery <bryan@shatow.net>
Thu, 22 Mar 2018 16:49:20 +0000 (09:49 -0700)
committerBryan Drewery <bryan@shatow.net>
Thu, 22 Mar 2018 16:49:20 +0000 (09:49 -0700)
src/libstd/sys/unix/process/process_common.rs

index 48255489dd9161b663500c0e77cc8acd721052e1..b7f30600b8a4c7dc3bf63c21a3cb2397510202d4 100644 (file)
@@ -184,6 +184,7 @@ pub fn capture_env(&mut self) -> Option<CStringArray> {
         let maybe_env = self.env.capture_if_changed();
         maybe_env.map(|env| construct_envp(env, &mut self.saw_nul))
     }
+    #[allow(dead_code)]
     pub fn env_saw_path(&self) -> bool {
         self.env.have_changed_path()
     }