Dan Harkless <[EMAIL PROTECTED]> writes:
> Doug Morris <[EMAIL PROTECTED]> writes:
> > "Dan Harkless" wrote:
> > >While building nmh 1.0.1, I noticed that almost every file has these two
> > >warnings:
> > >
> > >    rmf.c: In function `main':
> > >    rmf.c:57: warning: implicit declaration of function `snprintf'
> > >    rmf.c:119: warning: control reaches end of non-void function
> > >
> > >Before I start looking into this, has anyone already done so?  Seems like
> > >both should be quite easy to clean up.
> > 
> > What are you building on? 
> 
> AIX 4.1.5.0.01.
> 
> > I don't get these on OpenBSD, Linux, or Solaris 2.5.1 (my current build
> > platforms).
> 
> Do all those platforms have native snprintf() functions?  AIX 4.1 does not.
> configure is putting "#define HAVE_SNPRINTF 1" in config.h -- I wasn't able
> to easily determine whether this is the correct behavior for OSes that don't
> have their own snprintf()s and must use the Apache one.
> 
> In any case, that's what it's doing, so the following code in prototypes.h
> doesn't get compiled:
> 
>     #ifndef HAVE_SNPRINTF
>     int snprintf (char *, size_t, const char *, ...);
>     int vsnprintf (char *, size_t, const char *, va_list);
>     #endif

I haven't had a chance to look at the HAVE_SNPRINTF problem any further, but 
I now think I know why you weren't seeing those warnings, Doug.  -Wall is
only turned on (along with -g) when you configure --enable-nmh-debug.

-----------------------------------------------------------------------
Dan Harkless                   | To prevent SPAM contamination, please 
[EMAIL PROTECTED]      | do not post this private email address
SpeedGate Communications, Inc. | to the USENET or WWW.  Thank you.     

Reply via email to