From: John Darrington Date: Sat, 1 May 2021 05:30:14 +0000 (+0200) Subject: src/output/output-item.h (outpt_item_ref): Add WARN_UNUSED_RESULT attribute X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pspp;a=commitdiff_plain;h=56955f4bd8b55397e12ee6410a571f0b420a9731 src/output/output-item.h (outpt_item_ref): Add WARN_UNUSED_RESULT attribute --- diff --git a/src/output/output-item.h b/src/output/output-item.h index 475504acb5..cac3d47179 100644 --- a/src/output/output-item.h +++ b/src/output/output-item.h @@ -109,7 +109,7 @@ struct output_item char *cached_label; }; -struct output_item *output_item_ref (const struct output_item *); +struct output_item *output_item_ref (const struct output_item *) WARN_UNUSED_RESULT; void output_item_unref (struct output_item *); bool output_item_is_shared (const struct output_item *); struct output_item *output_item_unshare (struct output_item *);