apache / incubator-teaclave-trustzone-sdk

Teaclave TrustZone SDK enables safe, functional, and ergonomic development of trustlets.
https://teaclave.apache.org
Apache License 2.0
206 stars 59 forks source link

Unused value in utee macro #10

Closed ionut-arm closed 4 years ago

ionut-arm commented 4 years ago

Hello,

I was looking through the code and saw that in the ta_destroy macro definition there's a boolean value that's ignored.

https://github.com/mesalock-linux/rust-optee-trustzone-sdk/blob/master/optee-utee/macros/src/lib.rs#L230

I think the outcome is that you're not checking the return type at compile time.

mssun commented 4 years ago

Fixed. Thank you so much!