Exit and Abort have return types which conflict with their NORETURN attributes

Issue #1639 open
anonymous created an issue

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)

  1. Log in to comment