From: bangerth Date: Thu, 30 Jun 2011 21:14:12 +0000 (+0000) Subject: Don't compute stuff we never use. In particular, don't create variables then X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59fe49ff7c28e8d8c9a75a742f3dab12cb207690;p=dealii-svn.git 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 --- 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; }