Project

General

Profile

Bug #1382

Updated by Mathieu Desnoyers 10 months ago

stable-2.0 branch at commit 375847ee0df2f fails to build on my debian laptop: 

 <pre> 
 make[2]: Entering directory '/home/compudj/git/babeltrace/src/ctf-writer' 
   CC         trace.lo 
 In file included from object-pool.h:54, 
                  from clock-class.h:29, 
                  from trace.c:43: 
 In function 'bt_ctf_object_set_parent', 
     inlined from 'bt_ctf_object_set_parent' at object.h:120:6, 
     inlined from 'bt_ctf_trace_common_add_stream_class' at trace.c:1243:3: 
 object.h:141:26: error: null pointer dereference [-Werror=null-dereference] 
   141 |                   if (child->parent) { 
       |                       ~~~~~^~~~~~~~ 
 object.h:141:26: error: null pointer dereference [-Werror=null-dereference] 
 </pre> 

 with    gcc version 12.2.0 (Debian 12.2.0-14)

Back