Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compilation warnings #754

Merged

Conversation

zlukwins
Copy link
Contributor

The following warnings are being fixed:

warning: unused import: linked_list_allocator::LockedHeap
--> deps/td-shim/td-payload/src/mm/heap.rs:6:5
|
6 | use linked_list_allocator::LockedHeap;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: #[warn(unused_imports)] on by default

warning: unused import: td_benchmark::Alloc
--> deps/td-shim/td-payload/src/mm/heap.rs:8:5
|
8 | use td_benchmark::Alloc;
| ^^^^^^^^^^^^^^^^^^^

warning: unnecessary unsafe block
--> deps/td-shim/td-payload/src/mm/heap.rs:30:5
|
30 | unsafe {
| ^^^^^^ unnecessary unsafe block
|
= note: #[warn(unused_unsafe)] on by default

@zlukwins
Copy link
Contributor Author

CI fails because of the following issue related to the toolchain:
image

I think #755 solves the problem

@jyao1 jyao1 closed this Dec 20, 2024
@jyao1 jyao1 reopened this Dec 20, 2024
@jyao1
Copy link
Member

jyao1 commented Dec 20, 2024

@zlukwins , please fix rest CI failure.

The following warnings are being fixed:

warning: unused import: `linked_list_allocator::LockedHeap`
 --> deps/td-shim/td-payload/src/mm/heap.rs:6:5
  |
6 | use linked_list_allocator::LockedHeap;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

warning: unused import: `td_benchmark::Alloc`
 --> deps/td-shim/td-payload/src/mm/heap.rs:8:5
  |
8 | use td_benchmark::Alloc;
  |     ^^^^^^^^^^^^^^^^^^^

warning: unnecessary `unsafe` block
  --> deps/td-shim/td-payload/src/mm/heap.rs:30:5
   |
30 |     unsafe {
   |     ^^^^^^ unnecessary `unsafe` block
   |
   = note: `#[warn(unused_unsafe)]` on by default

Signed-off-by: Zbigniew Lukwinski <zbigniew.lukwinski@intel.com>
@zlukwins zlukwins force-pushed the fix-compilation-warnings branch from 9d31933 to a6aac76 Compare December 20, 2024 07:39
@zlukwins
Copy link
Contributor Author

@jyao1 jyao1 merged commit 369d721 into confidential-containers:main Dec 20, 2024
23 checks passed
@zlukwins zlukwins deleted the fix-compilation-warnings branch December 20, 2024 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants