Skip to content

Build error with GCC13.2 and -flto #452

@cpackham-atlnz

Description

@cpackham-atlnz
armv7,apteryx: lto-wrapper: warning: using serial compilation of 5 LTRANS jobs
armv7,apteryx: lto-wrapper: note: see the '-flto' option documentation for more information
armv7,dbus: checking for clearenv... yes
armv7,dbus: checking for unsetenv... yes
armv7,apteryx: callbacks.c: In function 'test_cb_release':
armv7,apteryx: callbacks.c:914:5: error: '__atomic_load_4' writing 4 bytes into a region of size 0 overflows the destination [-Werror=stringop-overflow=]
armv7,apteryx:   914 |     CU_ASSERT (g_atomic_int_get (&cb->refcnt) == 1);
armv7,apteryx:       |     ^
armv7,apteryx: lto1: note: destination object is likely at address zero

haven't dug into it yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions