Commit 7687c202 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Forward declaration of initialized static variables is not possible in C.

(One of the thing you'd think ISO-C had solved long time ago...)
parent 7620b760
......@@ -9,6 +9,8 @@
-esym(534, snprintf) // Only for varnishtest, and not really nice
-esym(765, http_cmds) // No, cannot be made static
-e712 // 14 Info 712 Loss of precision (___) (___ to ___)
-e747 // 16 Info 747 Significant prototype coercion (___) ___ to ___
......
......@@ -49,7 +49,7 @@
#include "vtcp.h"
#include "hpack.h"
static const struct cmds http_cmds[];
extern const struct cmds http_cmds[];
/* SECTION: client-server client/server
*
......@@ -1780,7 +1780,7 @@ cmd_http_write_body(CMD_ARGS)
* Execute HTTP specifications
*/
static const struct cmds http_cmds[] = {
const struct cmds http_cmds[] = {
#define CMD(n) { #n, cmd_##n },
#define CMD_HTTP(n) { #n, cmd_http_##n },
/* session */
......
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