From b97a35fec87ae9186026d8df118f990e7d24f814 Mon Sep 17 00:00:00 2001 From: Dirk Zimoch Date: Wed, 12 Mar 2025 12:07:34 +0100 Subject: [PATCH] Don't use __attribute__((noreturn)) on VxWorks VxWorks does not mark abort() or exit() as noreturn. Thus, functions declared noreturn which end in a call to those functions cause a compiler warning on vxWorks. --- modules/libcom/src/osi/compiler/gcc/compilerSpecific.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/libcom/src/osi/compiler/gcc/compilerSpecific.h b/modules/libcom/src/osi/compiler/gcc/compilerSpecific.h index 47d06780f..42723b97c 100644 --- a/modules/libcom/src/osi/compiler/gcc/compilerSpecific.h +++ b/modules/libcom/src/osi/compiler/gcc/compilerSpecific.h @@ -60,6 +60,9 @@ /* * No return marker */ +#ifndef vxWorks +// VxWorks does not mark abort() or exit() noreturn! #define EPICS_NORETURN __attribute__((noreturn)) +#endif #endif /* ifndef compilerSpecific_h */