Skip to content

Commit 24504c3

Browse files
[test][CAS] Fix unused variable warning in unittest (llvm#159594)
Fix unused variable warning blocking AIX bot.
1 parent 97e544f commit 24504c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/unittests/CAS/ProgramTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ extern char **environ;
2626
using namespace llvm;
2727
using namespace llvm::cas;
2828

29+
#if LLVM_ENABLE_ONDISK_CAS
30+
2931
extern const char *TestMainArgv0;
3032
static char ProgramID = 0;
3133

@@ -81,8 +83,6 @@ class CASProgramTest : public testing::Test {
8183
ArrayRef<StringRef> getEnviron() const { return EnvTable; }
8284
};
8385

84-
#if LLVM_ENABLE_ONDISK_CAS
85-
8686
static Error emptyConstructor(MappedFileRegionArena &) {
8787
return Error::success();
8888
}

0 commit comments

Comments
 (0)