bug-gnulib
[Top][All Lists]
Advanced

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

Re: regex compile warnings


From: Paul Eggert
Subject: Re: regex compile warnings
Date: Fri, 28 Jul 2006 19:48:42 -0400
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux)

Eric Blake <address@hidden> writes:

> Is it worth silencing these compiler warnings with /usr/ucb/cc on Solaris 7?
>
> "../../lib/regex_internal.h", line 714: warning: token-less macro argument

This one is worth fixing, since the code does not conform to C89.  The
obvious fix is to surround that line with "#ifdef _LIBC".  If that
works, please install that.

> "../../lib/regexec.c", line 1412: warning: non-constant initializer: op "--"

I don't understand this one.  Here's the line in question:

  Idx num = --fs->num;

and I assume Idx is size_t, which is a 32-bit unsigned integer, so this
code should be perfectly fine C89.  Am I missing something?  It appears
to me to be a compiler bug.




reply via email to

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