diff options
Diffstat (limited to 'libstdc++-v3/testsuite/26_numerics/slice.cc')
-rw-r--r-- | libstdc++-v3/testsuite/26_numerics/slice.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/libstdc++-v3/testsuite/26_numerics/slice.cc b/libstdc++-v3/testsuite/26_numerics/slice.cc index a02c1f5801b..a7278edfc90 100644 --- a/libstdc++-v3/testsuite/26_numerics/slice.cc +++ b/libstdc++-v3/testsuite/26_numerics/slice.cc @@ -25,14 +25,14 @@ #include <testsuite_hooks.h> bool -construction(int start, int size, int stride) +construction(std::size_t start, std::size_t size, std::size_t stride) { std::slice s(start, size, stride); return s.start() == start && s.size() == size && s.stride() == stride; } bool -copy(int start, int size, int stride) +copy(std::size_t start, std::size_t size, std::size_t stride) { std::slice s(start, size, stride); std::slice t = s; @@ -40,7 +40,7 @@ copy(int start, int size, int stride) } bool -assignment(int start, int size, int stride) +assignment(std::size_t start, std::size_t size, std::size_t stride) { std::slice s(start, size, stride); std::slice t; @@ -51,8 +51,9 @@ assignment(int start, int size, int stride) int main() { - bool test = true; - std::srand(20020717); using std::rand; + bool test __attribute__((unused)) = true; + std::srand(20020717); + using std::rand; VERIFY(construction(rand(), rand(), rand())); VERIFY(copy(rand(), rand(), rand())); |