Introduced cast-to-void to avoid compiler warnings

This commit is contained in:
Michael Kerber 2010-06-18 15:10:29 +00:00
parent f39ad3b38e
commit 4377bda5fe
2 changed files with 4 additions and 0 deletions

View File

@ -83,6 +83,8 @@ public Algebraic_structure_traits_base<Gmpfi,Field_with_kth_root_tag>{
struct Divides:
public std::binary_function<Type,Type,Boolean>{
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{

View File

@ -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)