#ifdef HAVE_JSON
# if defined(HAVE_JSONMC_JSON_H)
-#if defined(__APPLE__) && defined(__clang__)
-#pragma clang diagnostic ignored "-Wdocumentation-deprecated-sync"
-#endif
-
+DIAG_OFF(documentation-deprecated-sync)
# include <json-c/json.h>
+DIAG_ON(documentation-deprecated-sync);
+
# elif defined(HAVE_JSON_JSON_H)
# include <json/json.h>
# else
#ifdef HAVE_JSON
# if defined(HAVE_JSONMC_JSON_H)
-#if defined(__APPLE__) && defined(__clang__)
-#pragma clang diagnostic ignored "-Wdocumentation-deprecated-sync"
-#endif
-
+DIAG_OFF(documentation-deprecated-sync)
# include <json-c/json.h>
+DIAG_ON(documentation-deprecated-sync)
+
# elif defined(HAVE_JSON_JSON_H)
# include <json/json.h>
# else
* the floats are equal on a *bit* level, not on a *semantic*
* level.
*/
-#if defined(__clang__)
-#pragma clang diagnostic ignored "-Wfloat-equal"
-#endif
+DIAG_OFF(float-equal)
#define TEST_CHECK_LEN(_got, _exp) \
do { \
#include <ctype.h>
-#if defined(__clang__)
-#pragma clang diagnostic ignored "-Wflexible-array-extensions"
-#endif
+DIAG_OFF(flexible-array-extensions)
/*
* Two types of filters are supported, GENERIC and IP. The identifiers
uint8_t body[];
} fr_tacacs_packet_acct_reply_hdr_t;
-#if defined(__clang__)
-#pragma clang diagnostic ignored "-Wflexible-array-extensions"
-#endif
+DIAG_OFF(flexible-array-extensions)
typedef struct CC_HINT(__packed__) {
fr_tacacs_packet_hdr_t hdr;
};
} fr_tacacs_packet_t;
+DIAG_ON(flexible-array-extensions)
+
extern char const *fr_tacacs_packet_codes[];
/** Used as the decoder ctx