Skip to content

Commit 3e3b02f

Browse files
[Object] Fix warnings
This patch fixes: llvm/unittests/Object/OffloadingBundleTest.cpp:56:19: error: unused variable 'mbuf' [-Werror,-Wunused-variable] llvm/unittests/Object/OffloadingBundleTest.cpp:57:13: error: unused variable 'FileName' [-Werror,-Wunused-variable] llvm/unittests/Object/OffloadingBundleTest.cpp:72:19: error: unused variable 'mbuf' [-Werror,-Wunused-variable] llvm/unittests/Object/OffloadingBundleTest.cpp:73:13: error: unused variable 'FileName' [-Werror,-Wunused-variable]
1 parent fe09550 commit 3e3b02f

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

llvm/unittests/Object/OffloadingBundleTest.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,6 @@ toBinary(SmallVectorImpl<char> &Storage, StringRef Yaml) {
5151
}
5252

5353
TEST(OffloadingBundleTest, checkExtractOffloadBundleFatBinary) {
54-
55-
// create a Memory Buffer with a fatbin offloading section
56-
MemoryBufferRef mbuf;
57-
StringRef FileName;
5854
SmallVector<OffloadBundleEntry>();
5955
SmallString<0> Storage;
6056
// Expected<ELFObjectFile<ELF64LE>> ObjOrErr = toBinary<ELF64LE>(Storage, R"(
@@ -68,9 +64,6 @@ TEST(OffloadingBundleTest, checkExtractOffloadBundleFatBinary) {
6864
}
6965

7066
TEST(OffloadingBundleTest, checkExtractCodeObject) {
71-
// create a Memory Buffer with a fatbin offloading section
72-
MemoryBufferRef mbuf;
73-
StringRef FileName;
7467
SmallVector<OffloadBundleEntry>();
7568
SmallString<0> Storage;
7669
// Expected<ELFObjectFile<ELF64LE>> ObjOrErr = toBinary<ELF64LE>(Storage, R"(

0 commit comments

Comments
 (0)