Index: tests/enum_tests/planet.cfa
===================================================================
--- tests/enum_tests/planet.cfa	(revision c62013ecf0b07694154ca3cbdff83310eedb1dd9)
+++ tests/enum_tests/planet.cfa	(revision ceb4cc1ed7cb63e19737c8b384cc214d9857a6c3)
@@ -37,9 +37,15 @@
 //	Planet rp = fromInt( prng( countof( Planet ) ) );	// select random orbiting body
 
+	#if __GNUC__ >= 12									// valid GNU compiler diagnostic ?
 	#pragma GCC diagnostic push
 	// FIX ME: false positive with gcc > 11, so disable.
 	#pragma GCC diagnostic ignored "-Wdangling-pointer"
+	#endif // __GNUC__ >= 12
+
 	Planet rp = fromInt( countof( Planet ) - 1 );		// non-random for test suite
+
+	#if __GNUC__ >= 12									// valid GNU compiler diagnostic ?
 	#pragma GCC diagnostic pop
+	#endif // __GNUC__ >= 12
 
 	choose( rp ) {										// implicit breaks
