[BUG] unable to use NGX_LOG_STDERR log level

Manlio Perillo manlio.perillo at gmail.com
Wed Mar 24 01:29:07 MSK 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi.

I have noted that I can not use NGX_LOG_STDERR log level.
I get this compiler error message:

  cc1: warnings being treated as errors
  ...: error: comparison of unsigned expression >= 0 is always true


Nginx 0.8.34
gcc version 4.4.3 20100108 (prerelease) (Debian 4.4.2-9)


The GCC warning name is `type-limits` and it is implied by the `-W` option.

By the way, the `-W` option has been renamed in `-Wextra` in recent GCC
versions


Note that I'm using NGX_LOG_STDERR *only* for the very first draft of a
new module.

I have temporary solved the problem with a simple:
CFLAGS="$CFLAGS -Wno-type-limits"

but the solution is probably to store the log level in a signed integer.



Thanks  Manlio
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkupQLMACgkQscQJ24LbaUQhPgCeLpwf5TWWwhUv+giTdiK0Vzqx
cWUAn15bh8s7g5AWnCi91Rk05OhuCvY0
=Hg6K
-----END PGP SIGNATURE-----



More information about the nginx-devel mailing list