[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] non-null declarations
From: |
Dmitry V. Levin |
Subject: |
Re: [PATCH] non-null declarations |
Date: |
Thu, 10 Dec 2009 23:25:42 +0300 |
Hi,
On Thu, Dec 10, 2009 at 03:36:18PM +0100, Bruno Haible wrote:
>
> Here's a proposed patch for introducing some __nonnull__ declarations. For
> a start, I'm focusing on gnulib's replacement files lib/*.in.h, because these
> declare the most often used functions.
Potential drawback of this approach is that these declarations may affect
the implementation as well: there is a risk that compiler may optimize out
NULL checks. In other projects where this issue arose before it was
worked around by disabling non-null declarations in implementation scope.
--
ldv
pgpIOyk5rJw7M.pgp
Description: PGP signature
Re: [PATCH] non-null declarations,
Dmitry V. Levin <=
Re: [PATCH] non-null declarations, Bruno Haible, 2009/12/10