Skip to content

Conversation

@guitargeek
Copy link
Contributor

The last commit that changed the tests left a compiler warning:

In file included from /home/rembserj/code/root/root_src/tmva/sofie/test/TestCustomModelsFromONNX.cxx:3:
/home/rembserj/code/root/root_src/tmva/sofie/test/test_helpers.h: In instantiation of ‘OutputType_t runModel(std::string, const std::string&, std::string, const Ts& ...) [with OutputType_t = std::vector<float>; Ts = {}; std::string = std::__cxx11::basic_string<char>]’:
/home/rembserj/code/root/root_src/tmva/sofie/test/TestCustomModelsFromONNX.cxx:318:4:   required from here
  130 |    auto output = runModel<OutputType>(#OutputType, _modelName, "");
      |                  ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rembserj/code/root/root_src/tmva/sofie/test/test_helpers.h:74:9: warning: variable ‘type_name’ set but not used [-Wunused-but-set-variable]
   74 |    auto type_name = []<typename T>() {
      |         ^~~~~~~~~
/home/rembserj/code/root/root_src/tmva/sofie/test/test_helpers.h:107:9: warning: variable ‘first’ set but not used [-Wunused-but-set-variable]
  107 |    bool first = true;
      |         ^~~~~
cc1plus: note: unrecognized command-line option ‘-Wno-unused-command-line-argument’ may have been intended to silence earlier diagnostics

This can be avoided by guarding the parameter pack expension in an if clause that checks if the size of the parameter pack is not empty.

The last commit that changed the tests left a compiler warning:
```txt
In file included from /home/rembserj/code/root/root_src/tmva/sofie/test/TestCustomModelsFromONNX.cxx:3:
/home/rembserj/code/root/root_src/tmva/sofie/test/test_helpers.h: In instantiation of ‘OutputType_t runModel(std::string, const std::string&, std::string, const Ts& ...) [with OutputType_t = std::vector<float>; Ts = {}; std::string = std::__cxx11::basic_string<char>]’:
/home/rembserj/code/root/root_src/tmva/sofie/test/TestCustomModelsFromONNX.cxx:318:4:   required from here
  130 |    auto output = runModel<OutputType>(#OutputType, _modelName, "");
      |                  ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rembserj/code/root/root_src/tmva/sofie/test/test_helpers.h:74:9: warning: variable ‘type_name’ set but not used [-Wunused-but-set-variable]
   74 |    auto type_name = []<typename T>() {
      |         ^~~~~~~~~
/home/rembserj/code/root/root_src/tmva/sofie/test/test_helpers.h:107:9: warning: variable ‘first’ set but not used [-Wunused-but-set-variable]
  107 |    bool first = true;
      |         ^~~~~
cc1plus: note: unrecognized command-line option ‘-Wno-unused-command-line-argument’ may have been intended to silence earlier diagnostics
```
This can be avoided by guarding the parameter pack expension in an if
clause that checks if the size of the parameter pack is not empty.
@guitargeek guitargeek self-assigned this Feb 9, 2026
@guitargeek guitargeek requested a review from lmoneta as a code owner February 9, 2026 18:15
Copy link
Member

@vepadulano vepadulano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I don't think the CI failures are related but it would still be nice to merge with a green CI.

@github-actions
Copy link

github-actions bot commented Feb 9, 2026

Test Results

    22 files      22 suites   3d 11h 19m 20s ⏱️
 3 787 tests  3 787 ✅ 0 💤 0 ❌
75 289 runs  75 289 ✅ 0 💤 0 ❌

Results for commit d37cc4a.

♻️ This comment has been updated with latest results.

@guitargeek guitargeek merged commit 2e8c34a into root-project:master Feb 10, 2026
49 of 53 checks passed
@guitargeek guitargeek deleted the followup branch February 10, 2026 04:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants