Skip to content

Commit

Permalink
declare ddsrt_abort and ddsrt_exit as noreturn
Browse files Browse the repository at this point in the history
  • Loading branch information
poetinger committed Nov 13, 2023
1 parent f5515eb commit 778fedb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ddsrt/include/dds/ddsrt/process.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include "dds/ddsrt/time.h"
#include "dds/ddsrt/types.h"
#include "dds/ddsrt/retcode.h"
#include "dds/ddsrt/attributes.h"

#if DDSRT_WITH_FREERTOS
#include <FreeRTOS.h>
Expand Down Expand Up @@ -76,7 +77,7 @@ ddsrt_getprocessname(void);
* Does not return. Immediately terminates the process.
*/
DDS_EXPORT void
ddsrt_abort(void);
ddsrt_abort (void) ddsrt_attribute_noreturn;

/**
* @brief Performs a normal process termination.
Expand All @@ -85,7 +86,7 @@ ddsrt_abort(void);
* @returns The least significant byte of `status` is returned to the parent.
*/
DDS_EXPORT void
ddsrt_exit(int status);
ddsrt_exit(int status) ddsrt_attribute_noreturn;

#if defined (__cplusplus)
}
Expand Down

0 comments on commit 778fedb

Please sign in to comment.