1 // Copyright (c) 2007 INRIA Sophia-Antipolis (France). 2 // All rights reserved. 3 // 4 // This file is part of CGAL (www.cgal.org) 5 // 6 // $URL: https://github.com/CGAL/cgal/blob/v5.3/Installation/include/CGAL/use.h $ 7 // $Id: use.h 52164b1 2019-10-19T15:34:59+02:00 Sébastien Loriot 8 // SPDX-License-Identifier: LGPL-3.0-or-later OR LicenseRef-Commercial 9 // 10 // Author(s) : Sylvain Pion 11 12 #ifndef CGAL_USE_H 13 #define CGAL_USE_H 14 15 namespace CGAL { namespace internal { 16 17 template < typename T > inline use(const T &)18void use(const T&) {} 19 use_type()20template<typename> void use_type() {} 21 22 } } 23 24 /// CGAL_USE() is a macro which aims at removing "variable is unused" warnings. 25 #define CGAL_USE(x) ::CGAL::internal::use(x) 26 27 /// CGAL_USE_TYPE() is a macro which aims at removing "typedef locally 28 /// defined but not used" warnings. 29 #define CGAL_USE_TYPE(T) ::CGAL::internal::use_type<T>() 30 31 #endif // CGAL_USE_H 32