diff --git a/Number_types/include/CGAL/Gmpfi.h b/Number_types/include/CGAL/Gmpfi.h index a47f0a79228..98bd970e3e3 100644 --- a/Number_types/include/CGAL/Gmpfi.h +++ b/Number_types/include/CGAL/Gmpfi.h @@ -83,6 +83,8 @@ public Algebraic_structure_traits_base{ struct Divides: public std::binary_function{ Boolean operator()(const Type &d,const Type &n)const{ + // Avoid compiler warning + (void)n; return !(d.is_zero()); }; Boolean operator()(const Type &d,const Type &n,Type &c)const{ diff --git a/Polynomial/include/CGAL/Polynomial_traits_d.h b/Polynomial/include/CGAL/Polynomial_traits_d.h index 4435cbcfb7c..bbba4e916f8 100644 --- a/Polynomial/include/CGAL/Polynomial_traits_d.h +++ b/Polynomial/include/CGAL/Polynomial_traits_d.h @@ -593,6 +593,8 @@ public: template< class Input_iterator > Polynomial_d operator()( Input_iterator begin, Input_iterator end, bool is_sorted) const { + // Avoid compiler warning + (void)is_sorted; if(begin == end ) return Polynomial_d(0); Monom_rep monom_rep(begin,end); // if(!is_sorted)