diff options
| author | Daniel Walton <dwalton@cumulusnetworks.com> | 2017-07-05 19:41:51 +0000 |
|---|---|---|
| committer | Daniel Walton <dwalton@cumulusnetworks.com> | 2017-07-05 19:41:51 +0000 |
| commit | b83c95ce27d1bb7af54767e3265a04b3ad7d058b (patch) | |
| tree | 4844d16fa6af7742c311c34bf24110f4ab25c7c1 /lib/zebra.h | |
| parent | b738b1ac66dd4c168246b878e6adee85ee61c9a1 (diff) | |
| parent | c6200b54679f7e65d4a1036cece3d6cb08ccb9c5 (diff) | |
Merge branch 'master' of https://github.com/dwalton76/frr into bgpd-ipv4-plus-label-misc3
Diffstat (limited to 'lib/zebra.h')
| -rw-r--r-- | lib/zebra.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/zebra.h b/lib/zebra.h index 2cc433a863..901a49073d 100644 --- a/lib/zebra.h +++ b/lib/zebra.h @@ -247,6 +247,12 @@ size_t strlcpy (char *__restrict dest, const char *__restrict src, size_t size); #endif /* HAVE_BROKEN_CMSG_FIRSTHDR */ +/* GCC have printf type attribute check. */ +#ifdef __GNUC__ +#define PRINTF_ATTRIBUTE(a,b) __attribute__ ((__format__ (__printf__, a, b))) +#else +#define PRINTF_ATTRIBUTE(a,b) +#endif /* __GNUC__ */ /* * RFC 3542 defines several macros for using struct cmsghdr. |
