Skip to content

Conversation

@guitargeek
Copy link
Contributor

Follow up on #20071.

Fix the following compiler warnings:

/home/rembserj/code/root/root_src/tmva/tmva/inc/TMVA/BatchGenerator/RBatchLoader.hxx:46:16: warning: private field 'fChunkSize' is not used [-Wunused-private-field]
   46 |    std::size_t fChunkSize;
      |                ^
/home/rembserj/code/root/root_src/tmva/tmva/inc/TMVA/BatchGenerator/RBatchLoader.hxx:49:16: warning: private field 'fMaxBatches' is not used [-Wunused-private-field]
   49 |    std::size_t fMaxBatches;
      |                ^
/home/rembserj/code/root/root_src/tmva/tmva/inc/TMVA/BatchGenerator/RBatchLoader.hxx:50:16: warning: private field 'fTrainingRemainderRow' is not used [-Wunused-private-field]
   50 |    std::size_t fTrainingRemainderRow = 0;
      |                ^
/home/rembserj/code/root/root_src/tmva/tmva/inc/TMVA/BatchGenerator/RBatchLoader.hxx:51:16: warning: private field 'fValidationRemainderRow' is not used [-Wunused-private-field]
   51 |    std::size_t fValidationRemainderRow = 0;
      |                ^

Also, use inline namespaces for code brevity and remove some comments that trigger clang-format to not run on the doc string, although it only suggests harmless line breaks that don't change how the rendered doxygen looks like.

@guitargeek guitargeek requested a review from vepadulano October 22, 2025 19:59
@guitargeek guitargeek self-assigned this Oct 22, 2025
@guitargeek guitargeek requested a review from lmoneta as a code owner October 22, 2025 19:59
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.

Nice catch thanks!

Follow up on root-project#20071.

Fix the following compiler warnings:
```txt
/home/rembserj/code/root/root_src/tmva/tmva/inc/TMVA/BatchGenerator/RBatchLoader.hxx:46:16: warning: private field 'fChunkSize' is not used [-Wunused-private-field]
   46 |    std::size_t fChunkSize;
      |                ^
/home/rembserj/code/root/root_src/tmva/tmva/inc/TMVA/BatchGenerator/RBatchLoader.hxx:49:16: warning: private field 'fMaxBatches' is not used [-Wunused-private-field]
   49 |    std::size_t fMaxBatches;
      |                ^
/home/rembserj/code/root/root_src/tmva/tmva/inc/TMVA/BatchGenerator/RBatchLoader.hxx:50:16: warning: private field 'fTrainingRemainderRow' is not used [-Wunused-private-field]
   50 |    std::size_t fTrainingRemainderRow = 0;
      |                ^
/home/rembserj/code/root/root_src/tmva/tmva/inc/TMVA/BatchGenerator/RBatchLoader.hxx:51:16: warning: private field 'fValidationRemainderRow' is not used [-Wunused-private-field]
   51 |    std::size_t fValidationRemainderRow = 0;
      |                ^
```

Also, use inline namespaces for code brevity and remove some comments
that trigger clang-format to not run on the doc string, although it only
suggests harmless line breaks that don't change how the rendered doxygen
looks like.
@guitargeek guitargeek merged commit d51f7e9 into root-project:master Oct 22, 2025
26 checks passed
@guitargeek guitargeek deleted the batchgen_warnings branch October 22, 2025 23:23
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.

3 participants