title: Function returning an array of enums
body: <p>I need a method that returns an array of enums and I tried:</p>
  
  <pre><code>note_name *AppSettings::getNoteMap(){
      note_name notes[] = {..}
  }
  </code></pre>
  
  <p>I read somewhere on SO that I'm supposed to return the address of the first element of the array, so that's why there's a pointer. This is giving me a warning though: <code>address of stack memory associated with local variable notes returned</code></p>
  
  <p>How do I get rid of the warning and return the array properly?</p>