mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
Add some noreturn attributes based on compiler recommendations
This commit is contained in:
@ -40,6 +40,6 @@ extern void test_shm_mq_setup(int64 queue_size, int32 nworkers,
|
||||
shm_mq_handle **input);
|
||||
|
||||
/* Main entrypoint for a worker. */
|
||||
extern void test_shm_mq_main(Datum);
|
||||
extern void test_shm_mq_main(Datum) __attribute__((noreturn));
|
||||
|
||||
#endif
|
||||
|
@ -46,7 +46,7 @@ PG_MODULE_MAGIC;
|
||||
PG_FUNCTION_INFO_V1(worker_spi_launch);
|
||||
|
||||
void _PG_init(void);
|
||||
void worker_spi_main(Datum);
|
||||
void worker_spi_main(Datum) __attribute__((noreturn));
|
||||
|
||||
/* flags set by signal handlers */
|
||||
static volatile sig_atomic_t got_sighup = false;
|
||||
|
Reference in New Issue
Block a user