Skip to content

Commit 09e56c5

Browse files
committed
Fix some warnings for Windows.
In the deprecated class Implicit_vector_to_labeled_function_wrapper, an implicit conversion from an unsigned int to a signed int caused a warning. On windows, pragma message needs parenthesis.
1 parent 78261fc commit 09e56c5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Mesh_3/include/CGAL/Mesh_3/Implicit_to_labeled_function_wrapper.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
#ifdef __GNUG__
3939
#warning deprecated : use <CGAL/Labeled_mesh_domain_3.h> instead.
4040
#else
41-
#pragma message "WARNING (deprecated) : use <CGAL/Labeled_mesh_domain_3.h> instead."
41+
#pragma message("WARNING (deprecated) : use <CGAL/Labeled_mesh_domain_3.h> instead.")
4242
#endif
4343

4444
#include <vector>
@@ -121,7 +121,7 @@ class Implicit_vector_to_labeled_function_wrapper
121121
/// Operator ()
122122
return_type operator()(const Point_3& p, const bool = true) const
123123
{
124-
int nb_func = function_vector_.size();
124+
int nb_func = static_cast<int>(function_vector_.size());
125125
if ( nb_func > 8 )
126126
{
127127
CGAL_error_msg("We support at most 8 functions !");

Mesh_3/include/CGAL/Mesh_3/Labeled_mesh_domain_3.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#ifdef __GNUG__
3030
#warning deprecated : use <CGAL/Labeled_mesh_domain_3.h> instead.
3131
#else
32-
#pragma message "WARNING (deprecated) : use <CGAL/Labeled_mesh_domain_3.h> instead."
32+
#pragma message("WARNING (deprecated) : use <CGAL/Labeled_mesh_domain_3.h> instead.")
3333
#endif
3434

3535
#include <CGAL/Mesh_3/config.h>

0 commit comments

Comments
 (0)