From: John Darrington Date: Thu, 22 Oct 2015 14:14:28 +0000 (+0200) Subject: caseproto_ref: Append compiler directive WARN_UNUSED_RESULT X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40683bc90b05fc09cd0f4755ce403238b469cef1;p=pspp caseproto_ref: Append compiler directive WARN_UNUSED_RESULT --- diff --git a/src/data/caseproto.h b/src/data/caseproto.h index 0bc02812d1..a8468ddeed 100644 --- a/src/data/caseproto.h +++ b/src/data/caseproto.h @@ -80,8 +80,8 @@ struct pool; /* Creation and destruction. */ struct caseproto *caseproto_create (void) MALLOC_LIKE; -static inline struct caseproto *caseproto_ref (const struct caseproto *); -struct caseproto *caseproto_ref_pool (const struct caseproto *, struct pool *); +static inline struct caseproto *caseproto_ref (const struct caseproto *) WARN_UNUSED_RESULT; +struct caseproto *caseproto_ref_pool (const struct caseproto *, struct pool *) WARN_UNUSED_RESULT; static inline void caseproto_unref (struct caseproto *); /* Inspecting stored widths. */