mirror of
https://github.com/curl/curl.git
synced 2026-05-30 08:47:28 +03:00
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.
This commit is contained in:
parent
4344fa926a
commit
08fa4fed70
1 changed files with 2 additions and 0 deletions
|
|
@ -151,6 +151,8 @@ struct HTTP {
|
|||
struct http_conn {
|
||||
#ifdef USE_NGHTTP2
|
||||
nghttp2_session *h2;
|
||||
#else
|
||||
int unused; /* prevent a compiler warning */
|
||||
#endif
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue