Skip to content

[CMAKE] noreturn function does return. Or _exit and abort are shadowed in the buildΒ #1298

@Tecnologic

Description

@Tecnologic

Hi all,

when i build with cmake i get the below warning:

[build] [2/36] Building C object hardware/batterycasecontroller/modm/CMakeFiles/modm.dir/ext/gcc/cabi.c.obj [build] C:/Projekte/unimoc/hardware/batterycasecontroller/modm/ext/gcc/cabi.c: In function '_exit': [build] C:/Projekte/unimoc/hardware/batterycasecontroller/modm/ext/gcc/cabi.c:20:1: warning: 'noreturn' function does return [build] 20 | } [build] | ^ [build] C:/Projekte/unimoc/hardware/batterycasecontroller/modm/ext/gcc/cabi.c: In function 'abort': [build] C:/Projekte/unimoc/hardware/batterycasecontroller/modm/ext/gcc/cabi.c:26:1: warning: 'noreturn' function does return [build] 26 | } [build] | ^

If i comment the _exit and abort fuction in cabi.c file the build is still successful but the warning is gone. So i suspect that a noreturn void _exit and noreturn void abort is defined somewere else. So i ask my self whether its an issue of the cmake build including a clib part that isn't supposed to be included in the build.

Does anyone have hints on this?

BR

Alex

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions