sergey-dryabzhinsky / nginx-rtmp-module

NGINX-based Media Streaming Server
http://nginx-rtmp.blogspot.com
BSD 2-Clause "Simplified" License
1.02k stars 215 forks source link

Compile error #330

Open haroldthesage opened 3 years ago

haroldthesage commented 3 years ago

Error when building, shows up on 1.17.6 and 1.19.9:

../nginx-rtmp-module/hls/ngx_rtmp_hls_module.c:589:25: error: comparison of integer expressions of different signedness: ‘ngx_int_t’ {aka ‘long int’} and ‘ngx_uint_t’ {aka ‘long unsigned int’} [-Werror=sign-compare]
  589 |     for (i = start_i; i < ctx->nfrags; i++) {
      |                         ^
cc1: all warnings being treated as errors
make[1]: *** [objs/Makefile:1498: objs/addon/hls/ngx_rtmp_hls_module.o] Error 1
make[1]: Leaving directory '/home/testing/Downloads/nginx/nginx-1.17.6'
make: *** [Makefile:8: build] Error 2
sergey-dryabzhinsky commented 3 years ago

Are you tried latest dev-branch code?

sergey-dryabzhinsky commented 3 years ago

Found that line, fixed type cast. Try again.