X-Git-Url: https://git.cworth.org/git?p=notmuch;a=blobdiff_plain;f=lib%2Fnotmuch-private.h;fp=lib%2Fnotmuch-private.h;h=1c2290b24847d8a55f957e2049c8cf3da64f78f8;hp=c63cfe5e698fa6f087c53cd52abc159360320622;hb=7d5a9bd3aeed339cb1f1415a9da8fc09c74ca485;hpb=bc80ff829ac205c68dfab45a21d4732cf5b8c2d0 diff --git a/lib/notmuch-private.h b/lib/notmuch-private.h index c63cfe5e..1c2290b2 100644 --- a/lib/notmuch-private.h +++ b/lib/notmuch-private.h @@ -750,6 +750,12 @@ _notmuch_talloc_steal (const void *new_ctx, const T *ptr) #undef talloc_steal #define talloc_steal _notmuch_talloc_steal #endif + +#if __cplusplus >= 201703L || __cppcheck__ +#define NODISCARD [[nodiscard]] +#else +#define NODISCARD /**/ +#endif #endif #endif