aboutsummaryrefslogtreecommitdiff
path: root/lib/http.h
diff options
context:
space:
mode:
authorNick Zitzmann <nickzman@gmail.com>2013-09-07 10:00:11 -0500
committerNick Zitzmann <nickzman@gmail.com>2013-09-07 10:00:11 -0500
commit08fa4fed70cfb499f8e3e6f1c0d55f25104565e8 (patch)
tree6c02c8d8db6cb999bc8e9310d26a9a6355855dff /lib/http.h
parent4344fa926ae07bdd9530370b213505c894d10abb (diff)
http: fix build warning under LLVM
When building the code using LLVM Clang without NGHTTP2, I was getting this warning: ../lib/http.h:155:1: warning: empty struct is a GNU extension [-Wgnu] Placing a dummy variable into the data structure silenced the warning.
Diffstat (limited to 'lib/http.h')
-rw-r--r--lib/http.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/http.h b/lib/http.h
index b0b37b6ae..a506238a6 100644
--- a/lib/http.h
+++ b/lib/http.h
@@ -151,6 +151,8 @@ struct HTTP {
struct http_conn {
#ifdef USE_NGHTTP2
nghttp2_session *h2;
+#else
+ int unused; /* prevent a compiler warning */
#endif
};