From: Nick Zitzmann Date: Sat, 7 Sep 2013 15:00:11 +0000 (-0500) Subject: http: fix build warning under LLVM X-Git-Tag: curl-7_33_0~147 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=08fa4fed70cfb499f8e3e6f1c0d55f25104565e8;p=curl 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. --- 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 };