[Bug 207196] www/uwsgi: fix build with clang 3.8.0

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Feb 14 22:01:11 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207196

            Bug ID: 207196
           Summary: www/uwsgi: fix build with clang 3.8.0
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: demon at FreeBSD.org
          Reporter: dim at FreeBSD.org
             Flags: maintainer-feedback?(demon at FreeBSD.org)
          Assignee: demon at FreeBSD.org

During a recent exp-run for bug 206074, it was found that www/uwsgi gives
errors with clang 3.8.0 [1]:

/cgi_plugin.c:771:3: error: variable 'i' is incremented both in the loop header
and in the loop body [-Werror,-Wfor-loop-analysis]
                i++;
                ^
plugins/cgi/cgi_plugin.c:766:30: note: incremented here
        for(i=0;i<wsgi_req->var_cnt;i++) {
                                    ^

This new clang warning normally indicates some bug, but in this case upstream
fixed it by explicitly increasing the counter by two. [2]

[1]
http://package22.nyi.freebsd.org/data/headamd64PR206074-default/2016-02-14_06h53m40s/logs/errors/uwsgi-2.0.12_1.log
[2]
https://github.com/unbit/uwsgi/commit/2483e64e6dd504af5eefd4da94fc57c0f83b2563

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list