-
Notifications
You must be signed in to change notification settings - Fork 1.5k
[Warning] TStreamerInfo.cxx: ‘this’ pointer is null [-Wnonnull] #8981
Copy link
Copy link
Closed
Description
- 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
- Build ROOT
- See warning
Setup
- ROOT version: 6.24.06
- Operating system: Arch Linux x86_64
- How you obtained ROOT: GitHub, built from source
Additional context
Build options located here
Reactions are currently unavailable