<div dir="ltr">Ack. Thanks to Tinggong for the patch, and Rusty for the Syn.</div><div class="gmail_extra"><br clear="all"><div><div dir="ltr">regards,<div><br></div><div>dan</div><div>--</div><div>"The world is full of magical things patiently waiting for our wits to grow sharper." - Bertrand Russell<br>
</div></div></div>
<br><br><div class="gmail_quote">On 11 March 2013 15:36, Rusty Russell <span dir="ltr"><<a href="mailto:rusty@rustcorp.com.au" target="_blank">rusty@rustcorp.com.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">Tinggong <<a href="mailto:wangtinggong@gmail.com">wangtinggong@gmail.com</a>> writes:<br>
<br>
> hi all,<br>
><br>
> here is a trival path to fix warning [-Wunused-but-set-variable].<br>
><br>
> Thanks.<br>
> Tinggong<br>
<br>
</div>I've CC'd Daniel Burke for an Ack on the ttxml patch...<br>
<br>
Thanks,<br>
Rusty.<br>
<div class="HOEnZb"><div class="h5"><br>
> Signed-off-by: Tinggong <<a href="mailto:wangtinggong@gmail.com">wangtinggong@gmail.com</a>><br>
> ---<br>
> ccan/iscsi/socket.c | 2 --<br>
> ccan/ttxml/ttxml.c | 4 +---<br>
> 2 files changed, 1 insertion(+), 5 deletions(-)<br>
><br>
> diff --git a/ccan/iscsi/socket.c b/ccan/iscsi/socket.c<br>
> index f79b316..430be72 100644<br>
> --- a/ccan/iscsi/socket.c<br>
> +++ b/ccan/iscsi/socket.c<br>
> @@ -45,7 +45,6 @@ static void set_nonblocking(int fd)<br>
><br>
> int iscsi_connect_async(struct iscsi_context *iscsi, const char *target, iscsi_command_cb cb, void *private_data)<br>
> {<br>
> - int tpgt = -1;<br>
> int port = 3260;<br>
> char *str;<br>
> char *addr;<br>
> @@ -73,7 +72,6 @@ int iscsi_connect_async(struct iscsi_context *iscsi, const char *target, iscsi_c<br>
><br>
> /* check if we have a target portal group tag */<br>
> if ((str = rindex(addr, ',')) != NULL) {<br>
> - tpgt = atoi(str+1);<br>
> str[0] = 0;<br>
> }<br>
><br>
> diff --git a/ccan/ttxml/ttxml.c b/ccan/ttxml/ttxml.c<br>
> index ffda34b..410ac73 100644<br>
> --- a/ccan/ttxml/ttxml.c<br>
> +++ b/ccan/ttxml/ttxml.c<br>
> @@ -278,16 +278,14 @@ xml_read_attr_malloc:<br>
> */<br>
> static XmlNode* xml_parse(struct XMLBUF *xml)<br>
> {<br>
> - int offset;<br>
> int toff;<br>
> char **tmp;<br>
> char *stmp;<br>
> XmlNode **this, *ret = NULL;<br>
> -<br>
> +<br>
> this = &ret;<br>
><br>
> xml_skip(xml, XML_SPACE); // skip whitespace<br>
> - offset=0;<br>
> while( (xml->read_index < xml->len) || !xml->eof )<br>
> {<br>
> switch(is_special(xml_peek(xml)))<br>
> --<br>
> 1.7.11.7<br>
</div></div></blockquote></div><br></div>