- removed comment
Exit and Abort have return types which conflict with their NORETURN attributes
Issue #1639
open
In CommOverloadables.h
#define ATTRIBUTES CCTK_ATTRIBUTE_NORETURN OVERLOADABLE(Exit) OVERLOADABLE(Abort)
Exit and Abort are defined as functions returning an integer, but they are explicitly set with noreturn in CommOverloadables.h.
This will also cause a warning for CCTK_VError (was set attribute as no return in the definition too), which calls CCTK_Abort that returns an integer.
Keyword:
Comments (2)
-
-
- changed title to Exit and Abort have return types which conflict with their NORETURN attributes
- changed status to open
- removed comment
- Log in to comment
Exit and Abort never return; we should correct their return types.