Project

General

Profile

Actions

Bug #1382

closed

stable-2.0 branch fails to build

Added by Mathieu Desnoyers 10 months ago. Updated 10 months ago.

Status:
Resolved
Priority:
Normal
Category:
-
Start date:
07/12/2023
Due date:
% Done:

0%

Estimated time:

Description

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

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]

with gcc version 12.2.0 (Debian 12.2.0-14)

Actions

Also available in: Atom PDF