fortanix / rust-sgx

The Fortanix Rust Enclave Development Platform
https://edp.fortanix.com
Mozilla Public License 2.0
421 stars 99 forks source link

Add allow dead_code attribute to structs #624

Open aditijannu opened 4 days ago

aditijannu commented 4 days ago

Source files of ipc-queue have #![deny(warnings)] attribute and some structs are not always used which causes the compiler to throw warnings like this:

error: struct `AsyncSender` is never constructed
   --> ipc-queue/src/lib.rs:149:12
    |
149 | pub struct AsyncSender<T: 'static, S> {
    |            ^^^^^^^^^^^

To avoid these warnings to turn into errors, add the allow[dead_code] attribute to these structs.