PostgreSQL defects
PostgreSQL defects
Posted Mar 9, 2006 17:22 UTC (Thu) by nix (subscriber, #2304)In reply to: PostgreSQL defects by alvherre
Parent article: Some notes from the Coverity survey
Well, you certainly could use __attribute__((noreturn)) in this situation: it doesn't mean `function never returns anywhere'; just `function never returns to its caller', so functions that always longjmp() are candidates.
It's really easy to make __attribute__'s invisible to non-GCC compilers:
#ifndef __GNUC__
#define __attribute__(x)
#endif
__attribute__((noreturn)) at least has been supported for donkey's years, so you don't have to worry about versions of GCC that support __attribute__ but not noreturn.
