From 5c0a25f2123e8c40d91eeec8c9468244225fc9c2 Mon Sep 17 00:00:00 2001 From: ferdymercury Date: Fri, 4 Sep 2026 14:44:53 +0200 Subject: [PATCH] [core] warn when using headers deprecated in ROOT 6.20 --- README/ReleaseNotes/v642/index.md | 1 + core/base/inc/Gtypes.h | 2 ++ core/base/inc/Htypes.h | 4 +++- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/README/ReleaseNotes/v642/index.md b/README/ReleaseNotes/v642/index.md index e83165d9f748d..872c546b59780 100644 --- a/README/ReleaseNotes/v642/index.md +++ b/README/ReleaseNotes/v642/index.md @@ -64,6 +64,7 @@ Users are encouraged to export their models to ONNX and use the retained ONNX pa * The **RooStats::DebuggingSampler** and **RooStats::DebuggingTestStat** classes are removed. They were mock implementations of the `TestStatSampler` and `TestStatistic` interfaces that returned uniform random numbers independent of the data, only meant for debugging the RooStats framework itself during its initial development. * The `RooTrace` class is deprecated and will be removed in ROOT 6.44. It was a RooFit-specific memory tracer whose instrumentation hooks are compiled out by default, so it has been inert and untested for years. For memory debugging, please use general-purpose tools such as AddressSanitizer or Valgrind instead. * Support for the AIX operating system has been removed from the codebase. This support has not been tested since the late v5 releases and the LLVM JIT is not yet supporting AIX. +* The headers Htypes.h and Gtypes.h that were deprecated in ROOT 6.20 will now emit warnings and will be fully removed in ROOT 6.44. ## Build System diff --git a/core/base/inc/Gtypes.h b/core/base/inc/Gtypes.h index 8b5eec6ce7e0b..7d877a58937ac 100644 --- a/core/base/inc/Gtypes.h +++ b/core/base/inc/Gtypes.h @@ -21,6 +21,8 @@ // // ////////////////////////////////////////////////////////////////////////// +#warning "The header Gtypes.h is deprecated and will be removed in ROOT 6.44, include instead Rtypes.h" + #include "Rtypes.h" #endif diff --git a/core/base/inc/Htypes.h b/core/base/inc/Htypes.h index 1d257f40c435a..8de4114437efe 100644 --- a/core/base/inc/Htypes.h +++ b/core/base/inc/Htypes.h @@ -17,10 +17,12 @@ // // // Types used by the histogramming classes. // // // -// Obsolete: typedefs included in Rtypes.h // +// Obsolete include: typedefs included in Rtypes.h // // // ////////////////////////////////////////////////////////////////////////// +#warning "The header Htypes.h is deprecated and will be removed in ROOT 6.44, include instead Rtypes.h" + #include "Rtypes.h" #endif