mirror of
https://github.com/zotanmew/nginx-rtmp-module.git
synced 2024-05-15 00:11:08 +02:00
added pragma to skip zero-sized array warning
This commit is contained in:
parent
3b4452d43e
commit
0c35b73152
13
ngx_rtmp.h
13
ngx_rtmp.h
|
@ -173,6 +173,14 @@ typedef struct {
|
|||
} ngx_rtmp_stream_t;
|
||||
|
||||
|
||||
/* disable zero-sized array warning by msvc */
|
||||
|
||||
#if (NGX_WIN32)
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable:4200)
|
||||
#endif
|
||||
|
||||
|
||||
typedef struct {
|
||||
uint32_t signature; /* "RTMP" */ /* <-- FIXME wtf */
|
||||
|
||||
|
@ -251,6 +259,11 @@ typedef struct {
|
|||
} ngx_rtmp_session_t;
|
||||
|
||||
|
||||
#if (NGX_WIN32)
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
|
||||
|
||||
/* handler result code:
|
||||
* NGX_ERROR - error
|
||||
* NGX_OK - success, may continue
|
||||
|
|
Loading…
Reference in a new issue