From: Karl Ljungkvist Date: Sat, 19 Mar 2016 03:29:30 +0000 (-0500) Subject: suppress some warnings by explicit casting X-Git-Tag: v8.5.0-rc1~1196^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2380%2Fhead;p=dealii.git suppress some warnings by explicit casting --- diff --git a/include/deal.II/base/graph_coloring.h b/include/deal.II/base/graph_coloring.h index 1f341a28f5..e97051ebd1 100644 --- a/include/deal.II/base/graph_coloring.h +++ b/include/deal.II/base/graph_coloring.h @@ -351,7 +351,7 @@ namespace GraphColoring // iterators. std::vector::iterator it; it = std::max_element(colors_counter[i].begin(),colors_counter[i].end()); - unsigned int min_iterators(-1); + unsigned int min_iterators (static_cast(-1)); unsigned int pos(0); // Find the color of coloring with the least number of colors among // the colors that have not been used yet. @@ -402,7 +402,7 @@ namespace GraphColoring // iterators. std::vector::iterator it; it = std::max_element(colors_counter[i].begin(),colors_counter[i].end()); - unsigned int min_iterators(-1); + unsigned int min_iterators(static_cast(-1)); unsigned int pos(0); // Find the color of coloring with the least number of colors among // the colors that have not been used yet. diff --git a/include/deal.II/grid/cell_id.h b/include/deal.II/grid/cell_id.h index 2e1e3b1e00..a40b0923a2 100644 --- a/include/deal.II/grid/cell_id.h +++ b/include/deal.II/grid/cell_id.h @@ -66,7 +66,7 @@ public: * construct an empty CellId. */ CellId() - : coarse_cell_id(-1) + : coarse_cell_id(static_cast(-1)) {} /** diff --git a/include/deal.II/grid/tria_accessor.h b/include/deal.II/grid/tria_accessor.h index c9b4354833..da465338c7 100644 --- a/include/deal.II/grid/tria_accessor.h +++ b/include/deal.II/grid/tria_accessor.h @@ -3098,7 +3098,7 @@ CellAccessor::id() const while (ptr.level()>0) { // determine which child we are - unsigned char v=-1; + unsigned char v = static_cast(-1); for (unsigned int c=0; cn_children(); ++c) { if (ptr.parent()->child_index(c)==ptr.index())