public inbox for [email protected]
help / color / mirror / Atom feedFrom: Bertrand Drouvot <[email protected]>
Subject: [PATCH v1] Replace deprecated StaticAssertStmt() with StaticAssertDecl()
Date: Tue, 14 Apr 2026 12:54:45 +0000
Commit 451650eaacd5 added a test for the StaticAssertStmt() macro in C++
extensions, but it was marked as deprecated in commit d50c86e74375.
There is no need to replace it with StaticAssertDecl() (like 66ad764c8d5 did),
as the exact same StaticAssertDecl() test has also be added in 451650eaacd5.
Author: Bertrand Drouvot <[email protected]>
Discussion: https://postgr.es/m/adeQc3I/[email protected]
---
src/test/modules/test_cplusplusext/test_cplusplusext.cpp | 1 -
1 file changed, 1 deletion(-)
100.0% src/test/modules/test_cplusplusext/
diff --git a/src/test/modules/test_cplusplusext/test_cplusplusext.cpp b/src/test/modules/test_cplusplusext/test_cplusplusext.cpp
index 93cd7dd07f7..ca66c69fe34 100644
--- a/src/test/modules/test_cplusplusext/test_cplusplusext.cpp
+++ b/src/test/modules/test_cplusplusext/test_cplusplusext.cpp
@@ -51,7 +51,6 @@ test_cplusplus_add(PG_FUNCTION_ARGS)
(void) rtr;
}
- StaticAssertStmt(sizeof(int32) == 4, "int32 should be 4 bytes");
(void) StaticAssertExpr(sizeof(int64) == 8, "int64 should be 8 bytes");
list_free(list);
--
2.34.1
--zif7kU/5BHXU/TDM--
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected]
Subject: Re: [PATCH v1] Replace deprecated StaticAssertStmt() with StaticAssertDecl()
In-Reply-To: <no-message-id-602475@localhost>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox