nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nano-devel] [PATCH] restore terminal and print backtrace for segfau


From: Mike Frysinger
Subject: Re: [Nano-devel] [PATCH] restore terminal and print backtrace for segfaults and assertions
Date: Tue, 16 Jan 2018 15:59:08 -0500

On 16 Jan 2018 21:29, Benno Schulenberg wrote:
> 
> 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)

i think that can be attributed to Kamil Dudka <address@hidden>

but yes, def better to use that instead of my ad-hoc suggestion :)
-mike

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]