Commit afac6471 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Explicitly specify index in name array.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2964 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 15411021
...@@ -66,7 +66,7 @@ static char *pstr = panicstr; ...@@ -66,7 +66,7 @@ static char *pstr = panicstr;
/* step names */ /* step names */
static const char *steps[] = { static const char *steps[] = {
#define STEP(l, u) "STP_" #u, #define STEP(l, u) [STP_##u] = "STP_" #u,
#include "steps.h" #include "steps.h"
#undef STEP #undef STEP
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment