1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2026-06-20 01:17:49 +02:00

Use FN_NO_RETURN macro consistently in tests.

These cases were either missed in 0dabf88e or added afterwards.
This commit is contained in:
David Steele
2025-10-05 12:32:06 +02:00
parent a451ed22f4
commit b4e3d21363
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -28,6 +28,6 @@ typedef struct HrnErrorThrowParam
#define hrnErrorThrowP(...) \
hrnErrorThrow((HrnErrorThrowParam){VAR_PARAM_INIT, __VA_ARGS__})
void hrnErrorThrow(const HrnErrorThrowParam param) __attribute__((__noreturn__));
FN_NO_RETURN void hrnErrorThrow(const HrnErrorThrowParam param);
#endif
+2 -2
View File
@@ -21,7 +21,7 @@ Test protocol server command handlers
***********************************************************************************************************************************/
#define TEST_PROTOCOL_COMMAND_ASSERT STRID5("assert", 0x2922ce610)
__attribute__((__noreturn__)) static ProtocolServerResult *
FN_NO_RETURN static ProtocolServerResult *
testCommandAssertProtocol(PackRead *const param)
{
FUNCTION_HARNESS_BEGIN();
@@ -39,7 +39,7 @@ testCommandAssertProtocol(PackRead *const param)
static unsigned int testCommandErrorProtocolTotal = 0;
__attribute__((__noreturn__)) static ProtocolServerResult *
FN_NO_RETURN static ProtocolServerResult *
testCommandErrorProtocol(PackRead *const param)
{
FUNCTION_HARNESS_BEGIN();