From ad1e3335384d1ceb61d7b0660f2c1aa623a4b08f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Thu, 7 Jul 2022 13:29:03 +0200 Subject: [PATCH] handle older GCC versions --- .../search_for_connected_components_in_labeled_image.h | 6 +++--- STL_Extension/include/CGAL/Uncertain.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Mesh_3/include/CGAL/Mesh_3/search_for_connected_components_in_labeled_image.h b/Mesh_3/include/CGAL/Mesh_3/search_for_connected_components_in_labeled_image.h index eeeec3d0271..83ce092a77d 100644 --- a/Mesh_3/include/CGAL/Mesh_3/search_for_connected_components_in_labeled_image.h +++ b/Mesh_3/include/CGAL/Mesh_3/search_for_connected_components_in_labeled_image.h @@ -73,16 +73,16 @@ search_for_connected_components_in_labeled_image(const CGAL::Image_3& image, for(uint i=0; i operator!(Uncertain a) return Uncertain(!a.sup(), !a.inf()); } -#ifdef __GNUC__ +#if defined(__GNUC__) && !defined(__clang__) # pragma GCC diagnostic push -# pragma GCC diagnostic ignored "-Wunknown-warning-option" +# pragma GCC diagnostic ignored "-Wpragmas" # pragma GCC diagnostic ignored "-Wbitwise-instead-of-logical" #endif inline @@ -329,7 +329,7 @@ Uncertain operator&(Uncertain a, bool b) { return Uncertain(a.inf() & b, a.sup() & b); } -#ifdef __GNUC__ +#if defined(__GNUC__) && !defined(__clang__) # pragma GCC diagnostic pop #endif