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.
This commit is contained in:
2025-03-12 12:07:34 +01:00
committed by Andrew Johnson
parent 350570134e
commit b97a35fec8

View File

@ -60,6 +60,9 @@
/* /*
* No return marker * No return marker
*/ */
#ifndef vxWorks
// VxWorks does not mark abort() or exit() noreturn!
#define EPICS_NORETURN __attribute__((noreturn)) #define EPICS_NORETURN __attribute__((noreturn))
#endif
#endif /* ifndef compilerSpecific_h */ #endif /* ifndef compilerSpecific_h */