Welcome! Log In Create A New Profile

Advanced

[BUG] unable to use NGX_LOG_STDERR log level

Manlio Perillo
March 23, 2010 06:30PM
-----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-----

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[BUG] unable to use NGX_LOG_STDERR log level

Manlio Perillo 2631 March 23, 2010 06:30PM

Re: [BUG] unable to use NGX_LOG_STDERR log level

Maxim Dounin 1268 March 23, 2010 09:12PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 225
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready