]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Make an exception to one of the NONSTRINGs
authorNick Mathewson <nickm@torproject.org>
Mon, 19 May 2025 01:52:36 +0000 (21:52 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 19 May 2025 01:52:36 +0000 (21:52 -0400)
Older GCCs accept the attribute but don't believe it can appear
before an array.

src/test/test_relaycrypt.c

index ec0891ef4426f72d035fde8bb6df3f3f59913cba..b93c1d470ad5426b84652a869206f73ca5b3d7fb 100644 (file)
 
 #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];