httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgau...@arctic.org>
Subject Re: [PATCH] Don't propagate EXTRA_CFLAGS to regex library
Date Wed, 12 Feb 1997 03:05:24 GMT
On Tue, 11 Feb 1997, Marc Slemko wrote:
> There are a bunch of assert(nope)s.  But they don't break when you take
> out that.  Haven't looked at that really.

Ah right, it should be:

#ifndef NDEBUG
static int nope;
#endif

(regex/utils.h defines NDEBUG, NDEBUG is the macro that disables ansi c
<assert.h>)

> There are also other errors that I get on FreeBSD.  The register not
> at beginning of declaration are easy to fix, haven't looked at the rest.

I'll go see if I can reproduce on a BSDI box here.  What gcc/flags are you
using?

Dean

> 
> engine.c: In function `smatcher':
> In file included from regexec.c:44:
> engine.c:78: warning: `register' is not at beginning of declaration
> engine.c:79: warning: `register' is not at beginning of declaration
> engine.c: In function `lmatcher':
> In file included from regexec.c:93:
> engine.c:78: warning: `register' is not at beginning of declaration
> engine.c:79: warning: `register' is not at beginning of declaration
> sh ./mkh  -p regerror.c >regerror.ih
> cc -I. -DPOSIX_MISTAKE  -Wall -c regerror.c
> cc -I. -DPOSIX_MISTAKE  -Wall -c regfree.c
> cc -I. -DPOSIX_MISTAKE  -Wall -c split.c
> sh ./mkh  -p debug.c >debug.ih
> cc -I. -DPOSIX_MISTAKE  -Wall -c debug.c
> debug.c: In function `s_print':
> debug.c:219: warning: int format, long int arg (arg 3)
> debug.c:219: warning: int format, long int arg (arg 4)
> sh ./mkh  -p main.c >main.ih
> cc -I. -DPOSIX_MISTAKE  -Wall -c main.c
> main.c:27: warning: return-type defaults to `int'
> main.c: In function `main':
> main.c:44: warning: implicit declaration of function `getopt'
> main.c:53: warning: implicit declaration of function `atoi'
> main.c:107: warning: field width is not type int (arg 2)
> main.c: In function `efind':
> main.c:502: warning: unused variable `n'
> 
> 
> 


Mime
View raw message