Closed dvershinin closed 1 year ago
nginx-http-flv-module-1.2.11/ngx_rtmp_record_module.c: In function 'ngx_rtmp_record_node_open': nginx-http-flv-module-1.2.11/ngx_rtmp_record_module.c:549:9: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] tag_size = ntohl(*(uint32_t *) buf); ^
Reproduced by compiling gcc-4.6.3 on Debian 7.x with option -Os and -Werror=strict-aliasing. Fixed already.
-Os
-Werror=strict-aliasing