From: Nick Mathewson Date: Mon, 19 May 2025 01:52:36 +0000 (-0400) Subject: Make an exception to one of the NONSTRINGs X-Git-Tag: tor-0.4.8.17~8^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a701f4b99cf81825e317b30b7dc2d86da58cde5;p=thirdparty%2Ftor.git Make an exception to one of the NONSTRINGs Older GCCs accept the attribute but don't believe it can appear before an array. --- 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];