From 15391f7d19a188799e26602853b6aadb0643770c Mon Sep 17 00:00:00 2001 From: Richard Larsson Date: Fri, 17 Jul 2026 12:06:41 +0900 Subject: [PATCH 1/2] Actively instead of passively ignore warning --- src/tests/scattering/test_utils.h.in | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/tests/scattering/test_utils.h.in b/src/tests/scattering/test_utils.h.in index 653589b0ed..fb81e45431 100644 --- a/src/tests/scattering/test_utils.h.in +++ b/src/tests/scattering/test_utils.h.in @@ -184,6 +184,14 @@ template Numeric max_rel_error(const A& a, const B& b) return max; } +#if defined(__GNUC__) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wconversion" +#elif defined(__clang__) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wimplicit-int-float-conversion" +#endif + /** Functional filling of tensor. * * Applies a given function mapping element coordinates to tensor @@ -226,6 +234,10 @@ template void fill_along_axis(Tensor& t) { generate(t, get_coord); } +#if defined(__GNUC__) || defined(__clang__) +#pragma GCC diagnostic pop +#endif + /** Fill tensor with increasing values along axis. * * Fills a tensor with values so that each element contains From c47f2c8391447c83b5fa2c21881f6b6fa6a92363 Mon Sep 17 00:00:00 2001 From: Richard Larsson Date: Fri, 17 Jul 2026 12:08:30 +0900 Subject: [PATCH 2/2] Remove OMP nesting since it is deprecated in GCC16 and we did not use them --- src/core/util/arts_omp.cc | 30 ------------------------------ src/core/util/arts_omp.h | 4 ---- 2 files changed, 34 deletions(-) diff --git a/src/core/util/arts_omp.cc b/src/core/util/arts_omp.cc index 73091d995b..bd3be78e7f 100644 --- a/src/core/util/arts_omp.cc +++ b/src/core/util/arts_omp.cc @@ -69,36 +69,6 @@ void arts_omp_set_num_threads(int i [[maybe_unused]]) { #endif } -//! Wrapper for omp_get_nested -/*! - This wrapper works with and without OMP support. - - \return 1 or 0, depending on if nested parallel execution is enabled or not. -*/ -int arts_omp_get_nested() { -#ifdef _OPENMP - int nested = omp_get_nested(); -#else - int nested = 0; -#endif - - return nested; -} - -//! Wrapper for omp_set_nested -/*! - This wrapper works with and without OMP support. - - \param i Turn on nested parallelism with 1, turn off with 0. -*/ -void arts_omp_set_nested(int i [[maybe_unused]]) { -#ifdef _OPENMP - omp_set_nested(i); -#else - // Nothing to do here. -#endif -} - //! Wrapper for omp_set_dynamic /*! This wrapper works with and without OMP support. diff --git a/src/core/util/arts_omp.h b/src/core/util/arts_omp.h index 3fe9a7055f..3f209ac31a 100644 --- a/src/core/util/arts_omp.h +++ b/src/core/util/arts_omp.h @@ -27,12 +27,8 @@ bool arts_omp_in_parallel(); int arts_omp_get_thread_num(); -int arts_omp_get_nested(); - void arts_omp_set_num_threads(int i); -void arts_omp_set_nested(int i); - void arts_omp_set_dynamic(int i); bool arts_omp_parallel(unsigned long long n = -1, bool additional_condition = true);