<div>OpenSUSE 11.4  using clang</div><div><br></div>warning  : <div><br></div><div><div>src/core/nginx.c:487:37: warning: array index of '3' indexes past the end of an array (that contains 3 elements) [-Warray-bounds]</div>
<div>Â Â Â Â if (ngx_strcmp(var[i].data, "TZ") == 0</div><div>Â Â Â Â Â Â ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~</div><div>src/core/ngx_string.h:57:70: note: expanded from:</div><div>#define ngx_strcmp(s1, s2) Â strcmp((const char *) s1, (const char *) s2)</div>
<div>Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ^</div><div>/usr/include/bits/string2.h:817:28: note: expanded from:</div><div>Â Â Â Â Â Â Â Â : __strcmp_gc (s1, s2, __s2_len)) Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â \</div>
<div>Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ^</div><div>/usr/include/bits/string2.h:911:27: note: expanded from:</div><div>Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â (__const char *) (s2))[3]); Â Â Â Â Â Â Â \</div><div>Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ^ Â Â ~</div>
<div>1 warning generated.</div><div>src/core/ngx_file.c:384:27: warning: array index of '3' indexes past the end of an array (that contains 3 elements) [-Warray-bounds]</div><div>Â Â Â Â if (ngx_strcmp(p, "rw") == 0) {</div>
<div>Â Â Â Â Â Â ~~~~~~~~~~~~~~^~~~~</div><div>src/core/ngx_string.h:57:70: note: expanded from:</div><div>#define ngx_strcmp(s1, s2) Â strcmp((const char *) s1, (const char *) s2)</div><div>Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ^</div>
<div>/usr/include/bits/string2.h:817:28: note: expanded from:</div><div>Â Â Â Â Â Â Â Â : __strcmp_gc (s1, s2, __s2_len)) Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â \</div><div>Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ^</div><div>/usr/include/bits/string2.h:911:27: note: expanded from:</div>
<div>Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â (__const char *) (s2))[3]); Â Â Â Â Â Â Â \</div><div>Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ^ Â Â ~</div><div>src/core/ngx_file.c:387:34: warning: array index of '2' indexes past the end of an array (that contains 2 elements) [-Warray-bounds]</div>
<div>Â Â Â Â } else if (ngx_strcmp(p, "r") == 0) {</div><div><br></div><div>.... and more ....</div>-- <br>Wendal Chen<br>GuangDong China<br>
</div>