title: Why am I getting this error: "data definition has no type or storage class"?
body: <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  
  struct NODE {
      char* name;
      int val;
      struct NODE* next;
  };
  typedef struct NODE Node;
  
  Node *head, *tail;
  head = (Node*) malloc( sizeof( Node ) ); //line 21
  </code></pre>
  
  <p>And I compiling like this:</p>
  
  <pre><code>cc -g -c -o file.tab.o file.tab.c
  </code></pre>
  
  <p>I'm getting this error message:</p>
  
  <pre><code>file.y:21:1 warning: data definition has no type or storage class [enabled by default]
  </code></pre>