FreeBSD Bugzilla – Attachment 167000 Details for
Bug 207196
www/uwsgi: fix build with clang 3.8.0
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Import upstream commit 2483e64 to fix loop warnings
www__uwsgi-fix-loop-warnings-1.diff (text/plain), 2.80 KB, created by
Dimitry Andric
on 2016-02-14 22:02:47 UTC
(
hide
)
Description:
Import upstream commit 2483e64 to fix loop warnings
Filename:
MIME Type:
Creator:
Dimitry Andric
Created:
2016-02-14 22:02:47 UTC
Size:
2.80 KB
patch
obsolete
>Index: www/uwsgi/files/patch-2483e64.diff >=================================================================== >--- www/uwsgi/files/patch-2483e64.diff (nonexistent) >+++ www/uwsgi/files/patch-2483e64.diff (working copy) >@@ -0,0 +1,61 @@ >+commit 2483e64e6dd504af5eefd4da94fc57c0f83b2563 >+Author: Joerg Sonnenberger <joerg@NetBSD.org> >+Date: Wed Jan 13 17:00:53 2016 +0100 >+ >+ plugins: properly update loop indexes once >+ >+ Fix clang warning about changing the loop variable in both loop >+ body and header >+ >+diff --git plugins/cgi/cgi_plugin.c plugins/cgi/cgi_plugin.c >+index e4fe6e6..340886a 100644 >+--- plugins/cgi/cgi_plugin.c >++++ plugins/cgi/cgi_plugin.c >+@@ -763,12 +763,11 @@ clear2: >+ } >+ >+ // fill cgi env >+- for(i=0;i<wsgi_req->var_cnt;i++) { >++ for(i=0;i<wsgi_req->var_cnt;i+=2) { >+ // no need to free the putenv() memory >+ if (putenv(uwsgi_concat3n(wsgi_req->hvec[i].iov_base, wsgi_req->hvec[i].iov_len, "=", 1, wsgi_req->hvec[i+1].iov_base, wsgi_req->hvec[i+1].iov_len))) { >+ uwsgi_error("putenv()"); >+ } >+- i++; >+ } >+ >+ >+diff --git plugins/gccgo/gccgo_plugin.c plugins/gccgo/gccgo_plugin.c >+index 09cfd69..98d8f71 100644 >+--- plugins/gccgo/gccgo_plugin.c >++++ plugins/gccgo/gccgo_plugin.c >+@@ -233,9 +233,8 @@ static int uwsgi_gccgo_request(struct wsgi_request *wsgi_req) { >+ >+ wsgi_req->async_environ = uwsgigo_env(wsgi_req); >+ int i; >+- for(i=0;i<wsgi_req->var_cnt;i++) { >++ for(i=0;i<wsgi_req->var_cnt;i+=2) { >+ uwsgigo_env_add(wsgi_req->async_environ, wsgi_req->hvec[i].iov_base, wsgi_req->hvec[i].iov_len, wsgi_req->hvec[i+1].iov_base, wsgi_req->hvec[i+1].iov_len); >+- i++; >+ } >+ uwsgigo_request(wsgi_req->async_environ, wsgi_req); >+ end: >+diff --git plugins/jwsgi/jwsgi_plugin.c plugins/jwsgi/jwsgi_plugin.c >+index 8cdac16..3b98632 100644 >+--- plugins/jwsgi/jwsgi_plugin.c >++++ plugins/jwsgi/jwsgi_plugin.c >+@@ -71,13 +71,12 @@ static int uwsgi_jwsgi_request(struct wsgi_request *wsgi_req) { >+ if (!hm) return -1; >+ >+ int i; >+- for(i=0;i<wsgi_req->var_cnt;i++) { >++ for(i=0;i<wsgi_req->var_cnt;i+=2) { >+ char *hk = wsgi_req->hvec[i].iov_base; >+ uint16_t hk_l = wsgi_req->hvec[i].iov_len; >+ char *hv = wsgi_req->hvec[i+1].iov_base; >+ uint16_t hv_l = wsgi_req->hvec[i+1].iov_len; >+ if (uwsgi_jwsgi_add_request_item(hm, hk, hk_l, hv, hv_l)) goto end; >+- i++; >+ } >+ >+ if (uwsgi_jwsgi_add_request_input(hm, "jwsgi.input", 11)) goto end; > >Property changes on: www/uwsgi/files/patch-2483e64.diff >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 207196
: 167000