ultimate-guitar/go-imagequant

build warnings

richp10 opened this issue · 1 comments

Hi - I am building on windows with Go 1.13.6 - gcc (tmd64) 5.1.0 the library appears to build, but I get the following warnings every time I build my app using the libary. Is there a way of suppressing these - or is this a bigger problem. :

# github.com/ultimate-guitar/go-imagequant
kmeans.c: In function 'kmeans_do_iteration':
kmeans.c:80:0: warning: ignoring #pragma omp parallel [-Wunknown-pragmas]
     #pragma omp parallel for if (hist_size > 2000) \
 ^
# github.com/ultimate-guitar/go-imagequant
libimagequant.c: In function 'remap_to_palette':
libimagequant.c:1283:0: warning: ignoring #pragma omp parallel [-Wunknown-pragmas]
     #pragma omp parallel for if (rows*cols > 3000) \
 ^
# github.com/ultimate-guitar/go-imagequant
mediancut.c: In function 'prepare_sort':
mediancut.c:202:0: warning: ignoring #pragma omp parallel [-Wunknown-pragmas]
     #pragma omp parallel for if (colors > 25000) \
 ^
mediancut.c:218:0: warning: ignoring #pragma omp parallel [-Wunknown-pragmas]
     #pragma omp parallel for if (end - ind > 15000) \
 ^
mediancut.c: In function 'box_init':
mediancut.c:319:0: warning: ignoring #pragma omp task [-Wunknown-pragmas]
     #pragma omp task if (colors > 5000)
 ^
mediancut.c:321:0: warning: ignoring #pragma omp task [-Wunknown-pragmas]
     #pragma omp task if (colors > 8000)
 ^
mediancut.c: In function 'mediancut':
mediancut.c:339:0: warning: ignoring #pragma omp parallel [-Wunknown-pragmas]
     #pragma omp parallel
 ^
mediancut.c:340:0: warning: ignoring #pragma omp single [-Wunknown-pragmas]
     #pragma omp single
 ^
mediancut.c:346:0: warning: ignoring #pragma omp taskgroup [-Wunknown-pragmas]
         #pragma omp taskgroup
 ^
mediancut.c:394:0: warning: ignoring #pragma omp taskgroup [-Wunknown-pragmas]
             #pragma omp taskgroup
 ^
mediancut.c: In function 'averagepixels':
mediancut.c:451:0: warning: ignoring #pragma omp parallel [-Wunknown-pragmas]
     #pragma omp parallel for if (clrs > 25000) \
 ^

Hello.
Its not a problem. Warnings suppressed.