From 9a701f4b99cf81825e317b30b7dc2d86da58cde5 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Sun, 18 May 2025 21:52:36 -0400 Subject: [PATCH] Make an exception to one of the NONSTRINGs Older GCCs accept the attribute but don't believe it can appear before an array. --- src/test/test_relaycrypt.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/test/test_relaycrypt.c b/src/test/test_relaycrypt.c index ec0891ef44..b93c1d470a 100644 --- a/src/test/test_relaycrypt.c +++ b/src/test/test_relaycrypt.c @@ -19,11 +19,18 @@ #include "test/test.h" +#ifdef __GNUC__ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wattributes" +#endif NONSTRING static const char KEY_MATERIAL[3][CPATH_KEY_MATERIAL_LEN] = { " 'My public key is in this signed x509 object', said Tom assertively.", "'Let's chart the pedal phlanges in the tomb', said Tom cryptographically", " 'Segmentation fault bugs don't _just happen_', said Tom seethingly.", }; +#ifdef __GNUC__ +#pragma GCC diagnostic pop +#endif typedef struct testing_circuitset_t { or_circuit_t *or_circ[3]; -- 2.47.2