root/root-endian-warn.patch
Mattias Ellert 2f8e3d96d1 Update to 6.24.04
New subpackages: root-roofit-common, root-roofit-dataframe-helpers,
  root-roofit-hs3, root-tmva-sofie and root-tmva-sofie-parser
Removed subpackages: root-memstat and root-montecarlo-vmc
Drop the doxygen generated root-doc package (doxygen runs out of memory)
Dropped patches: 17
New patches: 22
Updated patches: 5
2022-04-05 14:39:21 +02:00

33 lines
1.3 KiB
Diff

From ba0dc65e558fd916dbe18f8dbe8208a3be932c25 Mon Sep 17 00:00:00 2001
From: Mattias Ellert <mattias.ellert@physics.uu.se>
Date: Mon, 28 Mar 2022 09:20:18 +0200
Subject: [PATCH 2/2] Ignore warnings about RooNaNPacker not being implemented
for big endian
This warning is triggered in many tests, so it makes sense to put it
in the default ignored set.
---
test/unit_testing_support/ROOTUnitTestSupport.cxx | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/test/unit_testing_support/ROOTUnitTestSupport.cxx b/test/unit_testing_support/ROOTUnitTestSupport.cxx
index 259ab4e09c..79cd476950 100644
--- a/test/unit_testing_support/ROOTUnitTestSupport.cxx
+++ b/test/unit_testing_support/ROOTUnitTestSupport.cxx
@@ -73,6 +73,13 @@ static struct ForbidDiagnostics {
return;
}
+ // FIXME: RooNaNPacker warns about not being implemented for big endian
+ if (level == kWarning
+ && strcmp(msg, "Fast recovery from undefined function values only implemented for little-endian machines. If necessary, request an extension of functionality on https://root.cern") == 0) {
+ std::cerr << "Warning in " << location << " " << msg << std::endl;
+ return;
+ }
+
FAIL() << "Received unexpected diagnostic of severity "
<< level
<< " at '" << location << "' reading '" << msg << "'.\n"
--
2.35.1