title: How to use enum in C
body: <p>Basically we have to implement a queue (linked list) for a restaurant waiting queue.</p>
  <p>We get extra points for using <code>enum</code> but I've never used it before. I'm wondering does this look right how I am using it? I have looked it up but haven't seen any examples using linked lists.</p>
  <p>Here is the instructions for our structure:</p>
  <blockquote>
  <p>When writing your code, you MUST create a C struct for the nodes in the linked list of the wait list. These data items must include the following (and may include others if needed).</p>
  <ul>
  <li><p>the name of the group</p>
  </li>
  <li><p>the integer variable specifying the size of the group (number of people in the group)</p>
  </li>
  <li><p>the in-restaurant status (extra points for using an enum!)</p>
  </li>
  <li><p>a pointer to the next node in the list</p>
  </li>
  </ul>
  <p>The restaurant status is walk-in or call-in (call ahead of time to put name on waiting list)</p>
  </blockquote>
  <p>Here's the structure of mine:</p>
  <pre><code>typedef struct restaurant
  {
      char name[30];
      int groupSize;
      enum status{call, wait};
      struct restaurant *nextNode;
  }list;
  </code></pre>
  <p>I'm asking because I get this warning when I compile:</p>
  <blockquote>
  <pre><code>lab6.c:11:28: warning: declaration does not declare anything [enabled by default]
  </code></pre>
  </blockquote>