]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
turn off clang-specific complaints. The code is fine
authorAlan T. DeKok <aland@freeradius.org>
Sun, 17 Jan 2021 14:07:34 +0000 (09:07 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 17 Jan 2021 14:07:34 +0000 (09:07 -0500)
src/protocols/radius/abinary.c
src/protocols/tacacs/tacacs.h

index 08826ac76f2754724e56c2f47f163e2a3dee3b84..bac382f4f53745039a9990808b86f53582057f47 100644 (file)
@@ -31,6 +31,10 @@ RCSID("$Id$")
 
 #include <ctype.h>
 
+#if defined(__clang__)
+#pragma clang diagnostic ignored "-Wflexible-array-extensions"
+#endif
+
 /*
  * Two types of filters are supported, GENERIC and IP.  The identifiers
  * are:
index 46b323918acf4527cf8f5f7d6cc778b89789fce9..a318cd15974cc68566e4ed11fa71e14ffd95f67a 100644 (file)
@@ -258,6 +258,10 @@ typedef struct CC_HINT(__packed__) {
        uint8_t                         body[];
 } fr_tacacs_packet_acct_reply_hdr_t;
 
+#if defined(__clang__)
+#pragma clang diagnostic ignored "-Wflexible-array-extensions"
+#endif
+
 typedef struct CC_HINT(__packed__) {
        fr_tacacs_packet_hdr_t                                  hdr;
        union {