From 59fe49ff7c28e8d8c9a75a742f3dab12cb207690 Mon Sep 17 00:00:00 2001 From: bangerth Date: Thu, 30 Jun 2011 21:14:12 +0000 Subject: [PATCH] Don't compute stuff we never use. In particular, don't create variables then access beyond their end. git-svn-id: https://svn.dealii.org/trunk@23890 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/base/slice_vector.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/base/slice_vector.cc b/tests/base/slice_vector.cc index 149b570210..fa3ab3be57 100644 --- a/tests/base/slice_vector.cc +++ b/tests/base/slice_vector.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2004, 2005, 2006, 2008 by the deal.II authors +// Copyright (C) 2004, 2005, 2006, 2008, 2011 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -56,6 +56,4 @@ int main() f(v); make_slice(v, 3, 5); - int n = s[4]; - n += 3; } -- 2.39.5