mirror of https://github.com/CGAL/cgal
Fix warnings with CGAL_USE
This commit is contained in:
parent
162544dade
commit
7105406ee1
|
|
@ -24,6 +24,8 @@
|
|||
#ifndef CGAL__TEST_CLS_AFF_TRANSFORMATION_2_H
|
||||
#define CGAL__TEST_CLS_AFF_TRANSFORMATION_2_H
|
||||
|
||||
#include <CGAL/use.h>
|
||||
|
||||
template <class R>
|
||||
bool
|
||||
_test_cls_aff_transformation_2(const R& )
|
||||
|
|
@ -56,7 +58,7 @@ _test_cls_aff_transformation_2(const R& )
|
|||
CGAL::Vector_2<R> tvec;
|
||||
CGAL::Point_2<R> pnt( n8, n1, n10 ); // ( 6,-5)
|
||||
CGAL::Point_2<R> tpnt;
|
||||
CGAL::Point_2<R> pvec = CGAL::ORIGIN + vec;
|
||||
CGAL::Point_2<R> pvec = CGAL::ORIGIN + vec; CGAL_USE(pvec);
|
||||
CGAL::Vector_2<R> vpnt = pnt - CGAL::ORIGIN;
|
||||
|
||||
CGAL::Point_2<R> p1(-n3, n7, n3 ); // (-1, 2)
|
||||
|
|
|
|||
|
|
@ -24,6 +24,8 @@
|
|||
#ifndef CGAL__TEST_CLS_AFF_TRANSFORMATION_3_H
|
||||
#define CGAL__TEST_CLS_AFF_TRANSFORMATION_3_H
|
||||
|
||||
#include <CGAL/use.h>
|
||||
|
||||
template <class R>
|
||||
bool
|
||||
_test_cls_aff_transformation_3(const R& )
|
||||
|
|
@ -56,7 +58,7 @@ _test_cls_aff_transformation_3(const R& )
|
|||
CGAL::Vector_3<R> tvec;
|
||||
CGAL::Point_3<R> pnt( n8, n1, n9, n10 ); // ( 6,-5, 3)
|
||||
CGAL::Point_3<R> tpnt;
|
||||
CGAL::Point_3<R> pvec = CGAL::ORIGIN + vec;
|
||||
CGAL::Point_3<R> pvec = CGAL::ORIGIN + vec; CGAL_USE(pvec);
|
||||
CGAL::Vector_3<R> vpnt = pnt - CGAL::ORIGIN;
|
||||
|
||||
CGAL::Point_3<R> p1(-n3, n7, n11, n3 ); // (-1, 2,-3)
|
||||
|
|
|
|||
|
|
@ -24,6 +24,8 @@
|
|||
#ifndef CGAL__TEST_CLS_DIRECTION_2_H
|
||||
#define CGAL__TEST_CLS_DIRECTION_2_H
|
||||
|
||||
#include <CGAL/use.h>
|
||||
|
||||
template <class R>
|
||||
bool
|
||||
_test_cls_direction_2(const R& )
|
||||
|
|
@ -34,7 +36,7 @@ _test_cls_direction_2(const R& )
|
|||
|
||||
typename R::Direction_2 id;
|
||||
CGAL::Direction_2<R> d0;
|
||||
CGAL::Direction_2<R> d1(id);
|
||||
CGAL::Direction_2<R> d1(id); CGAL_USE(d1);
|
||||
|
||||
std::cout << '.';
|
||||
RT n0 = 10;
|
||||
|
|
|
|||
|
|
@ -24,6 +24,8 @@
|
|||
#ifndef CGAL__TEST_CLS_DIRECTION_3_H
|
||||
#define CGAL__TEST_CLS_DIRECTION_3_H
|
||||
|
||||
#include <CGAL/use.h>
|
||||
|
||||
template <class R>
|
||||
bool
|
||||
_test_cls_direction_3(const R& )
|
||||
|
|
@ -35,7 +37,7 @@ _test_cls_direction_3(const R& )
|
|||
typename R::Direction_3 id;
|
||||
|
||||
CGAL::Direction_3<R> d0;
|
||||
CGAL::Direction_3<R> d1(id);
|
||||
CGAL::Direction_3<R> d1(id); CGAL_USE(d1);
|
||||
|
||||
std::cout << '.';
|
||||
RT n0 = 10;
|
||||
|
|
|
|||
|
|
@ -24,6 +24,8 @@
|
|||
#ifndef CGAL__TEST_CLS_LINE_3_H
|
||||
#define CGAL__TEST_CLS_LINE_3_H
|
||||
|
||||
#include <CGAL/use.h>
|
||||
|
||||
template <class R>
|
||||
bool
|
||||
_test_cls_line_3(const R& )
|
||||
|
|
@ -33,8 +35,8 @@ _test_cls_line_3(const R& )
|
|||
typedef typename R::RT RT;
|
||||
|
||||
typename R::Line_3 il;
|
||||
CGAL::Line_3<R> l0( il );
|
||||
CGAL::Line_3<R> l1;
|
||||
CGAL::Line_3<R> l0( il ); CGAL_USE(l0);
|
||||
CGAL::Line_3<R> l1; CGAL_USE(l1);
|
||||
|
||||
RT n1 = 3;
|
||||
RT n2 = 53;
|
||||
|
|
|
|||
|
|
@ -24,6 +24,8 @@
|
|||
#ifndef CGAL__TEST_CLS_PLANE_3_H
|
||||
#define CGAL__TEST_CLS_PLANE_3_H
|
||||
|
||||
#include <CGAL/use.h>
|
||||
|
||||
template <class R>
|
||||
bool
|
||||
_test_cls_plane_3(const R& )
|
||||
|
|
@ -34,7 +36,7 @@ _test_cls_plane_3(const R& )
|
|||
typedef typename R::FT FT;
|
||||
|
||||
typename R::Plane_3 ip;
|
||||
CGAL::Plane_3<R> pl0(ip);
|
||||
CGAL::Plane_3<R> pl0(ip); CGAL_USE(pl0);
|
||||
|
||||
RT x1 = -1;
|
||||
RT x2 = 4;
|
||||
|
|
@ -45,7 +47,7 @@ _test_cls_plane_3(const R& )
|
|||
py(RT(0),RT(1),RT(0)),
|
||||
pz(RT(0),RT(0),RT(1));
|
||||
|
||||
CGAL::Point_3<R> p3(p1);
|
||||
CGAL::Point_3<R> p3(p1); CGAL_USE(p3);
|
||||
CGAL::Direction_3<R> d1( RT(5), RT(-5), RT(10) );
|
||||
CGAL::Vector_3<R> v1 = d1.vector();
|
||||
|
||||
|
|
@ -121,8 +123,8 @@ _test_cls_plane_3(const R& )
|
|||
assert( xy_pl.has_on( gnup ) );
|
||||
|
||||
CGAL::Vector_3<R> nov = pl1.orthogonal_vector();
|
||||
CGAL::Vector_3<R> vb1 = pl1.base1();
|
||||
CGAL::Vector_3<R> vb2 = pl1.base2();
|
||||
CGAL::Vector_3<R> vb1 = pl1.base1(); CGAL_USE(vb1);
|
||||
CGAL::Vector_3<R> vb2 = pl1.base2(); CGAL_USE(vb2);
|
||||
assert( (nov*pl1.base1()) == FT(0)&&(nov*pl1.base2()) == FT(0) );
|
||||
assert( (pl1.base2()*pl1.base1()) == FT(0) );
|
||||
assert( pl1.has_on(pl1.point() + pl1.base1()) );
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@
|
|||
#include <CGAL/Origin.h>
|
||||
#include <CGAL/Vector_2.h>
|
||||
#include <CGAL/Weighted_point_2.h>
|
||||
#include <CGAL/use.h>
|
||||
|
||||
#include <boost/type_traits/is_convertible.hpp>
|
||||
|
||||
|
|
@ -49,7 +50,7 @@ _test_cls_point_2(const R& )
|
|||
typedef typename R::Point_2::Cartesian_const_iterator CCI;
|
||||
|
||||
CGAL::Point_2<R> p1;
|
||||
CGAL::Point_2<R> p2(ip);
|
||||
CGAL::Point_2<R> p2(ip); CGAL_USE(p2);
|
||||
CGAL::Point_2<R> p0(CGAL::ORIGIN);
|
||||
|
||||
RT n1(-35 );
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@
|
|||
#include <CGAL/Origin.h>
|
||||
#include <CGAL/Vector_3.h>
|
||||
#include <CGAL/Weighted_point_3.h>
|
||||
#include <CGAL/use.h>
|
||||
|
||||
#include <cassert>
|
||||
#include <iostream>
|
||||
|
|
@ -46,7 +47,7 @@ _test_cls_point_3(const R& )
|
|||
typedef typename R::Point_3::Cartesian_const_iterator CCI;
|
||||
|
||||
CGAL::Point_3<R> p1;
|
||||
CGAL::Point_3<R> p2(ip);
|
||||
CGAL::Point_3<R> p2(ip); CGAL_USE(p2);
|
||||
CGAL::Point_3<R> p0(CGAL::ORIGIN);
|
||||
|
||||
RT n1(-35 );
|
||||
|
|
|
|||
|
|
@ -24,6 +24,8 @@
|
|||
#ifndef CGAL__TEST_CLS_VECTOR_2_H
|
||||
#define CGAL__TEST_CLS_VECTOR_2_H
|
||||
|
||||
#include <CGAL/use.h>
|
||||
|
||||
template <class R>
|
||||
bool
|
||||
_test_cls_vector_2(const R& )
|
||||
|
|
@ -37,7 +39,7 @@ _test_cls_vector_2(const R& )
|
|||
typedef typename R::Vector_2::Cartesian_const_iterator CCI;
|
||||
|
||||
CGAL::Vector_2<R> v1;
|
||||
CGAL::Vector_2<R> v2(iv);
|
||||
CGAL::Vector_2<R> v2(iv); CGAL_USE(v2);
|
||||
CGAL::Vector_2<R> v0(CGAL::NULL_VECTOR);
|
||||
|
||||
RT n1( 12 );
|
||||
|
|
|
|||
|
|
@ -24,6 +24,8 @@
|
|||
#ifndef CGAL__TEST_CLS_VECTOR_3_H
|
||||
#define CGAL__TEST_CLS_VECTOR_3_H
|
||||
|
||||
#include <CGAL/use.h>
|
||||
|
||||
template <class R>
|
||||
bool
|
||||
_test_cls_vector_3(const R& )
|
||||
|
|
@ -37,7 +39,7 @@ _test_cls_vector_3(const R& )
|
|||
typedef typename R::Vector_3::Cartesian_const_iterator CCI;
|
||||
|
||||
CGAL::Vector_3<R> v1;
|
||||
CGAL::Vector_3<R> v2(iv);
|
||||
CGAL::Vector_3<R> v2(iv); CGAL_USE(v2);
|
||||
CGAL::Vector_3<R> v0(CGAL::NULL_VECTOR);
|
||||
|
||||
RT n1( 12 );
|
||||
|
|
|
|||
Loading…
Reference in New Issue