|
From: | Benno Schulenberg |
Subject: | Re: [Nano-devel] [PATCH] restore terminal and print backtrace for segfaults and assertions |
Date: | Tue, 16 Jan 2018 21:29:15 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 |
Op 16-01-18 om 08:41 schreef Mike Frysinger:
it also lacks information as to why you're writing it this way. i'm guessing it's due to WUR, so you'd want if (write(...)) { /* Silence unused result warning. */ }
Nano has a macro for that, made by Mike himself: /* Suppress warnings for __attribute__((warn_unused_result)). */ #define IGNORE_CALL_RESULT(call) do { if (call) {} } while(0) Benno
[Prev in Thread] | Current Thread | [Next in Thread] |