title: Warning about incompatible pointer types
body: <p>I'm not understanding a warning towards my code. It seems simple, but I simple don't get it. Here is the problematic piece of code:</p>
  
  <pre><code>chunk* findChunk(chunk *ptr, int size)
  {
      ...
      chunk *newNode = ptr-&gt;end + size;
      ...
  }
  </code></pre>
  
  <p>chunk is a struct defined by me earlier:</p>
  
  <pre><code>typedef struct chunk
  {
      int size;
      int available;
      struct chunk* next;
      char end[1];
  } chunk;
  </code></pre>
  
  <p>And this is the warning I receive:</p>
  
  <pre><code>warning: initialization from incompatible pointer type [enabled by default]&lt;br&gt;
  chunk *newNode = ptr-&gt;end + size;
  </code></pre>
  
  <p>I can't uderstand, it is clear for me that newNode and ptr are the same type. What am I missing? Thank you guys.</p>