title: Statement with no effect (2)
body: <p>I've been writing the next function and got "statement with no effect" warning on line 1 then "‘nw’ undeclared" warning on the next usues of 'nw'.</p>
  
  <pre><code>symbol *newSymbol(char *symbol, int adress, unsigned int xtrnl, unsigned int action) {
      symbol nw; //line 1
      nw.symbol = symbol; //'nw' undeclared....
      nw.adress = adress;
      nw.xtrnl = xtrnl;
      nw.action = action;
      nw.next = NULL;
      return &amp;nw;
  }
  </code></pre>
  
  <p>The structure symbol is:</p>
  
  <pre><code>typedef struct {
      char *symbol;
      int adress;
      unsigned int xtrnl : 1;
      unsigned int action : 1;
      struct symbol *next;
  } symbol;
  </code></pre>