Index: tests/array-collections/boxed.bookend.cfa
===================================================================
--- tests/array-collections/boxed.bookend.cfa	(revision a9e327a4c940f5eb346761a8a95ae81f0b751262)
+++ tests/array-collections/boxed.bookend.cfa	(revision 829821c468be4f6d1bc7cd0065241c9c9f738b87)
@@ -27,4 +27,10 @@
 static char * bookend_hi = 0p;
 
+// bookend pointers are set to stack addresses and compared (but not dereferenced)
+// after their functions exit; they are "dangling"
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wpragmas" // -Wdangling-pointer unrecognized until GCC 12
+#pragma GCC diagnostic ignored "-Wdangling-pointer"
+
 void bookendInner( void ) {
     char var = 'x';
@@ -35,13 +41,15 @@
 #define TC(...)
 #define TR( TRID, SZS, SZV, ETG, ACCS, SPS, OVLD ) \
-    F_SIG( bookendOuter, TRID, SZS, SZV, ACCS, SPS, OVLD ) {                                  \
+    F_SIG( bookendOuter, TRID, SZS, SZV, ACCS, SPS, OVLD ) {                         \
         char var = 'x';                                                              \
         (void) var;                                                                  \
         bookend_hi = & var;                                                          \
-        return CALL( allocAndAccess, TRID, SZS, n, expectedElmSz, tcid, vart );     \
+        return CALL( allocAndAccess, TRID, SZS, n, expectedElmSz, tcid, vart );      \
     }
 #include "boxed.cases.hfa"
 #undef TC
 #undef TR
+
+#pragma GCC diagnostic pop
 
 void resetBookends( void ) {
Index: tests/malloc.cfa
===================================================================
--- tests/malloc.cfa	(revision a9e327a4c940f5eb346761a8a95ae81f0b751262)
+++ tests/malloc.cfa	(revision 829821c468be4f6d1bc7cd0065241c9c9f738b87)
@@ -64,5 +64,9 @@
 	free( ip );
 
+  #pragma GCC diagnostic push
+  #pragma GCC diagnostic ignored "-Wpragmas" // -Walloc-size unrecognized until GCC 14
+  #pragma GCC diagnostic ignored "-Walloc-size"
 	ip = (int *)malloc( 0 );
+  #pragma GCC diagnostic pop
 	test_base( ip, 0, libAlign );
 	test_use( ip );
