From d0ce8173afbd2708363b7d476612864e2c54e3bc Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Sun, 27 Sep 2015 07:27:38 -0400 Subject: [PATCH] remove warnings --- include/deal.II/grid/tria_accessor.templates.h | 2 +- include/deal.II/lac/read_write_vector.h | 2 ++ source/base/data_out_base.cc | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/deal.II/grid/tria_accessor.templates.h b/include/deal.II/grid/tria_accessor.templates.h index c316abc82b..4ce7f713b1 100644 --- a/include/deal.II/grid/tria_accessor.templates.h +++ b/include/deal.II/grid/tria_accessor.templates.h @@ -2141,7 +2141,7 @@ template inline TriaAccessor<0, dim, spacedim>:: TriaAccessor (const Triangulation *tria, - const int level, + const int /*level*/, const int index, const AccessorData *) : diff --git a/include/deal.II/lac/read_write_vector.h b/include/deal.II/lac/read_write_vector.h index d0e389aaca..fb0261603d 100644 --- a/include/deal.II/lac/read_write_vector.h +++ b/include/deal.II/lac/read_write_vector.h @@ -692,6 +692,8 @@ namespace LinearAlgebra ReadWriteVector::operator= (const Number s) { Assert(s==static_cast(0), ExcMessage("Only 0 can be assigned to a vector.")); + (void)s; + std::fill(begin(),end(),Number()); return *this; diff --git a/source/base/data_out_base.cc b/source/base/data_out_base.cc index 246d45f387..c7806af486 100644 --- a/source/base/data_out_base.cc +++ b/source/base/data_out_base.cc @@ -5426,7 +5426,7 @@ namespace DataOutBase Point<3> camera_direction_temp; Point<3> camera_horizontal_temp; - const float angle_factor = 3.14159265 / 180.; + const float angle_factor = 3.14159265f / 180.f; // (I) rotate the camera to the chosen polar angle camera_position_temp[1] = cos(angle_factor * flags.polar_angle) * camera_position[1] - sin(angle_factor * flags.polar_angle) * camera_position[2]; -- 2.39.5