From bd5c4931c013a9806b1a8dc6aad955fd159713d2 Mon Sep 17 00:00:00 2001 From: Patrick Avery Date: Wed, 20 May 2026 16:00:23 -0500 Subject: [PATCH] Suppress omp_set_nested routine deprecated warning There is no way to remove this warning until it is fixed upstream in numba. Signed-off-by: Patrick Avery --- hexrdgui/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hexrdgui/main.py b/hexrdgui/main.py index 4b078c6b0..f49d0ee3a 100644 --- a/hexrdgui/main.py +++ b/hexrdgui/main.py @@ -25,6 +25,9 @@ # rather than silently running with undefined behavior. # workqueue is not viable (crashes on concurrent thread access). os.environ.setdefault('NUMBA_THREADING_LAYER', 'omp') + # Suppress the "omp_set_nested routine deprecated" C-level warning + # from numba's omppool.cpp (https://github.com/numba/numba/issues/5275). + os.environ.setdefault('KMP_WARNINGS', 'false') from PySide6.QtCore import QCoreApplication, Qt from PySide6.QtGui import QIcon, QPixmap