title: Returning a function pointer from another function
body: <p>I'm trying to write a function which will then pass on which test to run:</p>
  
  <pre><code>static uint8_t (*GetTest(uint8_t test_type))(void)
  {
     switch(test_type) {
        case 0:
            return &amp;test_a;
  
        case 1:
            return etc etc...
     }
  }
  
  static void test_a(void)
  {
     ;
  }
  </code></pre>
  
  <p>However, I get a warning from my compiler saying that the return value type does not match the function type. I believe that this is due to the static declarations of the function, but I am unsure of how to include them.</p>