Modify

Opened 4 years ago

Last modified 4 years ago

#1639 confirmed defect

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

Reported by: anonymous Owned by: Jian Tao
Priority: minor Milestone:
Component: Cactus Version: development version
Keywords: Cc: jtao@…

Description

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.

Attachments (0)

Change History (2)

comment:1 Changed 4 years ago by Erik Schnetter

Exit and Abort never return; we should correct their return types.

comment:2 Changed 4 years ago by Ian Hinder

Status: newconfirmed
Summary: CCTK_ATTRIBUTESExit and Abort have return types which conflict with their NORETURN attributes

Modify Ticket

Change Properties
Set your email in Preferences
Action
as confirmed The owner will remain Jian Tao.
Next status will be 'review'.
as The resolution will be set.
to The owner will be changed from Jian Tao to the specified user.
The owner will be changed from Jian Tao to anonymous.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.