Eric Blake <[EMAIL PROTECTED]> 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