commit 9a701f4b99cf81825e317b30b7dc2d86da58cde5
parent a40c4da985a21da9f1656404cddd767b5303c909
Author: Nick Mathewson <nickm@torproject.org>
Date: Sun, 18 May 2025 21:52:36 -0400
Make an exception to one of the NONSTRINGs
Older GCCs accept the attribute but don't believe it can appear
before an array.
Diffstat:
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git 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];