Skip to content

[Warning] TStreamerInfo.cxx: ‘this’ pointer is null [-Wnonnull] #8981

@kgizdov

Description

@kgizdov
  • Checked for duplicates

Describe the bug

Warning during build time ROOT 6.24.06, GCC 11.1, Arch Linux x86_64

[ 77%] Built target cppyy3_9
/build/root/src/root-6.24.06/io/io/src/TStreamerInfo.cxx: In member function ‘virtual void TStreamerInfo::BuildCheck(TFile*, Bool_t)’:
/build/root/src/root-6.24.06/io/io/src/TStreamerInfo.cxx:1110:29: warning: ‘this’ pointer is null [-Wnonnull]
 1110 |                      Warning("BuildCheck", "\n\
      |                      ~~~~~~~^~~~~~~~~~~~~~~~~~~
 1111 |    The StreamerInfo from %s does not match existing one (%s:%d)\n\
      |    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1112 |    The existing one has not been used yet and will be discarded.\n\
      |    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1113 |    Reading should work properly, however writing object of\n\
      |    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1114 |    type %s will not work properly.  Most likely the version number\n\
      |    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1115 |    of the class was not properly updated [See ClassDef(%s,%d)].",
      |    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1116 |                              file->GetName(), GetName(), fClassVersion, GetName(), GetName(), fClassVersion);
      |                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 77%] Linking CXX shared library ../../lib/libRIO.so

Expected behavior

No null pointers.

To Reproduce

  1. Build ROOT
  2. See warning

Setup

  1. ROOT version: 6.24.06
  2. Operating system: Arch Linux x86_64
  3. How you obtained ROOT: GitHub, built from source

Additional context

Build options located here

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions