title: Initialization discards qualifiers from pointer target type
body: <p>I'm trying to print the list of a singly linked list that I referred to in <a href="https://stackoverflow.com/questions/2309359/creating-a-singly-linked-list-in-c">link text</a>. It works, but I do get the compiler warnings:</p>
  
  <blockquote>
    <p><code>Initialization discards qualifiers from pointer target type</code></p>
  </blockquote>
  
  <p>(on declaration of start = head) and</p>
  
  <blockquote>
    <p><code>return discards qualifiers from pointer target type</code></p>
  </blockquote>
  
  <p>(on return statement) in this code:</p>
  
  <pre><code>/* Prints singly linked list and returns head pointer */
  LIST *PrintList(const LIST *head) 
  {
      LIST *start = head;
  
      for (; start != NULL; start = start-&gt;next)
          printf("%15s %d ea\n", head-&gt;str, head-&gt;count);
  
      return head;
  }
  </code></pre>
  
  <p>I am using XCode. Any thoughts?</p>