[ANN] ngx_openresty mainline version 1.4.3.7 released

lhmwzy lhmwzy at gmail.com
Sun Dec 15 06:47:46 UTC 2013


configure过程中有几个warning如下:
lib_jit.c: In function 'lj_cf_jit_profile_stop':
lib_jit.c:594: warning: passing argument 2 of 'setlightudV' discards
qualifiers from pointer target type
lib_jit.c:596: warning: passing argument 2 of 'setlightudV' discards
qualifiers from pointer target type
lib_jit.c: In function 'jit_profile_callback':
lib_jit.c:550: warning: passing argument 2 of 'setlightudV' discards
qualifiers from pointer target type
lib_jit.c: In function 'lj_cf_jit_profile_start':
lib_jit.c:577: warning: passing argument 2 of 'setlightudV' discards
qualifiers from pointer target type
lib_jit.c:579: warning: passing argument 2 of 'setlightudV' discards
qualifiers from pointer target type
lib_jit.c: In function 'lj_cf_jit_profile_stop':
lib_jit.c:594: warning: passing argument 2 of 'setlightudV' discards
qualifiers from pointer target type
lib_jit.c:596: warning: passing argument 2 of 'setlightudV' discards
qualifiers from pointer target type
lib_jit.c: In function 'jit_profile_callback':
lib_jit.c:550: warning: passing argument 2 of 'setlightudV' discards
qualifiers from pointer target type
lib_jit.c: In function 'lj_cf_jit_profile_start':
lib_jit.c:577: warning: passing argument 2 of 'setlightudV' discards
qualifiers from pointer target type
lib_jit.c:579: warning: passing argument 2 of 'setlightudV' discards
qualifiers from pointer target type

我将\bundle\LuaJIT-2.1-20131211\src\lib_jit.c文件中,作改动如下:
将542和543行的
static const char KEY_PROFILE_THREAD = 't';
static const char KEY_PROFILE_FUNC = 'f';
改为:
static  char KEY_PROFILE_THREAD = 't';
static  char KEY_PROFILE_FUNC = 'f';

再次configure,上述warning不再出现。
妥否,请春哥审阅。



More information about the nginx mailing list