<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - double assignment generates wrong warning"
   href="http://llvm.org/bugs/show_bug.cgi?id=16750">16750</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>double assignment generates wrong warning
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Static Analyzer
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>kremenek@apple.com
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>chang.im@watchguard.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Source file:

  1 #include <stdio.h>
  2 #include <stdlib.h>
  3 
  4 int main(int argc, char **argv) {
  5  char *xx, *yy;
  6 
  7  xx = yy = NULL;
  8  /* xx = NULL; */
  9 
 10  xx = calloc(1, 20);
 11 
 12  if (xx != NULL)
 13     free(xx);
 14 
 15  return 0;
 16 }

Following warning which is not correct.

xx.c:7:2: warning: Value stored to 'xx' is never read
 xx = yy = NULL;
 ^    ~~~~~~~~~
1 warning generated.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>