title: Warning about assignment from incompatible pointer type when using pointers and arrays?
body: <p>For the <code>struct</code></p>
  
  <pre><code>typedef struct sharedData
  {
      sem_t *forks;
  }sharedData;
  </code></pre>
  
  <p>I get a warning when I try to do this:</p>
  
  <pre><code>sharedData sd;
  sem_t forks[5];
  sd.forks = &amp;forks; // Warning: assignment from incompatible pointer type
  </code></pre>
  
  <p>Am I misunderstanding or missing something?</p>