From 08fa4fed70cfb499f8e3e6f1c0d55f25104565e8 Mon Sep 17 00:00:00 2001 From: Nick Zitzmann Date: Sat, 7 Sep 2013 10:00:11 -0500 Subject: 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. --- lib/http.h | 2 ++ 1 file changed, 2 insertions(+) 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 }; -- cgit v1.2.1