From 902a723a5342e33a372a3a4212b46489547eb07b Mon Sep 17 00:00:00 2001 From: maier Date: Fri, 9 Nov 2012 17:11:02 +0000 Subject: [PATCH] Silence -Warray-bounds warnings for clang git-svn-id: https://svn.dealii.org/branches/branch_cmake@27495 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/include/deal.II/base/point.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deal.II/include/deal.II/base/point.h b/deal.II/include/deal.II/base/point.h index a87204fe21..b247ce6cc7 100644 --- a/deal.II/include/deal.II/base/point.h +++ b/deal.II/include/deal.II/base/point.h @@ -225,6 +225,7 @@ inline Point::Point (const Number x) { Assert (dim==1, StandardExceptions::ExcInvalidConstructorCall()); + if(dim != 1) return; this->values[0] = x; } @@ -235,6 +236,7 @@ inline Point::Point (const Number x, const Number y) { Assert (dim==2, StandardExceptions::ExcInvalidConstructorCall()); + if(dim != 2) return; this->values[0] = x; this->values[1] = y; } @@ -246,6 +248,7 @@ inline Point::Point (const Number x, const Number y, const Number z) { Assert (dim==3, StandardExceptions::ExcInvalidConstructorCall()); + if(dim != 3) return; this->values[0] = x; this->values[1] = y; this->values[2] = z; -- 2.39.5