Skip to content

Bug with modern nginx #1

@alphaonex86

Description

@alphaonex86

/root/ngx_pngquant/deps/pngquant/lib/libimagequant.c: In function 'remap_to_palette':
/root/ngx_pngquant/deps/pngquant/lib/libimagequant.c:974:0: warning: ignoring #pragma omp parallel [-Wunknown-pragmas]
#pragma omp parallel for if (rows*cols > 3000) \

/root/ngx_pngquant/deps/pngquant/lib/libimagequant.c: In function 'get_dithered_pixel':
/root/ngx_pngquant/deps/pngquant/lib/libimagequant.c:1009:5: error: this 'else' clause does not guard... [-Werror=misleading-indentation]
else if (px.r + sr < 0) ratio = MIN(ratio, px.r/-sr);
^~~~
/root/ngx_pngquant/deps/pngquant/lib/libimagequant.c:1010:10: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
if (px.g + sg > 1.03) ratio = MIN(ratio, (1.03-px.g)/sg);
^~
/root/ngx_pngquant/deps/pngquant/lib/libimagequant.c:1011:5: error: this 'else' clause does not guard... [-Werror=misleading-indentation]
else if (px.g + sg < 0) ratio = MIN(ratio, px.g/-sg);
^~~~
/root/ngx_pngquant/deps/pngquant/lib/libimagequant.c:1012:10: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
if (px.b + sb > 1.03) ratio = MIN(ratio, (1.03-px.b)/sb);
^~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions