]> granicus.if.org Git - curl/commitdiff
curl_rtmp: fix missing-variable-declarations warnings
authorMarcel Raad <raad@teamviewer.com>
Sat, 29 Apr 2017 17:17:51 +0000 (19:17 +0200)
committerMarcel Raad <raad@teamviewer.com>
Sat, 29 Apr 2017 17:17:51 +0000 (19:17 +0200)
clang complains:

curl_rtmp.c:61:27: error: no previous extern declaration for non-static variable 'Curl_handler_rtmp' [-Werror,-Wmissing-variable-declarations]
curl_rtmp.c:81:27: error: no previous extern declaration for non-static variable 'Curl_handler_rtmpt' [-Werror,-Wmissing-variable-declarations]
curl_rtmp.c:101:27: error: no previous extern declaration for non-static variable 'Curl_handler_rtmpe' [-Werror,-Wmissing-variable-declarations]
curl_rtmp.c:121:27: error: no previous extern declaration for non-static variable 'Curl_handler_rtmpte' [-Werror,-Wmissing-variable-declarations]
curl_rtmp.c:141:27: error: no previous extern declaration for non-static variable 'Curl_handler_rtmps' [-Werror,-Wmissing-variable-declarations]
curl_rtmp.c:161:27: error: no previous extern declaration for non-static variable 'Curl_handler_rtmpts' [-Werror,-Wmissing-variable-declarations]

Fix this by including the header file.

lib/curl_rtmp.c

index 06dd047a40031967da4ef7df9c4b93d310b96079..87a6caf9e643f84ad3653c7847cd12a7be946034 100644 (file)
@@ -25,6 +25,7 @@
 
 #ifdef USE_LIBRTMP
 
+#include "curl_rtmp.h"
 #include "urldata.h"
 #include "nonblock.h" /* for curlx_nonblock */
 #include "progress.h" /* for Curl_pgrsSetUploadSize */