title: c warning: use of const variable in a constant expression is non-standard in C
body: <p>I'm getting this warning when trying to initialize an array to a constant size.</p>
  
  <p><strong>#2170-D use of a const variable in a constant expression is nonstandard in C</strong></p>
  
  <pre><code>#file.h
  typedef struct {
      // LED Blink Pattern
      .....
  } LEDSeq
  
  void addError(LEDSeq);
  void runLEDErrors();
  ....
  
  #file.c
  const uint8_t MAXERRORS = 4;
  LEDSeq errors[MAXERRORS];
  uint8_t errorsLength = 0;
  ....
  </code></pre>
  
  <p>Essentially it's a bit of code that is going to loop over LED error sequences that are added during run time. I've got to use a fixed size array because realloc isn't available in my environment. The code all works. I'm just wondering why I'm getting this error.</p>