bug-gnulib
[Top][All Lists]
Advanced

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

Re: [PATCH 2/2] assert-h: work around include confusion


From: Bruno Haible
Subject: Re: [PATCH 2/2] assert-h: work around include confusion
Date: Wed, 14 Sep 2022 22:03:41 +0200

Paul Eggert wrote:
> This works
> around bugs in packages that mistakenly include <config.h> after
> including <assert.h> (typically due to double-inclusion of
> <config.h>).

Formally, I don't think it's a bug to include <config.h> twice in the
same compilation unit. We have documented [1] that it needs to included
first, but not that it shouldn't be included twice. (The effects from
including it twice are usually minor: just a couple of warnings.)

Bruno

[1] https://www.gnu.org/software/gnulib/manual/html_node/Source-changes.html






reply via email to

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