You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@teaclave.apache.org by di...@apache.org on 2020/04/02 07:51:19 UTC

[incubator-teaclave-sgx-sdk] branch master updated: Fix xargo compile warning

This is an automated email from the ASF dual-hosted git repository.

dingyu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-teaclave-sgx-sdk.git


The following commit(s) were added to refs/heads/master by this push:
     new 852f207  Fix xargo compile warning
852f207 is described below

commit 852f2076a893b035c187ec643e6d454c427976ad
Author: Yu Ding <di...@gmail.com>
AuthorDate: Thu Apr 2 00:51:05 2020 -0700

    Fix xargo compile warning
---
 sgx_backtrace/src/symbolize/libbacktrace.rs | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/sgx_backtrace/src/symbolize/libbacktrace.rs b/sgx_backtrace/src/symbolize/libbacktrace.rs
index 93f5d2a..0403051 100644
--- a/sgx_backtrace/src/symbolize/libbacktrace.rs
+++ b/sgx_backtrace/src/symbolize/libbacktrace.rs
@@ -346,7 +346,8 @@ pub fn set_enclave_path(path: &str) -> bool {
     #[cfg(feature = "std")]
     {
         use std::path::Path;
-        use std::untrusted::path::PathEx;
+        //#[cfg(not(target_env = "sgx"))]
+        //use std::untrusted::path::PathEx;
         let p: &Path = path.as_ref();
         if !p.exists() {
             return false;
@@ -361,4 +362,4 @@ pub fn set_enclave_path(path: &str) -> bool {
         }
         true
     }
-}
\ No newline at end of file
+}


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@teaclave.apache.org
For additional commands, e-mail: commits-help@teaclave.apache.org