Fix unused variables in tests to placate scan-build. Patch from Steve MacKenzie.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@220154 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Fiselier
2014-10-19 00:10:15 +00:00
parent 38d9005902
commit f4c53dacaf
5 changed files with 8 additions and 0 deletions

View File

@@ -30,5 +30,6 @@ int main()
typedef std::array<T, 0> C;
C c = {};
T* p = c.data();
(void)p; // to placate scan-build
}
}

View File

@@ -30,5 +30,6 @@ int main()
typedef std::array<T, 0> C;
const C c = {};
const T* p = c.data();
(void)p; // to placate scan-build
}
}