libtool-patches
[Top][All Lists]
Advanced

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

Re: ltdl.c ifdefs


From: Bob Friesenhahn
Subject: Re: ltdl.c ifdefs
Date: Tue, 6 Apr 2004 15:41:57 -0500 (CDT)

On 6 Apr 2004, Alexandre Oliva wrote:

> On Apr  6, 2004, Bob Friesenhahn <address@hidden> wrote:
>
> > #if WITH_DMALLOC
>
> > This form is clearly incorrect unless WITH_DMALLOC is always defined
> > (e.g. as 1 or 0).
>
> Nope.  An undefined macro is equivalent to a macro defined to 0 in
> preprocessor tests.  It's actually better to test with #if than #ifdef

True, but it causes the Digital Unix compiler to issue warnings.
Every compiler except for GCC issues great gobs of warnings when
compiling ltdl.c and it would be nice to see the number of warnings
reduced to zero.

The oodles of warnings issued while compiling ltdl.c causes the
package I maintain to appear of much lower quality than it actually
is.

Bob
======================================
Bob Friesenhahn
address@hidden
http://www.simplesystems.org/users/bfriesen





reply via email to

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