]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Quiet GCC
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 21 Apr 2021 20:14:31 +0000 (15:14 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 21 Apr 2021 20:14:31 +0000 (15:14 -0500)
src/lib/util/pair_test_helpers.h

index fe54b2ede92e1a733438b182509997b034a0c117..05b4db6223c2015fe3514dcd94c7a7449380c853 100644 (file)
@@ -30,6 +30,7 @@ extern "C" {
 #include <freeradius-devel/util/pair.h>
 #include <freeradius-devel/util/dict_test.h>
 
+DIAG_OFF(unused-variable)
 static char const       *test_string = "We love testing!";
 static size_t           test_string_len = 16;
 static uint8_t          test_octets[] = {
@@ -37,6 +38,7 @@ static uint8_t          test_octets[] = {
                                0x20, 0x74, 0x65, 0x69, 0x74, 0x20, 0x41,
                                0x63, 0x61, 0x64, 0x65, 0x6d, 0x79, 0x0a
                        };
+DIAG_ON(unused-variable)
 
 static inline int fr_pair_test_list_alloc(TALLOC_CTX *ctx, fr_pair_list_t *out,
                                          fr_dict_test_attr_t const *test_defs)