title: redeclaration of enumerator
body: <p>gcc 4.1.2 c99</p>
  
  <p>I have the following enum's in this file ccsmd.h :</p>
  
  <pre><code>enum options_e
  {
      acm = 0,
      anm,
      smd,
      LAST_ENTRY,
  
      ENTRY_COUNT = LAST_ENTRY
  };
  
  enum function_mode_e
  {
      play = 0,
      record,
      bridge,
      LAST_ENTRY,
  
      ENTRY_COUNT = LAST_ENTRY
  };
  </code></pre>
  
  <p>Error messages:</p>
  
  <pre><code>error: redeclaration of enumerator ‘LAST_ENTRY’
  error: previous definition of ‘LAST_ENTRY’ was here
  error: redeclaration of enumerator ‘ENTRY_COUNT’
  error: previous definition of ‘ENTRY_COUNT’ was here
  </code></pre>
  
  <p>I have the <code>LAST_ENTRY</code> so that I can use that as the index of an array. So I like to keep it the same across all enums.</p>