Pseudo-terminal will not be allocated because stdin is not a terminal. job started: Wed Aug 26 03:00:04 CEST 2026 uname: Linux jrlogin05.jureca 5.14.0-687.39.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Aug 13 13:06:27 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux Cloning into 'mptrac'... Updating files: 52% (275/527) Updating files: 53% (280/527) Updating files: 54% (285/527) Updating files: 55% (290/527) Updating files: 56% (296/527) Updating files: 57% (301/527) Updating files: 58% (306/527) Updating files: 59% (311/527) Updating files: 60% (317/527) Updating files: 61% (322/527) Updating files: 62% (327/527) Updating files: 63% (333/527) Updating files: 64% (338/527) Updating files: 65% (343/527) Updating files: 66% (348/527) Updating files: 67% (354/527) Updating files: 68% (359/527) Updating files: 69% (364/527) Updating files: 70% (369/527) Updating files: 71% (375/527) Updating files: 72% (380/527) Updating files: 73% (385/527) Updating files: 74% (390/527) Updating files: 75% (396/527) Updating files: 76% (401/527) Updating files: 77% (406/527) Updating files: 78% (412/527) Updating files: 79% (417/527) Updating files: 80% (422/527) Updating files: 81% (427/527) Updating files: 82% (433/527) Updating files: 83% (438/527) Updating files: 84% (443/527) Updating files: 85% (448/527) Updating files: 86% (454/527) Updating files: 87% (459/527) Updating files: 88% (464/527) Updating files: 89% (470/527) Updating files: 90% (475/527) Updating files: 91% (480/527) Updating files: 92% (485/527) Updating files: 93% (491/527) Updating files: 94% (496/527) Updating files: 95% (501/527) Updating files: 96% (506/527) Updating files: 97% (512/527) Updating files: 98% (517/527) Updating files: 99% (522/527) Updating files: 100% (527/527) Updating files: 100% (527/527), done. encoding.c:16:30: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 16 | char * szip_encoder_status = "SZIP ENCODER ENABLED"; | ^~~~~~~~~~~~~~~~~~~~~~ rice.c:106:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static int (*winner_function)(); | ^~~~~~ rice.c:107:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 107 | static int (*winner_ref_function)(); | ^~~~~~ rice.c: In function 'warning': rice.c:252:21: warning: unused parameter 'fmt' [-Wunused-parameter] 252 | warning(const char *fmt, ...) | ~~~~~~~~~~~~^~~ rice.c: In function 'error': rice.c:267:19: warning: unused parameter 'fmt' [-Wunused-parameter] 267 | error(const char *fmt, ...) | ~~~~~~~~~~~~^~~ rice.c: At top level: sz_api.c:47:6: warning: redundant redeclaration of 'szip_compress_memory' [-Wredundant-decls] 47 | long szip_compress_memory( | ^~~~~~~~~~~~~~~~~~~~ rice.c:301:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 301 | getch() | ^~~~~ In file included from szlib.h:42, from sz_api.c:45: ricehdf.h:62:6: note: previous declaration of 'szip_compress_memory' with type 'long int(int, int, int, int, const void *, long int, char *)' 62 | long szip_compress_memory( | ^~~~~~~~~~~~~~~~~~~~ sz_api.c:56:6: warning: redundant redeclaration of 'szip_uncompress_memory' [-Wredundant-decls] 56 | long szip_uncompress_memory( | ^~~~~~~~~~~~~~~~~~~~~~ ricehdf.h:71:6: note: previous declaration of 'szip_uncompress_memory' with type 'long int(int, int, int, int, const char *, long int, void *, long int)' 71 | long szip_uncompress_memory( | ^~~~~~~~~~~~~~~~~~~~~~ sz_api.c:66:5: warning: redundant redeclaration of 'szip_check_params' [-Wredundant-decls] 66 | int szip_check_params( | ^~~~~~~~~~~~~~~~~ ricehdf.h:81:5: note: previous declaration of 'szip_check_params' with type 'int(int, int, int, long int, char **)' 81 | int szip_check_params( | ^~~~~~~~~~~~~~~~~ rice.c:333:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 333 | read_header() | ^~~~~~~~~~~ rice.c: In function 'read_header': rice.c:340:13: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 340 | value = getch(); | ^~~~~ rice.c:341:26: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 341 | value = (value << 8) | getch(); | ^ sz_api.c: In function 'SZ_Compress': sz_api.c:124:44: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 124 | hidden->image_in = (char *) malloc(image_size); | ^~~~~~~~~~ rice.c:355:30: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 355 | value = (value << 8) | getch(); | ^ rice.c:356:30: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 356 | value = (value << 8) | getch(); | ^ sz_api.c:131:66: warning: conversion from 'long int' to 'double' may change value [-Wconversion] 131 | image_size = (long)(strm->image_pixels * bytes_per_pixel * 1.75); | ^ sz_api.c:132:45: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 132 | hidden->image_out = (char *) malloc(image_size); | ^~~~~~~~~~ rice.c:360:28: warning: conversion from 'long unsigned int' to 'int' may change value [-Wconversion] 360 | pixels_per_block = ((value >> 17) & 0x1f) * 2 + 2; | ^ sz_api.c:141:48: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 141 | memcpy(hidden->next_in, strm->next_in, size_in); | ^~~~~~~ sz_api.c:146:27: warning: conversion from 'long int' to 'unsigned int' may change value [-Wconversion] 146 | strm->avail_in -= size_in; | ^~~~~~~ rice.c:366:30: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 366 | value = (value << 8) | getch(); | ^ sz_api.c:147:24: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 147 | strm->total_in += size_in; | ^~ rice.c:367:30: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 367 | value = (value << 8) | getch(); | ^ sz_api.c:154:24: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 154 | return output_bytes; | ^~~~~~~~~~~~ rice.c:371:28: warning: conversion from 'long unsigned int' to 'int' may change value [-Wconversion] 371 | pixels_per_block = ((value >> 14) & 0x1f) * 2 + 2; | ^ sz_api.c:169:50: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 169 | memcpy(strm->next_out, hidden->next_out, size_out); | ^~~~~~~~ sz_api.c:174:28: warning: conversion from 'long int' to 'unsigned int' may change value [-Wconversion] 174 | strm->avail_out -= size_out; | ^~~~~~~~ sz_api.c:175:25: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 175 | strm->total_out += size_out; | ^~ rice.c:380:13: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 380 | value = getch(); | ^~~~~ rice.c:392:30: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 392 | value = (value << 8) | getch(); | ^ rice.c:393:30: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 393 | value = (value << 8) | getch(); | ^ rice.c:394:30: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 394 | value = (value << 8) | getch(); | ^ sz_api.c: In function 'SZ_Decompress': rice.c: At top level: sz_api.c:270:66: warning: conversion from 'long int' to 'double' may change value [-Wconversion] 270 | image_size = (long)(strm->image_pixels * bytes_per_pixel * 1.75); | ^ rice.c:423:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 423 | write_header() | ^~~~~~~~~~~~ sz_api.c:271:44: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 271 | hidden->image_in = (char *) malloc(image_size); | ^~~~~~~~~~ sz_api.c:278:66: warning: conversion from 'long int' to 'double' may change value [-Wconversion] 278 | image_size = (long)(strm->image_pixels * bytes_per_pixel * 1.0); | ^ rice.c: In function 'write_header': sz_api.c:279:45: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 279 | hidden->image_out = (char *) malloc(image_size); | ^~~~~~~~~~ rice.c:455:15: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 455 | value |= (msb_first == 1) << 14; | ^~ sz_api.c:288:48: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 288 | memcpy(hidden->next_in, strm->next_in, size_in); | ^~~~~~~ rice.c:456:15: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 456 | value |= (compression_mode == NN_MODE) << 12; | ^~ sz_api.c:293:27: warning: conversion from 'long int' to 'unsigned int' may change value [-Wconversion] 293 | strm->avail_in -= size_in; | ^~~~~~~ rice.c:457:15: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 457 | value |= n << 9; | ^~ sz_api.c:294:24: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 294 | strm->total_in += size_in; | ^~ rice.c:458:15: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 458 | value |= j << 6; | ^~ sz_api.c:302:24: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 302 | return output_bytes; | ^~~~~~~~~~~~ rice.c:459:15: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 459 | value |= m << 2; | ^~ sz_api.c:313:50: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 313 | memcpy(strm->next_out, hidden->next_out, size_out); | ^~~~~~~~ rice.c:467:15: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 467 | value |= (msb_first == 1) << 29; | ^~ sz_api.c:318:28: warning: conversion from 'long int' to 'unsigned int' may change value [-Wconversion] 318 | strm->avail_out -= size_out; | ^~~~~~~~ rice.c:468:15: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 468 | value |= (compression_mode == NN_MODE) << 26; | ^~ sz_api.c:319:25: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 319 | strm->total_out += size_out; | ^~ rice.c:469:15: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 469 | value |= (bits_per_pixel - 1) << 22; | ^~ sz_api.c: In function 'SZ_BufftoBuffCompress': sz_api.c:396:24: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 396 | pixels = (sourceLen+bytes_per_pixel-1)/bytes_per_pixel; | ^ rice.c:470:15: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 470 | value |= (pixels_per_block/2 - 1) << 17; | ^~ rice.c:471:15: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 471 | value |= (pixels_per_scanline - 1) << 3; | ^~ sz_api.c:396:43: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 396 | pixels = (sourceLen+bytes_per_pixel-1)/bytes_per_pixel; | ^ sz_api.c:396:14: warning: conversion to 'long int' from 'size_t' {aka 'long unsigned int'} may change the sign of the result [-Wsign-conversion] 396 | pixels = (sourceLen+bytes_per_pixel-1)/bytes_per_pixel; | ^ rice.c:482:15: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 482 | value |= (msb_first == 1) << 28; | ^~ sz_api.c:397:33: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'double' may change value [-Wconversion] 397 | out_size = (long)(sourceLen * 2.00); | ^ rice.c:483:15: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 483 | value |= (compression_mode == NN_MODE) << 25; | ^~ sz_api.c:399:18: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'long int' [-Wsign-compare] 399 | if (*destLen >= out_size) | ^~ rice.c:484:15: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 484 | value |= (bits_per_pixel - 1) << 19; | ^~ rice.c:485:15: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 485 | value |= (pixels_per_block/2 - 1) << 14; | ^~ sz_api.c:403:37: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 403 | image_out = (char *) malloc(out_size); | ^~~~~~~~ rice.c:486:15: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 486 | value |= (pixels_per_scanline - 1); | ^~ sz_api.c:414:16: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 414 | return output_bytes; | ^~~~~~~~~~~~ rice.c:500:26: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 500 | scanline_count = input_pixel_count / pixels_per_scanline; | ^~~~~~~~~~~~~~~~~ sz_api.c:418:18: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'long int' [-Wsign-compare] 418 | if (*destLen >= output_bytes) | ^~ sz_api.c:419:20: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 419 | *destLen = output_bytes; | ^~~~~~~~~~~~ rice.c:509:19: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 509 | value |= i; | ^~ sz_api.c: In function 'SZ_BufftoBuffDecompress': rice.c:516:19: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 516 | value |= input_pixel_count; | ^~ rice.c: At top level: sz_api.c:454:22: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 454 | pixels = *destLen/bytes_per_pixel; | ^ rice.c:537:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 537 | fix_last_scanline(byte_buffer, n) | ^~~~~~~~~~~~~~~~~ sz_api.c:454:14: warning: conversion to 'long int' from 'size_t' {aka 'long unsigned int'} may change the sign of the result [-Wsign-conversion] 454 | pixels = *destLen/bytes_per_pixel; | ^ rice.c: In function 'fix_last_scanline': sz_api.c:456:136: warning: conversion to 'long int' from 'size_t' {aka 'long unsigned int'} may change the sign of the result [-Wsign-conversion] 456 | output_bytes = szip_uncompress_memory(sz->options_mask, sz->bits_per_pixel, sz->pixels_per_block, sz->pixels_per_scanline, source, sourceLen, dest, pixels); | ^~~~~~~~~ rice.c:554:57: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 554 | memset(byte_buffer + n, ch, pixels_per_scanline - n); | ~~~~~~~~~~~~~~~~~~~~^~~ sz_api.c:458:16: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 458 | return output_bytes; | ^~~~~~~~~~~~ rice.c:565:20: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 565 | *p++ = ch1; | ^~~ sz_api.c:464:20: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 464 | *destLen = output_bytes; | ^~~~~~~~~~~~ rice.c:566:20: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 566 | *p++ = ch2; | ^~~ rice.c:580:20: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 580 | *p++ = ch1; | ^~~ rice.c:581:20: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 581 | *p++ = ch2; | ^~~ rice.c:582:20: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 582 | *p++ = ch3; | ^~~ rice.c:583:20: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 583 | *p++ = ch4; | ^~~ rice.c: At top level: rice.c:604:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 604 | encode_scanline() | ^~~~~~~~~~~~~~~ rice.c: In function 'encode_scanline': rice.c:606:11: warning: declaration of 'bptr' shadows a global declaration [-Wshadow] 606 | char *bptr; | ^~~~ rice.c:163:14: note: shadowed declaration is here 163 | static char *bptr; | ^~~~ rice.c:638:12: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 638 | mask = masknot[bits_per_pixel]; | ^~~~~~~ rice.c:656:17: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 656 | n = input_pixel_count >= pixels_per_scanline ? pixels_per_scanline : input_pixel_count; | ^~~~~~~~~~~~~~~~~ rice.c:658:51: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 658 | memcpy(byte_buffer, input_byte_data, 2*n); | ~^~ rice.c:679:55: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 679 | x1 = ((*(b+0) << 8) + *(b+1)) & mask; | ^ rice.c:679:30: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 679 | x1 = ((*(b+0) << 8) + *(b+1)) & mask; | ^ rice.c:680:55: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 680 | x2 = ((*(b+2) << 8) + *(b+3)) & mask; | ^ rice.c:680:30: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 680 | x2 = ((*(b+2) << 8) + *(b+3)) & mask; | ^ rice.c:681:55: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 681 | x3 = ((*(b+4) << 8) + *(b+5)) & mask; | ^ rice.c:681:30: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 681 | x3 = ((*(b+4) << 8) + *(b+5)) & mask; | ^ rice.c:682:55: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 682 | x4 = ((*(b+6) << 8) + *(b+7)) & mask; | ^ rice.c:682:30: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 682 | x4 = ((*(b+6) << 8) + *(b+7)) & mask; | ^ rice.c:688:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 688 | *s++ = del << 1; | ^~~ rice.c:690:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 690 | *s++ = x1; | ^~ rice.c:695:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 695 | *s++ = ((-del)<<1) - 1; | ^ rice.c:697:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 697 | *s++ = xmax-x1; | ^~~~ rice.c:704:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 704 | *s++ = del << 1; | ^~~ rice.c:706:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 706 | *s++ = x2; | ^~ rice.c:711:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 711 | *s++ = ((-del)<<1) - 1; | ^ rice.c:713:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 713 | *s++ = xmax-x2; | ^~~~ rice.c:720:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 720 | *s++ = del << 1; | ^~~ rice.c:722:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 722 | *s++ = x3; | ^~ rice.c:727:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 727 | *s++ = ((-del)<<1) - 1; | ^ rice.c:729:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 729 | *s++ = xmax-x3; | ^~~~ rice.c:736:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 736 | *s++ = del << 1; | ^~~ rice.c:738:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 738 | *s++ = x4; | ^~ rice.c:743:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 743 | *s++ = ((-del)<<1) - 1; | ^ rice.c:745:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 745 | *s++ = xmax-x4; | ^~~~ rice.c:753:50: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 753 | x = ((*b << 8) + *(b+1)) & mask; | ^ rice.c:753:29: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 753 | x = ((*b << 8) + *(b+1)) & mask; | ^ rice.c:759:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 759 | *s++ = del << 1; | ^~~ rice.c:761:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 761 | *s++ = x; | ^ rice.c:766:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 766 | *s++ = ((-del)<<1) - 1; | ^ rice.c:768:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 768 | *s++ = xmax-x; | ^~~~ rice.c:778:49: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 778 | *s++ = ((*b << 8) + *(b+1)) & mask; | ^ rice.c:791:55: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 791 | x1 = ((*(b+1) << 8) + *(b+0)) & mask; | ^ rice.c:791:30: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 791 | x1 = ((*(b+1) << 8) + *(b+0)) & mask; | ^ rice.c:792:55: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 792 | x2 = ((*(b+3) << 8) + *(b+2)) & mask; | ^ rice.c:792:30: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 792 | x2 = ((*(b+3) << 8) + *(b+2)) & mask; | ^ rice.c:793:55: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 793 | x3 = ((*(b+5) << 8) + *(b+4)) & mask; | ^ rice.c:793:30: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 793 | x3 = ((*(b+5) << 8) + *(b+4)) & mask; | ^ rice.c:794:55: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 794 | x4 = ((*(b+7) << 8) + *(b+6)) & mask; | ^ rice.c:794:30: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 794 | x4 = ((*(b+7) << 8) + *(b+6)) & mask; | ^ rice.c:800:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 800 | *s++ = del << 1; | ^~~ rice.c:802:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 802 | *s++ = x1; | ^~ rice.c:807:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 807 | *s++ = ((-del)<<1) - 1; | ^ rice.c:809:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 809 | *s++ = xmax-x1; | ^~~~ rice.c:816:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 816 | *s++ = del << 1; | ^~~ rice.c:818:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 818 | *s++ = x2; | ^~ rice.c:823:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 823 | *s++ = ((-del)<<1) - 1; | ^ rice.c:825:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 825 | *s++ = xmax-x2; | ^~~~ rice.c:832:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 832 | *s++ = del << 1; | ^~~ rice.c:834:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 834 | *s++ = x3; | ^~ rice.c:839:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 839 | *s++ = ((-del)<<1) - 1; | ^ rice.c:841:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 841 | *s++ = xmax-x3; | ^~~~ rice.c:848:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 848 | *s++ = del << 1; | ^~~ rice.c:850:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 850 | *s++ = x4; | ^~ rice.c:855:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 855 | *s++ = ((-del)<<1) - 1; | ^ rice.c:857:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 857 | *s++ = xmax-x4; | ^~~~ rice.c:865:50: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 865 | x = ((*(b+1) << 8) + *b) & mask; | ^ rice.c:865:29: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 865 | x = ((*(b+1) << 8) + *b) & mask; | ^ rice.c:871:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 871 | *s++ = del << 1; | ^~~ rice.c:873:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 873 | *s++ = x; | ^ rice.c:878:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 878 | *s++ = ((-del)<<1) - 1; | ^ rice.c:880:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 880 | *s++ = xmax-x; | ^~~~ rice.c:890:48: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 890 | *s++ =((*(b+1) << 8) + *b) & mask; | ^ rice.c:916:17: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 916 | n = input_pixel_count >= pixels_per_scanline ? pixels_per_scanline : input_pixel_count; | ^~~~~~~~~~~~~~~~~ rice.c:918:50: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 918 | memcpy(byte_buffer, input_byte_data, n); | ^ rice.c:937:26: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 937 | x1 = *b++ & mask; | ^ rice.c:938:26: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 938 | x2 = *b++ & mask; | ^ rice.c:939:26: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 939 | x3 = *b++ & mask; | ^ rice.c:940:26: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 940 | x4 = *b++ & mask; | ^ rice.c:945:36: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 945 | *s++ = del << 1; | ^~~ rice.c:947:36: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 947 | *s++ = x1; | ^~ rice.c:952:36: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 952 | *s++ = ((-del)<<1) - 1; | ^ rice.c:954:36: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 954 | *s++ = xmax-x1; | ^~~~ rice.c:961:36: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 961 | *s++ = del << 1; | ^~~ rice.c:963:36: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 963 | *s++ = x2; | ^~ rice.c:968:36: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 968 | *s++ = ((-del)<<1) - 1; | ^ rice.c:970:36: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 970 | *s++ = xmax-x2; | ^~~~ rice.c:977:36: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 977 | *s++ = del << 1; | ^~~ rice.c:979:36: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 979 | *s++ = x3; | ^~ rice.c:984:36: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 984 | *s++ = ((-del)<<1) - 1; | ^ rice.c:986:36: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 986 | *s++ = xmax-x3; | ^~~~ rice.c:993:36: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 993 | *s++ = del << 1; | ^~~ rice.c:995:36: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 995 | *s++ = x4; | ^~ rice.c:1000:36: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1000 | *s++ = ((-del)<<1) - 1; | ^ rice.c:1002:36: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1002 | *s++ = xmax-x4; | ^~~~ rice.c:1010:25: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 1010 | x = *b++ & mask; | ^ rice.c:1015:36: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1015 | *s++ = del << 1; | ^~~ rice.c:1017:36: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1017 | *s++ = x; | ^ rice.c:1022:36: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1022 | *s++ = ((-del)<<1) - 1; | ^ rice.c:1024:36: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1024 | *s++ = xmax-x; | ^~~~ rice.c:1062:17: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 1062 | n = input_pixel_count >= pixels_per_scanline ? pixels_per_scanline : input_pixel_count; | ^~~~~~~~~~~~~~~~~ rice.c:1064:51: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1064 | memcpy(byte_buffer, input_byte_data, 4*n); | ~^~ rice.c:1085:30: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 1085 | x1 = ((*(b+1) << 16) | (*(b+2) << 8) | *(b+3)) & mask; | ^ rice.c:1086:30: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 1086 | x2 = ((*(b+5) << 16) | (*(b+6) << 8) | *(b+7)) & mask; | ^ rice.c:1087:30: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 1087 | x3 = ((*(b+9) << 16) | (*(b+10) << 8) | *(b+11)) & mask; | ^ rice.c:1088:30: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 1088 | x4 = ((*(b+13) << 16) | (*(b+14) << 8) | *(b+15)) & mask; | ^ rice.c:1094:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1094 | *s++ = del << 1; | ^~~ rice.c:1096:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1096 | *s++ = x1; | ^~ rice.c:1101:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1101 | *s++ = ((-del)<<1) - 1; | ^ rice.c:1103:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1103 | *s++ = xmax-x1; | ^~~~ rice.c:1110:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1110 | *s++ = del << 1; | ^~~ rice.c:1112:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1112 | *s++ = x2; | ^~ rice.c:1117:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1117 | *s++ = ((-del)<<1) - 1; | ^ rice.c:1119:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1119 | *s++ = xmax-x2; | ^~~~ rice.c:1126:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1126 | *s++ = del << 1; | ^~~ rice.c:1128:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1128 | *s++ = x3; | ^~ rice.c:1133:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1133 | *s++ = ((-del)<<1) - 1; | ^ rice.c:1135:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1135 | *s++ = xmax-x3; | ^~~~ rice.c:1142:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1142 | *s++ = del << 1; | ^~~ rice.c:1144:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1144 | *s++ = x4; | ^~ rice.c:1149:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1149 | *s++ = ((-del)<<1) - 1; | ^ rice.c:1151:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1151 | *s++ = xmax-x4; | ^~~~ rice.c:1159:29: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 1159 | x = ((*(b+1) << 16) | (*(b+2) << 8) | *(b+3)) & mask; | ^ rice.c:1165:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1165 | *s++ = del << 1; | ^~~ rice.c:1167:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1167 | *s++ = x; | ^ rice.c:1172:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1172 | *s++ = ((-del)<<1) - 1; | ^ rice.c:1174:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1174 | *s++ = xmax-x; | ^~~~ rice.c:1197:30: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 1197 | x1 = ((*(b+2) << 16) | (*(b+1) << 8) | *(b+0)) & mask; | ^ rice.c:1198:30: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 1198 | x2 = ((*(b+6) << 16) | (*(b+5) << 8) | *(b+4)) & mask; | ^ rice.c:1199:30: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 1199 | x3 = ((*(b+10) << 16) | (*(b+9) << 8) | *(b+8)) & mask; | ^ rice.c:1200:30: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 1200 | x4 = ((*(b+14) << 16) | (*(b+13) << 8) | *(b+12)) & mask; | ^ rice.c:1206:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1206 | *s++ = del << 1; | ^~~ rice.c:1208:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1208 | *s++ = x1; | ^~ rice.c:1213:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1213 | *s++ = ((-del)<<1) - 1; | ^ rice.c:1215:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1215 | *s++ = xmax-x1; | ^~~~ rice.c:1222:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1222 | *s++ = del << 1; | ^~~ rice.c:1224:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1224 | *s++ = x2; | ^~ rice.c:1229:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1229 | *s++ = ((-del)<<1) - 1; | ^ rice.c:1231:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1231 | *s++ = xmax-x2; | ^~~~ rice.c:1238:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1238 | *s++ = del << 1; | ^~~ rice.c:1240:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1240 | *s++ = x3; | ^~ rice.c:1245:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1245 | *s++ = ((-del)<<1) - 1; | ^ rice.c:1247:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1247 | *s++ = xmax-x3; | ^~~~ rice.c:1254:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1254 | *s++ = del << 1; | ^~~ rice.c:1256:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1256 | *s++ = x4; | ^~ rice.c:1261:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1261 | *s++ = ((-del)<<1) - 1; | ^ rice.c:1263:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1263 | *s++ = xmax-x4; | ^~~~ rice.c:1271:29: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 1271 | x = ((*(b+2) << 16) | (*(b+1) << 8) | *b) & mask; | ^ rice.c:1277:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1277 | *s++ = del << 1; | ^~~ rice.c:1279:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1279 | *s++ = x; | ^ rice.c:1284:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1284 | *s++ = ((-del)<<1) - 1; | ^ rice.c:1286:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1286 | *s++ = xmax-x; | ^~~~ rice.c:204:17: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 204 | packed_bits -= pbits; \ | ^~ rice.c:1326:13: note: in expansion of macro 'pack1' 1326 | pack1(0, id_bits+1); | ^~~~~ rice.c:220:19: warning: declaration of 'value' shadows a previous local [-Wshadow] 220 | unsigned long value; \ | ^~~~~ rice.c:1327:13: note: in expansion of macro 'pack2' 1327 | pack2(*sigma, bits_per_pixel); | ^~~~~ rice.c:632:19: note: shadowed declaration is here 632 | unsigned long value; | ^~~~~ rice.c:204:17: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 204 | packed_bits -= pbits; \ | ^~ rice.c:230:9: note: in expansion of macro 'pack1' 230 | pack1(v16, pbits); \ | ^~~~~ rice.c:1327:13: note: in expansion of macro 'pack2' 1327 | pack2(*sigma, bits_per_pixel); | ^~~~~ rice.c:209:23: warning: declaration of 'v16' shadows a previous local [-Wshadow] 209 | unsigned long v16; \ | ^~~ rice.c:230:9: note: in expansion of macro 'pack1' 230 | pack1(v16, pbits); \ | ^~~~~ rice.c:1327:13: note: in expansion of macro 'pack2' 1327 | pack2(*sigma, bits_per_pixel); | ^~~~~ rice.c:227:23: note: shadowed declaration is here 227 | unsigned long v16; \ | ^~~ rice.c:1327:13: note: in expansion of macro 'pack2' 1327 | pack2(*sigma, bits_per_pixel); | ^~~~~ rice.c:204:17: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 204 | packed_bits -= pbits; \ | ^~ rice.c:235:5: note: in expansion of macro 'pack1' 235 | pack1(value, pbits); \ | ^~~~~ rice.c:1327:13: note: in expansion of macro 'pack2' 1327 | pack2(*sigma, bits_per_pixel); | ^~~~~ rice.c:204:17: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 204 | packed_bits -= pbits; \ | ^~ rice.c:1344:17: note: in expansion of macro 'pack1' 1344 | pack1(id, id_bits); | ^~~~~ rice.c:206:18: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 206 | packed_value |= value << packed_bits; \ | ^~ rice.c:1344:17: note: in expansion of macro 'pack1' 1344 | pack1(id, id_bits); | ^~~~~ rice.c:220:19: warning: declaration of 'value' shadows a previous local [-Wshadow] 220 | unsigned long value; \ | ^~~~~ rice.c:1345:17: note: in expansion of macro 'pack2' 1345 | pack2(*sigma, bits_per_pixel); | ^~~~~ rice.c:632:19: note: shadowed declaration is here 632 | unsigned long value; | ^~~~~ rice.c:204:17: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 204 | packed_bits -= pbits; \ | ^~ rice.c:230:9: note: in expansion of macro 'pack1' 230 | pack1(v16, pbits); \ | ^~~~~ rice.c:1345:17: note: in expansion of macro 'pack2' 1345 | pack2(*sigma, bits_per_pixel); | ^~~~~ rice.c:209:23: warning: declaration of 'v16' shadows a previous local [-Wshadow] 209 | unsigned long v16; \ | ^~~ rice.c:230:9: note: in expansion of macro 'pack1' 230 | pack1(v16, pbits); \ | ^~~~~ rice.c:1345:17: note: in expansion of macro 'pack2' 1345 | pack2(*sigma, bits_per_pixel); | ^~~~~ rice.c:227:23: note: shadowed declaration is here 227 | unsigned long v16; \ | ^~~ rice.c:1345:17: note: in expansion of macro 'pack2' 1345 | pack2(*sigma, bits_per_pixel); | ^~~~~ rice.c:204:17: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 204 | packed_bits -= pbits; \ | ^~ rice.c:235:5: note: in expansion of macro 'pack1' 235 | pack1(value, pbits); \ | ^~~~~ rice.c:1345:17: note: in expansion of macro 'pack2' 1345 | pack2(*sigma, bits_per_pixel); | ^~~~~ rice.c:220:19: warning: declaration of 'value' shadows a previous local [-Wshadow] 220 | unsigned long value; \ | ^~~~~ rice.c:1349:25: note: in expansion of macro 'pack2' 1349 | pack2(*s++, bits_per_pixel); | ^~~~~ rice.c:632:19: note: shadowed declaration is here 632 | unsigned long value; | ^~~~~ rice.c:204:17: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 204 | packed_bits -= pbits; \ | ^~ rice.c:230:9: note: in expansion of macro 'pack1' 230 | pack1(v16, pbits); \ | ^~~~~ rice.c:1349:25: note: in expansion of macro 'pack2' 1349 | pack2(*s++, bits_per_pixel); | ^~~~~ rice.c:209:23: warning: declaration of 'v16' shadows a previous local [-Wshadow] 209 | unsigned long v16; \ | ^~~ rice.c:230:9: note: in expansion of macro 'pack1' 230 | pack1(v16, pbits); \ | ^~~~~ rice.c:1349:25: note: in expansion of macro 'pack2' 1349 | pack2(*s++, bits_per_pixel); | ^~~~~ rice.c:227:23: note: shadowed declaration is here 227 | unsigned long v16; \ | ^~~ rice.c:1349:25: note: in expansion of macro 'pack2' 1349 | pack2(*s++, bits_per_pixel); | ^~~~~ rice.c:204:17: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 204 | packed_bits -= pbits; \ | ^~ rice.c:235:5: note: in expansion of macro 'pack1' 235 | pack1(value, pbits); \ | ^~~~~ rice.c:1349:25: note: in expansion of macro 'pack2' 1349 | pack2(*s++, bits_per_pixel); | ^~~~~ rice.c:1357:33: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 1357 | fsval = (*s1++ >> ksplits) + 1; | ^ rice.c:204:17: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 204 | packed_bits -= pbits; \ | ^~ rice.c:248:5: note: in expansion of macro 'pack1' 248 | pack1(1, pbits); \ | ^~~~~ rice.c:1358:25: note: in expansion of macro 'packfs' 1358 | packfs(fsval); | ^~~~~~ rice.c:1361:28: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1361 | mask = masknot[ksplits]; | ^~~~~~~ rice.c:220:19: warning: declaration of 'value' shadows a previous local [-Wshadow] 220 | unsigned long value; \ | ^~~~~ rice.c:1365:25: note: in expansion of macro 'pack2' 1365 | pack2(num, ksplits); | ^~~~~ rice.c:632:19: note: shadowed declaration is here 632 | unsigned long value; | ^~~~~ rice.c:204:17: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 204 | packed_bits -= pbits; \ | ^~ rice.c:230:9: note: in expansion of macro 'pack1' 230 | pack1(v16, pbits); \ | ^~~~~ rice.c:1365:25: note: in expansion of macro 'pack2' 1365 | pack2(num, ksplits); | ^~~~~ rice.c:209:23: warning: declaration of 'v16' shadows a previous local [-Wshadow] 209 | unsigned long v16; \ | ^~~ rice.c:230:9: note: in expansion of macro 'pack1' 230 | pack1(v16, pbits); \ | ^~~~~ rice.c:1365:25: note: in expansion of macro 'pack2' 1365 | pack2(num, ksplits); | ^~~~~ rice.c:227:23: note: shadowed declaration is here 227 | unsigned long v16; \ | ^~~ rice.c:1365:25: note: in expansion of macro 'pack2' 1365 | pack2(num, ksplits); | ^~~~~ rice.c:204:17: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 204 | packed_bits -= pbits; \ | ^~ rice.c:235:5: note: in expansion of macro 'pack1' 235 | pack1(value, pbits); \ | ^~~~~ rice.c:1365:25: note: in expansion of macro 'pack2' 1365 | pack2(num, ksplits); | ^~~~~ rice.c:204:17: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 204 | packed_bits -= pbits; \ | ^~ rice.c:1371:17: note: in expansion of macro 'pack1' 1371 | pack1(id, id_bits); | ^~~~~ rice.c:206:18: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 206 | packed_value |= value << packed_bits; \ | ^~ rice.c:1371:17: note: in expansion of macro 'pack1' 1371 | pack1(id, id_bits); | ^~~~~ rice.c:220:19: warning: declaration of 'value' shadows a previous local [-Wshadow] 220 | unsigned long value; \ | ^~~~~ rice.c:1372:17: note: in expansion of macro 'pack2' 1372 | pack2(*sigma, bits_per_pixel); | ^~~~~ rice.c:632:19: note: shadowed declaration is here 632 | unsigned long value; | ^~~~~ rice.c:204:17: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 204 | packed_bits -= pbits; \ | ^~ rice.c:230:9: note: in expansion of macro 'pack1' 230 | pack1(v16, pbits); \ | ^~~~~ rice.c:1372:17: note: in expansion of macro 'pack2' 1372 | pack2(*sigma, bits_per_pixel); | ^~~~~ rice.c:209:23: warning: declaration of 'v16' shadows a previous local [-Wshadow] 209 | unsigned long v16; \ | ^~~ rice.c:230:9: note: in expansion of macro 'pack1' 230 | pack1(v16, pbits); \ | ^~~~~ rice.c:1372:17: note: in expansion of macro 'pack2' 1372 | pack2(*sigma, bits_per_pixel); | ^~~~~ rice.c:227:23: note: shadowed declaration is here 227 | unsigned long v16; \ | ^~~ rice.c:1372:17: note: in expansion of macro 'pack2' 1372 | pack2(*sigma, bits_per_pixel); | ^~~~~ rice.c:204:17: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 204 | packed_bits -= pbits; \ | ^~ rice.c:235:5: note: in expansion of macro 'pack1' 235 | pack1(value, pbits); \ | ^~~~~ rice.c:1372:17: note: in expansion of macro 'pack2' 1372 | pack2(*sigma, bits_per_pixel); | ^~~~~ rice.c:1375:29: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 1375 | fsval = *s++ + 1; | ^ rice.c:204:17: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 204 | packed_bits -= pbits; \ | ^~ rice.c:248:5: note: in expansion of macro 'pack1' 248 | pack1(1, pbits); \ | ^~~~~ rice.c:1376:21: note: in expansion of macro 'packfs' 1376 | packfs(fsval); | ^~~~~~ rice.c:204:17: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 204 | packed_bits -= pbits; \ | ^~ rice.c:1381:17: note: in expansion of macro 'pack1' 1381 | pack1(1, id_bits+1); | ^~~~~ rice.c:220:19: warning: declaration of 'value' shadows a previous local [-Wshadow] 220 | unsigned long value; \ | ^~~~~ rice.c:1382:17: note: in expansion of macro 'pack2' 1382 | pack2(*sigma, bits_per_pixel); | ^~~~~ rice.c:632:19: note: shadowed declaration is here 632 | unsigned long value; | ^~~~~ rice.c:204:17: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 204 | packed_bits -= pbits; \ | ^~ rice.c:230:9: note: in expansion of macro 'pack1' 230 | pack1(v16, pbits); \ | ^~~~~ rice.c:1382:17: note: in expansion of macro 'pack2' 1382 | pack2(*sigma, bits_per_pixel); | ^~~~~ rice.c:209:23: warning: declaration of 'v16' shadows a previous local [-Wshadow] 209 | unsigned long v16; \ | ^~~ rice.c:230:9: note: in expansion of macro 'pack1' 230 | pack1(v16, pbits); \ | ^~~~~ rice.c:1382:17: note: in expansion of macro 'pack2' 1382 | pack2(*sigma, bits_per_pixel); | ^~~~~ rice.c:227:23: note: shadowed declaration is here 227 | unsigned long v16; \ | ^~~ rice.c:1382:17: note: in expansion of macro 'pack2' 1382 | pack2(*sigma, bits_per_pixel); | ^~~~~ rice.c:204:17: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 204 | packed_bits -= pbits; \ | ^~ rice.c:235:5: note: in expansion of macro 'pack1' 235 | pack1(value, pbits); \ | ^~~~~ rice.c:1382:17: note: in expansion of macro 'pack2' 1382 | pack2(*sigma, bits_per_pixel); | ^~~~~ rice.c:204:17: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 204 | packed_bits -= pbits; \ | ^~ rice.c:248:5: note: in expansion of macro 'pack1' 248 | pack1(1, pbits); \ | ^~~~~ rice.c:1384:17: note: in expansion of macro 'packfs' 1384 | packfs(fsval); | ^~~~~~ rice.c:204:17: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 204 | packed_bits -= pbits; \ | ^~ rice.c:248:5: note: in expansion of macro 'pack1' 248 | pack1(1, pbits); \ | ^~~~~ rice.c:1388:21: note: in expansion of macro 'packfs' 1388 | packfs(fsval); | ^~~~~~ rice.c:204:17: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 204 | packed_bits -= pbits; \ | ^~ rice.c:1410:17: note: in expansion of macro 'pack1' 1410 | pack1(0, id_bits+1); | ^~~~~ rice.c:204:17: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 204 | packed_bits -= pbits; \ | ^~ rice.c:248:5: note: in expansion of macro 'pack1' 248 | pack1(1, pbits); \ | ^~~~~ rice.c:1420:17: note: in expansion of macro 'packfs' 1420 | packfs(newbits); | ^~~~~~ rice.c:204:17: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 204 | packed_bits -= pbits; \ | ^~ rice.c:248:5: note: in expansion of macro 'pack1' 248 | pack1(1, pbits); \ | ^~~~~ rice.c:1435:17: note: in expansion of macro 'packfs' 1435 | packfs(newbits); | ^~~~~~ rice.c:204:17: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 204 | packed_bits -= pbits; \ | ^~ rice.c:1444:17: note: in expansion of macro 'pack1' 1444 | pack1(id, id_bits); | ^~~~~ rice.c:206:18: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 206 | packed_value |= value << packed_bits; \ | ^~ rice.c:1444:17: note: in expansion of macro 'pack1' 1444 | pack1(id, id_bits); | ^~~~~ rice.c:220:19: warning: declaration of 'value' shadows a previous local [-Wshadow] 220 | unsigned long value; \ | ^~~~~ rice.c:1448:25: note: in expansion of macro 'pack2' 1448 | pack2(*s++, bits_per_pixel); | ^~~~~ rice.c:632:19: note: shadowed declaration is here 632 | unsigned long value; | ^~~~~ rice.c:204:17: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 204 | packed_bits -= pbits; \ | ^~ rice.c:230:9: note: in expansion of macro 'pack1' 230 | pack1(v16, pbits); \ | ^~~~~ rice.c:1448:25: note: in expansion of macro 'pack2' 1448 | pack2(*s++, bits_per_pixel); | ^~~~~ rice.c:209:23: warning: declaration of 'v16' shadows a previous local [-Wshadow] 209 | unsigned long v16; \ | ^~~ rice.c:230:9: note: in expansion of macro 'pack1' 230 | pack1(v16, pbits); \ | ^~~~~ rice.c:1448:25: note: in expansion of macro 'pack2' 1448 | pack2(*s++, bits_per_pixel); | ^~~~~ rice.c:227:23: note: shadowed declaration is here 227 | unsigned long v16; \ | ^~~ rice.c:1448:25: note: in expansion of macro 'pack2' 1448 | pack2(*s++, bits_per_pixel); | ^~~~~ rice.c:204:17: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 204 | packed_bits -= pbits; \ | ^~ rice.c:235:5: note: in expansion of macro 'pack1' 235 | pack1(value, pbits); \ | ^~~~~ rice.c:1448:25: note: in expansion of macro 'pack2' 1448 | pack2(*s++, bits_per_pixel); | ^~~~~ rice.c:1459:42: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 1459 | fsval = (*s1++ >> 1) + 1; | ^ rice.c:1460:42: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 1460 | fsval2 = (*s1++ >> 1) + 1; | ^ rice.c:204:17: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 204 | packed_bits -= pbits; \ | ^~ rice.c:1464:37: note: in expansion of macro 'pack1' 1464 | pack1(value, fsval + fsval2); | ^~~~~ rice.c:204:17: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 204 | packed_bits -= pbits; \ | ^~ rice.c:248:5: note: in expansion of macro 'pack1' 248 | pack1(1, pbits); \ | ^~~~~ rice.c:1468:37: note: in expansion of macro 'packfs' 1468 | packfs(fsval); | ^~~~~~ rice.c:204:17: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 204 | packed_bits -= pbits; \ | ^~ rice.c:248:5: note: in expansion of macro 'pack1' 248 | pack1(1, pbits); \ | ^~~~~ rice.c:1469:37: note: in expansion of macro 'packfs' 1469 | packfs(fsval2); | ^~~~~~ rice.c:1478:65: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1478 | value = (value << 1) | *s++ & 1; | ~~~~~^~~ rice.c:1479:65: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1479 | value = (value << 1) | *s++ & 1; | ~~~~~^~~ rice.c:1480:65: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1480 | value = (value << 1) | *s++ & 1; | ~~~~~^~~ rice.c:1481:65: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1481 | value = (value << 1) | *s++ & 1; | ~~~~~^~~ rice.c:1482:65: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1482 | value = (value << 1) | *s++ & 1; | ~~~~~^~~ rice.c:1483:65: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1483 | value = (value << 1) | *s++ & 1; | ~~~~~^~~ rice.c:1484:65: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1484 | value = (value << 1) | *s++ & 1; | ~~~~~^~~ rice.c:1492:65: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1492 | value = (value << 1) | *s++ & 1; | ~~~~~^~~ rice.c:1500:42: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 1500 | fsval = (*s1++ >> 2) + 1; | ^ rice.c:1501:42: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 1501 | fsval2 = (*s1++ >> 2) + 1; | ^ rice.c:204:17: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 204 | packed_bits -= pbits; \ | ^~ rice.c:1505:37: note: in expansion of macro 'pack1' 1505 | pack1(value, fsval + fsval2); | ^~~~~ rice.c:204:17: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 204 | packed_bits -= pbits; \ | ^~ rice.c:248:5: note: in expansion of macro 'pack1' 248 | pack1(1, pbits); \ | ^~~~~ rice.c:1509:37: note: in expansion of macro 'packfs' 1509 | packfs(fsval); | ^~~~~~ rice.c:204:17: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 204 | packed_bits -= pbits; \ | ^~ rice.c:248:5: note: in expansion of macro 'pack1' 248 | pack1(1, pbits); \ | ^~~~~ rice.c:1510:37: note: in expansion of macro 'packfs' 1510 | packfs(fsval2); | ^~~~~~ rice.c:1519:65: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1519 | value = (value << 2) | *s++ & 3; | ~~~~~^~~ rice.c:1520:65: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1520 | value = (value << 2) | *s++ & 3; | ~~~~~^~~ rice.c:1521:65: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1521 | value = (value << 2) | *s++ & 3; | ~~~~~^~~ rice.c:1522:65: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1522 | value = (value << 2) | *s++ & 3; | ~~~~~^~~ rice.c:1523:65: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1523 | value = (value << 2) | *s++ & 3; | ~~~~~^~~ rice.c:1524:65: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1524 | value = (value << 2) | *s++ & 3; | ~~~~~^~~ rice.c:1525:65: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1525 | value = (value << 2) | *s++ & 3; | ~~~~~^~~ rice.c:1533:65: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1533 | value = (value << 2) | *s++ & 3; | ~~~~~^~~ rice.c:1541:42: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 1541 | fsval = (*s1++ >> 3) + 1; | ^ rice.c:1542:42: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 1542 | fsval2 = (*s1++ >> 3) + 1; | ^ rice.c:204:17: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 204 | packed_bits -= pbits; \ | ^~ rice.c:1546:37: note: in expansion of macro 'pack1' 1546 | pack1(value, fsval + fsval2); | ^~~~~ rice.c:204:17: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 204 | packed_bits -= pbits; \ | ^~ rice.c:248:5: note: in expansion of macro 'pack1' 248 | pack1(1, pbits); \ | ^~~~~ rice.c:1550:37: note: in expansion of macro 'packfs' 1550 | packfs(fsval); | ^~~~~~ rice.c:204:17: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 204 | packed_bits -= pbits; \ | ^~ rice.c:248:5: note: in expansion of macro 'pack1' 248 | pack1(1, pbits); \ | ^~~~~ rice.c:1551:37: note: in expansion of macro 'packfs' 1551 | packfs(fsval2); | ^~~~~~ rice.c:1560:65: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1560 | value = (value << 3) | *s++ & 7; | ~~~~~^~~ rice.c:1561:65: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1561 | value = (value << 3) | *s++ & 7; | ~~~~~^~~ rice.c:1562:65: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1562 | value = (value << 3) | *s++ & 7; | ~~~~~^~~ rice.c:1563:65: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1563 | value = (value << 3) | *s++ & 7; | ~~~~~^~~ rice.c:1567:65: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1567 | value = (value << 3) | *s++ & 7; | ~~~~~^~~ rice.c:1568:65: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1568 | value = (value << 3) | *s++ & 7; | ~~~~~^~~ rice.c:1576:65: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1576 | value = (value << 3) | *s++ & 7; | ~~~~~^~~ rice.c:1584:42: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 1584 | fsval = (*s1++ >> 4) + 1; | ^ rice.c:1585:42: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 1585 | fsval2 = (*s1++ >> 4) + 1; | ^ rice.c:204:17: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 204 | packed_bits -= pbits; \ | ^~ rice.c:1589:37: note: in expansion of macro 'pack1' 1589 | pack1(value, fsval + fsval2); | ^~~~~ rice.c:204:17: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 204 | packed_bits -= pbits; \ | ^~ rice.c:248:5: note: in expansion of macro 'pack1' 248 | pack1(1, pbits); \ | ^~~~~ rice.c:1593:37: note: in expansion of macro 'packfs' 1593 | packfs(fsval); | ^~~~~~ rice.c:204:17: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 204 | packed_bits -= pbits; \ | ^~ rice.c:248:5: note: in expansion of macro 'pack1' 248 | pack1(1, pbits); \ | ^~~~~ rice.c:1594:37: note: in expansion of macro 'packfs' 1594 | packfs(fsval2); | ^~~~~~ rice.c:1603:65: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1603 | value = (value << 4) | *s++ & 0xf; | ~~~~~^~~~~ rice.c:1604:65: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1604 | value = (value << 4) | *s++ & 0xf; | ~~~~~^~~~~ rice.c:1605:65: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1605 | value = (value << 4) | *s++ & 0xf; | ~~~~~^~~~~ rice.c:1609:65: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1609 | value = (value << 4) | *s++ & 0xf; | ~~~~~^~~~~ rice.c:1610:65: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1610 | value = (value << 4) | *s++ & 0xf; | ~~~~~^~~~~ rice.c:1611:65: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1611 | value = (value << 4) | *s++ & 0xf; | ~~~~~^~~~~ rice.c:1619:65: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1619 | value = (value << 4) | *s++ & 0xf; | ~~~~~^~~~~ rice.c:1627:42: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 1627 | fsval = (*s1++ >> 5) + 1; | ^ rice.c:1628:42: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 1628 | fsval2 = (*s1++ >> 5) + 1; | ^ rice.c:204:17: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 204 | packed_bits -= pbits; \ | ^~ rice.c:1632:37: note: in expansion of macro 'pack1' 1632 | pack1(value, fsval + fsval2); | ^~~~~ rice.c:204:17: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 204 | packed_bits -= pbits; \ | ^~ rice.c:248:5: note: in expansion of macro 'pack1' 248 | pack1(1, pbits); \ | ^~~~~ rice.c:1636:37: note: in expansion of macro 'packfs' 1636 | packfs(fsval); | ^~~~~~ rice.c:204:17: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 204 | packed_bits -= pbits; \ | ^~ rice.c:248:5: note: in expansion of macro 'pack1' 248 | pack1(1, pbits); \ | ^~~~~ rice.c:1637:37: note: in expansion of macro 'packfs' 1637 | packfs(fsval2); | ^~~~~~ rice.c:1646:65: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1646 | value = (value << 5) | *s++ & 0x1f; | ~~~~~^~~~~~ rice.c:1647:65: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1647 | value = (value << 5) | *s++ & 0x1f; | ~~~~~^~~~~~ rice.c:1651:65: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1651 | value = (value << 5) | *s++ & 0x1f; | ~~~~~^~~~~~ rice.c:1652:65: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1652 | value = (value << 5) | *s++ & 0x1f; | ~~~~~^~~~~~ rice.c:1656:65: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1656 | value = (value << 5) | *s++ & 0x1f; | ~~~~~^~~~~~ rice.c:1664:65: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1664 | value = (value << 5) | *s++ & 0x1f; | ~~~~~^~~~~~ rice.c:1672:42: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 1672 | fsval = (*s1++ >> 6) + 1; | ^ rice.c:1673:42: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 1673 | fsval2 = (*s1++ >> 6) + 1; | ^ rice.c:204:17: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 204 | packed_bits -= pbits; \ | ^~ rice.c:1677:37: note: in expansion of macro 'pack1' 1677 | pack1(value, fsval + fsval2); | ^~~~~ rice.c:204:17: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 204 | packed_bits -= pbits; \ | ^~ rice.c:248:5: note: in expansion of macro 'pack1' 248 | pack1(1, pbits); \ | ^~~~~ rice.c:1681:37: note: in expansion of macro 'packfs' 1681 | packfs(fsval); | ^~~~~~ rice.c:204:17: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 204 | packed_bits -= pbits; \ | ^~ rice.c:248:5: note: in expansion of macro 'pack1' 248 | pack1(1, pbits); \ | ^~~~~ rice.c:1682:37: note: in expansion of macro 'packfs' 1682 | packfs(fsval2); | ^~~~~~ rice.c:1689:61: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1689 | value = (value << 6) | *s++ & 0x3f; | ~~~~~^~~~~~ rice.c:1697:42: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 1697 | fsval = (*s1++ >> 7) + 1; | ^ rice.c:1698:42: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 1698 | fsval2 = (*s1++ >> 7) + 1; | ^ rice.c:204:17: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 204 | packed_bits -= pbits; \ | ^~ rice.c:248:5: note: in expansion of macro 'pack1' 248 | pack1(1, pbits); \ | ^~~~~ rice.c:1699:33: note: in expansion of macro 'packfs' 1699 | packfs(fsval); | ^~~~~~ rice.c:204:17: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 204 | packed_bits -= pbits; \ | ^~ rice.c:248:5: note: in expansion of macro 'pack1' 248 | pack1(1, pbits); \ | ^~~~~ rice.c:1700:33: note: in expansion of macro 'packfs' 1700 | packfs(fsval2); | ^~~~~~ rice.c:1706:61: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1706 | value = (value << 7) | *s++ & 0x7f; | ~~~~~^~~~~~ rice.c:1714:42: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 1714 | fsval = (*s1++ >> 8) + 1; | ^ rice.c:1715:42: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 1715 | fsval2 = (*s1++ >> 8) + 1; | ^ rice.c:204:17: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 204 | packed_bits -= pbits; \ | ^~ rice.c:248:5: note: in expansion of macro 'pack1' 248 | pack1(1, pbits); \ | ^~~~~ rice.c:1716:33: note: in expansion of macro 'packfs' 1716 | packfs(fsval); | ^~~~~~ rice.c:204:17: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 204 | packed_bits -= pbits; \ | ^~ rice.c:248:5: note: in expansion of macro 'pack1' 248 | pack1(1, pbits); \ | ^~~~~ rice.c:1717:33: note: in expansion of macro 'packfs' 1717 | packfs(fsval2); | ^~~~~~ rice.c:1723:61: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1723 | value = (value << 8) | *s++ & 0xff; | ~~~~~^~~~~~ rice.c:1737:42: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 1737 | fsval = (*s1++ >> ksplits) + 1; | ^ rice.c:1738:42: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 1738 | fsval2 = (*s1++ >> ksplits) + 1; | ^ rice.c:204:17: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 204 | packed_bits -= pbits; \ | ^~ rice.c:248:5: note: in expansion of macro 'pack1' 248 | pack1(1, pbits); \ | ^~~~~ rice.c:1739:33: note: in expansion of macro 'packfs' 1739 | packfs(fsval); | ^~~~~~ rice.c:204:17: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 204 | packed_bits -= pbits; \ | ^~ rice.c:248:5: note: in expansion of macro 'pack1' 248 | pack1(1, pbits); \ | ^~~~~ rice.c:1740:33: note: in expansion of macro 'packfs' 1740 | packfs(fsval2); | ^~~~~~ rice.c:1743:36: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1743 | mask = masknot[ksplits]; | ^~~~~~~ rice.c:204:17: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 204 | packed_bits -= pbits; \ | ^~ rice.c:1747:33: note: in expansion of macro 'pack1' 1747 | pack1(num, ksplits); | ^~~~~ rice.c:1754:42: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 1754 | fsval = (*s1++ >> ksplits) + 1; | ^ rice.c:1755:42: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 1755 | fsval2 = (*s1++ >> ksplits) + 1; | ^ rice.c:204:17: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 204 | packed_bits -= pbits; \ | ^~ rice.c:248:5: note: in expansion of macro 'pack1' 248 | pack1(1, pbits); \ | ^~~~~ rice.c:1756:33: note: in expansion of macro 'packfs' 1756 | packfs(fsval); | ^~~~~~ rice.c:204:17: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 204 | packed_bits -= pbits; \ | ^~ rice.c:248:5: note: in expansion of macro 'pack1' 248 | pack1(1, pbits); \ | ^~~~~ rice.c:1757:33: note: in expansion of macro 'packfs' 1757 | packfs(fsval2); | ^~~~~~ rice.c:1760:36: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1760 | mask = masknot[ksplits]; | ^~~~~~~ rice.c:220:19: warning: declaration of 'value' shadows a previous local [-Wshadow] 220 | unsigned long value; \ | ^~~~~ rice.c:1764:33: note: in expansion of macro 'pack2' 1764 | pack2(num, ksplits); | ^~~~~ rice.c:632:19: note: shadowed declaration is here 632 | unsigned long value; | ^~~~~ rice.c:204:17: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 204 | packed_bits -= pbits; \ | ^~ rice.c:230:9: note: in expansion of macro 'pack1' 230 | pack1(v16, pbits); \ | ^~~~~ rice.c:1764:33: note: in expansion of macro 'pack2' 1764 | pack2(num, ksplits); | ^~~~~ rice.c:209:23: warning: declaration of 'v16' shadows a previous local [-Wshadow] 209 | unsigned long v16; \ | ^~~ rice.c:230:9: note: in expansion of macro 'pack1' 230 | pack1(v16, pbits); \ | ^~~~~ rice.c:1764:33: note: in expansion of macro 'pack2' 1764 | pack2(num, ksplits); | ^~~~~ rice.c:227:23: note: shadowed declaration is here 227 | unsigned long v16; \ | ^~~ rice.c:1764:33: note: in expansion of macro 'pack2' 1764 | pack2(num, ksplits); | ^~~~~ rice.c:204:17: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 204 | packed_bits -= pbits; \ | ^~ rice.c:235:5: note: in expansion of macro 'pack1' 235 | pack1(value, pbits); \ | ^~~~~ rice.c:1764:33: note: in expansion of macro 'pack2' 1764 | pack2(num, ksplits); | ^~~~~ rice.c:204:17: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 204 | packed_bits -= pbits; \ | ^~ rice.c:1772:17: note: in expansion of macro 'pack1' 1772 | pack1(id, id_bits); | ^~~~~ rice.c:206:18: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 206 | packed_value |= value << packed_bits; \ | ^~ rice.c:1772:17: note: in expansion of macro 'pack1' 1772 | pack1(id, id_bits); | ^~~~~ rice.c:1775:29: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 1775 | fsval = *s++ + 1; | ^ rice.c:204:17: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 204 | packed_bits -= pbits; \ | ^~ rice.c:248:5: note: in expansion of macro 'pack1' 248 | pack1(1, pbits); \ | ^~~~~ rice.c:1776:21: note: in expansion of macro 'packfs' 1776 | packfs(fsval); | ^~~~~~ rice.c:204:17: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 204 | packed_bits -= pbits; \ | ^~ rice.c:248:5: note: in expansion of macro 'pack1' 248 | pack1(1, pbits); \ | ^~~~~ rice.c:1781:17: note: in expansion of macro 'packfs' 1781 | packfs(id_bits+1); | ^~~~~~ rice.c:204:17: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 204 | packed_bits -= pbits; \ | ^~ rice.c:248:5: note: in expansion of macro 'pack1' 248 | pack1(1, pbits); \ | ^~~~~ rice.c:1785:21: note: in expansion of macro 'packfs' 1785 | packfs(fsval); | ^~~~~~ rice.c: At top level: rice.c:1824:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 1824 | flush_encoded_bits() | ^~~~~~~~~~~~~~~~~~ rice.c: In function 'flush_encoded_bits': rice.c:1830:15: warning: conversion from 'long unsigned int' to 'unsigned int' may change value [-Wconversion] 1830 | v16 = global_packed_value >> 16; | ^~~~~~~~~~~~~~~~~~~ rice.c:1831:26: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 1831 | *global_bptr++ = v16 >> 8; | ^~~ rice.c:1833:30: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 1833 | *global_bptr++ = v16; | ^~~ rice.c: At top level: rice.c:1845:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 1845 | rice_encode() | ^~~~~~~~~~~ rice.c:1902:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 1902 | c_ext2(sigma, end) | ^~~~~~ rice.c:1935:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 1935 | find_winner8(sigma, end) | ^~~~~~~~~~~~ rice.c: In function 'find_winner8': rice.c:1949:13: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1949 | sum += *s++; | ^~ rice.c:1949:16: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 1949 | sum += *s++; | ^ rice.c:1950:13: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1950 | sum += *s++; | ^~ rice.c:1950:16: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 1950 | sum += *s++; | ^ rice.c: At top level: rice.c:2019:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 2019 | find_ref_winner8(sigma, end) | ^~~~~~~~~~~~~~~~ rice.c: In function 'find_ref_winner8': rice.c:2032:13: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 2032 | sum += *s++; | ^~ rice.c:2032:16: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 2032 | sum += *s++; | ^ rice.c: At top level: rice.c:2100:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 2100 | find_winner10(sigma, end) | ^~~~~~~~~~~~~ rice.c: In function 'find_winner10': rice.c:2114:13: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 2114 | sum += *s++; | ^~ rice.c:2114:16: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 2114 | sum += *s++; | ^ rice.c:2115:13: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 2115 | sum += *s++; | ^~ rice.c:2115:16: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 2115 | sum += *s++; | ^ rice.c: At top level: rice.c:2184:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 2184 | find_ref_winner10(sigma, end) | ^~~~~~~~~~~~~~~~~ rice.c: In function 'find_ref_winner10': rice.c:2197:13: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 2197 | sum += *s++; | ^~ rice.c:2197:16: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 2197 | sum += *s++; | ^ rice.c: At top level: rice.c:2265:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 2265 | find_winner16(sigma, end) | ^~~~~~~~~~~~~ rice.c: In function 'find_winner16': rice.c:2279:13: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 2279 | sum += *s++; | ^~ rice.c:2279:16: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 2279 | sum += *s++; | ^ rice.c:2280:13: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 2280 | sum += *s++; | ^~ rice.c:2280:16: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 2280 | sum += *s++; | ^ rice.c: At top level: rice.c:2349:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 2349 | find_ref_winner16(sigma, end) | ^~~~~~~~~~~~~~~~~ rice.c: In function 'find_ref_winner16': rice.c:2362:13: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 2362 | sum += *s++; | ^~ rice.c:2362:16: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 2362 | sum += *s++; | ^ rice.c: At top level: rice.c:2430:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 2430 | find_winner(start, end) | ^~~~~~~~~~~ rice.c: In function 'find_winner': rice.c:2443:12: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 2443 | jcnt = end - start; | ^~~ rice.c:2449:14: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 2449 | msb1 += *s >> 2; | ^~ rice.c:2449:17: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 2449 | msb1 += *s >> 2; | ^ rice.c:2450:14: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 2450 | msb2 += *s >> 3; | ^~ rice.c:2450:17: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 2450 | msb2 += *s >> 3; | ^ rice.c:2467:18: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 2467 | msb1 += *s; | ^~ rice.c:2467:21: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 2467 | msb1 += *s; | ^ rice.c:2468:18: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 2468 | msb2 += *s >> 1; | ^~ rice.c:2468:21: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 2468 | msb2 += *s >> 1; | ^ rice.c:2508:18: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 2508 | msb1 += *s >> 4; | ^~ rice.c:2508:21: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 2508 | msb1 += *s >> 4; | ^ rice.c:2509:18: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 2509 | msb2 += *s >> 5; | ^~ rice.c:2509:21: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 2509 | msb2 += *s >> 5; | ^ rice.c:2533:18: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 2533 | msb1 += *s >> 6; | ^~ rice.c:2533:21: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 2533 | msb1 += *s >> 6; | ^ rice.c:2534:18: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 2534 | msb2 += *s >> 7; | ^~ rice.c:2534:21: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 2534 | msb2 += *s >> 7; | ^ rice.c:2554:22: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 2554 | msb1 += *s >> 8; | ^~ rice.c:2554:25: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 2554 | msb1 += *s >> 8; | ^ rice.c:2555:22: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 2555 | msb2 += *s >> 9; | ^~ rice.c:2555:25: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 2555 | msb2 += *s >> 9; | ^ rice.c:2575:26: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 2575 | msb1 += *s >> 10; | ^~ rice.c:2575:29: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 2575 | msb1 += *s >> 10; | ^ rice.c:2576:26: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 2576 | msb2 += *s >> 11; | ^~ rice.c:2576:29: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 2576 | msb2 += *s >> 11; | ^ rice.c:2594:30: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 2594 | msb1 += *s >>12; | ^~ rice.c:2594:33: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 2594 | msb1 += *s >>12; | ^ rice.c:2611:26: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 2611 | msb1 += *s >> i; | ^~ rice.c:2611:29: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 2611 | msb1 += *s >> i; | ^ rice.c: At top level: rice.c:2822:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 2822 | check_args() | ^~~~~~~~~~ rice.c:2959:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 2959 | encode_initialize() | ^~~~~~~~~~~~~~~~~ rice.c: In function 'encode_initialize': rice.c:2998:32: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 2998 | ext2_array[i][j] = (i+j)*(i+j+1)/2 + j + 1; | ^ rice.c: At top level: rice.c:3034:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 3034 | decode_initialize() | ^~~~~~~~~~~~~~~~~ rice.c: In function 'decode_initialize': rice.c:3084:34: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 3084 | ext2_array1[index] = i; | ^ rice.c:3085:34: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 3085 | ext2_array2[index] = j; | ^ rice.c: At top level: rice.c:3175:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 3175 | compress_memory_bytes(new_options_mask, new_bits_per_pixel, new_pixels_per_block, new_pixels_per_scanline, in, pixels, out) | ^~~~~~~~~~~~~~~~~~~~~ rice.c: In function 'compress_memory_bytes': rice.c:3209:23: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 3209 | input_byte_data = (unsigned char *) in; | ^ rice.c: At top level: rice.c:3240:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 3240 | compress_memory_words(new_options_mask, new_bits_per_pixel, new_pixels_per_block, new_pixels_per_scanline, in, pixels, out) | ^~~~~~~~~~~~~~~~~~~~~ rice.c: In function 'compress_memory_words': rice.c:3274:23: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 3274 | input_byte_data = (unsigned char *) in; | ^ rice.c: At top level: rice.c:3304:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 3304 | compress_memory_longs(new_options_mask, new_bits_per_pixel, new_pixels_per_block, new_pixels_per_scanline, in, pixels, out) | ^~~~~~~~~~~~~~~~~~~~~ rice.c: In function 'compress_memory_longs': rice.c:3338:23: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 3338 | input_byte_data = (unsigned char *) in; | ^ rice.c: At top level: rice.c:3368:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 3368 | interleave(in, bytes, bits, out) | ^~~~~~~~~~ rice.c: In function 'interleave': rice.c:3382:13: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 3382 | words = bytes/word_size; | ^~~~~ rice.c: At top level: rice.c:3407:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 3407 | compress_memory_floats(new_options_mask, new_bits_per_pixel, new_pixels_per_block, new_pixels_per_scanline, in, pixels, out) | ^~~~~~~~~~~~~~~~~~~~~~ rice.c: In function 'compress_memory_floats': rice.c:3443:51: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 3443 | interleave_array = (unsigned char *) malloc(4 * pixels); | ~~^~~~~~~~ rice.c:3450:16: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 3450 | interleave((char *) in, pixels*4, new_bits_per_pixel, (char *) interleave_array); | ^ rice.c: At top level: rice.c:3491:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 3491 | compress_memory_doubles(new_options_mask, new_bits_per_pixel, new_pixels_per_block, new_pixels_per_scanline, in, pixels, out) | ^~~~~~~~~~~~~~~~~~~~~~~ rice.c: In function 'compress_memory_doubles': rice.c:3527:51: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 3527 | interleave_array = (unsigned char *) malloc(8 * pixels); | ~~^~~~~~~~ rice.c:3534:16: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 3534 | interleave((char *) in, pixels*8, new_bits_per_pixel, (char *) interleave_array); | ^ rice.c: In function 'szip_compress_memory': rice.c:3582:5: warning: declaration of 'bits_per_pixel' shadows a global declaration [-Wshadow] 3582 | int bits_per_pixel; | ^~~~~~~~~~~~~~ rice.c:126:12: note: shadowed declaration is here 126 | static int bits_per_pixel; | ^~~~~~~~~~~~~~ rice.c:3583:5: warning: declaration of 'pixels_per_block' shadows a global declaration [-Wshadow] 3583 | int pixels_per_block; | ^~~~~~~~~~~~~~~~ rice.c:131:12: note: shadowed declaration is here 131 | static int pixels_per_block; | ^~~~~~~~~~~~~~~~ rice.c:3584:5: warning: declaration of 'pixels_per_scanline' shadows a global declaration [-Wshadow] 3584 | int pixels_per_scanline; | ^~~~~~~~~~~~~~~~~~~ rice.c:132:12: note: shadowed declaration is here 132 | static int pixels_per_scanline; | ^~~~~~~~~~~~~~~~~~~ rice.c: At top level: rice.c:3776:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 3776 | deinterleave(in, bytes, bits, out) | ^~~~~~~~~~~~ rice.c: In function 'deinterleave': rice.c:3790:13: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 3790 | words = bytes/word_size; | ^~~~~ rice.c: At top level: rice.c:3804:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 3804 | unmap_nn(sigma, pixels) | ^~~~~~~~ rice.c: In function 'unmap_nn': rice.c:3822:17: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 3822 | x = *s++; | ^ rice.c:3823:23: warning: conversion from 'int' to 'char' may change value [-Wconversion] 3823 | *xptr++ = x; | ^ rice.c:3827:24: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 3827 | sig1 = *s++; | ^ rice.c:3837:27: warning: conversion from 'int' to 'char' may change value [-Wconversion] 3837 | *xptr++ = x; | ^ rice.c:3846:21: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 3846 | x = *s++; | ^ rice.c:3847:27: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 3847 | *xptr++ = (unsigned) x >> 8; | ^ rice.c:3848:27: warning: conversion from 'int' to 'char' may change value [-Wconversion] 3848 | *xptr++ = x; | ^ rice.c:3852:28: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 3852 | sig1 = *s++; | ^ rice.c:3862:31: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 3862 | *xptr++ = (unsigned) x >> 8; | ^ rice.c:3863:31: warning: conversion from 'int' to 'char' may change value [-Wconversion] 3863 | *xptr++ = x; | ^ rice.c:3870:21: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 3870 | x = *s++; | ^ rice.c:3871:27: warning: conversion from 'int' to 'char' may change value [-Wconversion] 3871 | *xptr++ = x; | ^ rice.c:3872:27: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 3872 | *xptr++ = (unsigned) x >> 8; | ^ rice.c:3876:28: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 3876 | sig1 = *s++; | ^ rice.c:3886:31: warning: conversion from 'int' to 'char' may change value [-Wconversion] 3886 | *xptr++ = x; | ^ rice.c:3887:31: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 3887 | *xptr++ = (unsigned) x >> 8; | ^ rice.c:3897:21: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 3897 | x = *s++; | ^ rice.c:3898:27: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 3898 | *xptr++ = (unsigned) x >> 24; | ^ rice.c:3899:27: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 3899 | *xptr++ = (unsigned) x >> 16; | ^ rice.c:3900:27: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 3900 | *xptr++ = (unsigned) x >> 8; | ^ rice.c:3901:27: warning: conversion from 'int' to 'char' may change value [-Wconversion] 3901 | *xptr++ = x; | ^ rice.c:3905:28: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 3905 | sig1 = *s++; | ^ rice.c:3915:31: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 3915 | *xptr++ = (unsigned) x >> 24; | ^ rice.c:3916:31: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 3916 | *xptr++ = (unsigned) x >> 16; | ^ rice.c:3917:31: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 3917 | *xptr++ = (unsigned) x >> 8; | ^ rice.c:3918:31: warning: conversion from 'int' to 'char' may change value [-Wconversion] 3918 | *xptr++ = x; | ^ rice.c:3925:21: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 3925 | x = *s++; | ^ rice.c:3926:27: warning: conversion from 'int' to 'char' may change value [-Wconversion] 3926 | *xptr++ = x; | ^ rice.c:3927:27: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 3927 | *xptr++ = (unsigned) x >> 8; | ^ rice.c:3928:27: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 3928 | *xptr++ = (unsigned) x >> 16; | ^ rice.c:3929:27: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 3929 | *xptr++ = (unsigned) x >> 24; | ^ rice.c:3933:28: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 3933 | sig1 = *s++; | ^ rice.c:3943:31: warning: conversion from 'int' to 'char' may change value [-Wconversion] 3943 | *xptr++ = x; | ^ rice.c:3944:31: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 3944 | *xptr++ = (unsigned) x >> 8; | ^ rice.c:3945:31: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 3945 | *xptr++ = (unsigned) x >> 16; | ^ rice.c:3946:31: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 3946 | *xptr++ = (unsigned) x >> 24; | ^ rice.c:3957:17: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 3957 | x = *s++; | ^ rice.c:3958:23: warning: conversion from 'int' to 'char' may change value [-Wconversion] 3958 | *xptr++ = x; | ^ rice.c:3960:20: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 3960 | sig1 = *s++; | ^ rice.c:3970:23: warning: conversion from 'int' to 'char' may change value [-Wconversion] 3970 | *xptr++ = x; | ^ rice.c:3974:24: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 3974 | sig1 = *s++; | ^ rice.c:3975:24: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 3975 | sig2 = *s++; | ^ rice.c:3985:27: warning: conversion from 'int' to 'char' may change value [-Wconversion] 3985 | *xptr++ = x; | ^ rice.c:3996:27: warning: conversion from 'int' to 'char' may change value [-Wconversion] 3996 | *xptr++ = x; | ^ rice.c:4005:21: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 4005 | x = *s++; | ^ rice.c:4006:27: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 4006 | *xptr++ = (unsigned) x >> 8; | ^ rice.c:4007:27: warning: conversion from 'int' to 'char' may change value [-Wconversion] 4007 | *xptr++ = x; | ^ rice.c:4009:24: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 4009 | sig1 = *s++; | ^ rice.c:4019:27: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 4019 | *xptr++ = (unsigned) x >> 8; | ^ rice.c:4020:27: warning: conversion from 'int' to 'char' may change value [-Wconversion] 4020 | *xptr++ = x; | ^ rice.c:4024:28: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 4024 | sig1 = *s++; | ^ rice.c:4025:28: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 4025 | sig2 = *s++; | ^ rice.c:4035:31: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 4035 | *xptr++ = (unsigned) x >> 8; | ^ rice.c:4036:31: warning: conversion from 'int' to 'char' may change value [-Wconversion] 4036 | *xptr++ = x; | ^ rice.c:4047:31: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 4047 | *xptr++ = (unsigned) x >> 8; | ^ rice.c:4048:31: warning: conversion from 'int' to 'char' may change value [-Wconversion] 4048 | *xptr++ = x; | ^ rice.c:4055:21: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 4055 | x = *s++; | ^ rice.c:4056:27: warning: conversion from 'int' to 'char' may change value [-Wconversion] 4056 | *xptr++ = x; | ^ rice.c:4057:27: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 4057 | *xptr++ = (unsigned) x >> 8; | ^ rice.c:4059:24: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 4059 | sig1 = *s++; | ^ rice.c:4069:27: warning: conversion from 'int' to 'char' may change value [-Wconversion] 4069 | *xptr++ = x; | ^ rice.c:4070:27: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 4070 | *xptr++ = (unsigned) x >> 8; | ^ rice.c:4074:28: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 4074 | sig1 = *s++; | ^ rice.c:4075:28: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 4075 | sig2 = *s++; | ^ rice.c:4085:31: warning: conversion from 'int' to 'char' may change value [-Wconversion] 4085 | *xptr++ = x; | ^ rice.c:4086:31: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 4086 | *xptr++ = (unsigned) x >> 8; | ^ rice.c:4097:31: warning: conversion from 'int' to 'char' may change value [-Wconversion] 4097 | *xptr++ = x; | ^ rice.c:4098:31: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 4098 | *xptr++ = (unsigned) x >> 8; | ^ rice.c:4108:21: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 4108 | x = *s++; | ^ rice.c:4109:27: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 4109 | *xptr++ = (unsigned) x >> 24; | ^ rice.c:4110:27: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 4110 | *xptr++ = (unsigned) x >> 16; | ^ rice.c:4111:27: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 4111 | *xptr++ = (unsigned) x >> 8; | ^ rice.c:4112:27: warning: conversion from 'int' to 'char' may change value [-Wconversion] 4112 | *xptr++ = x; | ^ rice.c:4114:24: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 4114 | sig1 = *s++; | ^ rice.c:4124:27: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 4124 | *xptr++ = (unsigned) x >> 24; | ^ rice.c:4125:27: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 4125 | *xptr++ = (unsigned) x >> 16; | ^ rice.c:4126:27: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 4126 | *xptr++ = (unsigned) x >> 8; | ^ rice.c:4127:27: warning: conversion from 'int' to 'char' may change value [-Wconversion] 4127 | *xptr++ = x; | ^ rice.c:4131:28: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 4131 | sig1 = *s++; | ^ rice.c:4132:28: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 4132 | sig2 = *s++; | ^ rice.c:4142:31: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 4142 | *xptr++ = (unsigned) x >> 24; | ^ rice.c:4143:31: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 4143 | *xptr++ = (unsigned) x >> 16; | ^ rice.c:4144:31: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 4144 | *xptr++ = (unsigned) x >> 8; | ^ rice.c:4145:31: warning: conversion from 'int' to 'char' may change value [-Wconversion] 4145 | *xptr++ = x; | ^ rice.c:4156:31: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 4156 | *xptr++ = (unsigned) x >> 24; | ^ rice.c:4157:31: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 4157 | *xptr++ = (unsigned) x >> 16; | ^ rice.c:4158:31: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 4158 | *xptr++ = (unsigned) x >> 8; | ^ rice.c:4159:31: warning: conversion from 'int' to 'char' may change value [-Wconversion] 4159 | *xptr++ = x; | ^ rice.c:4166:21: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 4166 | x = *s++; | ^ rice.c:4167:27: warning: conversion from 'int' to 'char' may change value [-Wconversion] 4167 | *xptr++ = x; | ^ rice.c:4168:27: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 4168 | *xptr++ = (unsigned) x >> 8; | ^ rice.c:4169:27: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 4169 | *xptr++ = (unsigned) x >> 16; | ^ rice.c:4170:27: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 4170 | *xptr++ = (unsigned) x >> 24; | ^ rice.c:4172:24: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 4172 | sig1 = *s++; | ^ rice.c:4182:27: warning: conversion from 'int' to 'char' may change value [-Wconversion] 4182 | *xptr++ = x; | ^ rice.c:4183:27: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 4183 | *xptr++ = (unsigned) x >> 8; | ^ rice.c:4184:27: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 4184 | *xptr++ = (unsigned) x >> 16; | ^ rice.c:4185:27: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 4185 | *xptr++ = (unsigned) x >> 24; | ^ rice.c:4189:28: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 4189 | sig1 = *s++; | ^ rice.c:4190:28: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 4190 | sig2 = *s++; | ^ rice.c:4200:31: warning: conversion from 'int' to 'char' may change value [-Wconversion] 4200 | *xptr++ = x; | ^ rice.c:4201:31: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 4201 | *xptr++ = (unsigned) x >> 8; | ^ rice.c:4202:31: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 4202 | *xptr++ = (unsigned) x >> 16; | ^ rice.c:4203:31: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 4203 | *xptr++ = (unsigned) x >> 24; | ^ rice.c:4214:31: warning: conversion from 'int' to 'char' may change value [-Wconversion] 4214 | *xptr++ = x; | ^ rice.c:4215:31: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 4215 | *xptr++ = (unsigned) x >> 8; | ^ rice.c:4216:31: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 4216 | *xptr++ = (unsigned) x >> 16; | ^ rice.c:4217:31: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 4217 | *xptr++ = (unsigned) x >> 24; | ^ rice.c: At top level: rice.c:4227:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 4227 | output_decoded_data(sigma) | ^~~~~~~~~~~~~~~~~~~ rice.c: In function 'output_decoded_data': rice.c:4233:14: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 4233 | pixels = (output_pixel_count < pixels_per_scanline) ? output_pixel_count : pixels_per_scanline; | ^ rice.c:4245:27: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 4245 | *bptr++ = sigma[i]; | ^~~~~ rice.c:4251:31: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 4251 | *bptr++ = sigma[i] >> 8; | ^~~~~ rice.c:4252:31: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 4252 | *bptr++ = sigma[i]; | ^~~~~ rice.c:4257:31: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 4257 | *bptr++ = sigma[i]; | ^~~~~ rice.c:4258:31: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 4258 | *bptr++ = sigma[i] >> 8; | ^~~~~ rice.c:4266:31: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 4266 | *bptr++ = sigma[i] >> 24; | ^~~~~ rice.c:4267:31: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 4267 | *bptr++ = sigma[i] >> 16; | ^~~~~ rice.c:4268:31: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 4268 | *bptr++ = sigma[i] >> 8; | ^~~~~ rice.c:4269:31: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 4269 | *bptr++ = sigma[i]; | ^~~~~ rice.c:4274:31: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 4274 | *bptr++ = sigma[i]; | ^~~~~ rice.c:4275:31: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 4275 | *bptr++ = sigma[i] >> 8; | ^~~~~ rice.c:4276:31: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 4276 | *bptr++ = sigma[i] >> 16; | ^~~~~ rice.c:4277:31: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 4277 | *bptr++ = sigma[i] >> 24; | ^~~~~ rice.c: At top level: rice.c:4310:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 4310 | rice_decode() | ^~~~~~~~~~~ rice.c: In function 'rice_decode': rice.c:4349:21: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 4349 | n = input_byte_count >= INPUT_BUFFER_SIZE ? INPUT_BUFFER_SIZE : input_byte_count; | ^~~~~~~~~~~~~~~~ rice.c:4351:54: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 4351 | memcpy(byte_buffer, input_byte_data, n); | ^ rice.c:4363:25: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 4363 | count = input_end - input_ptr; | ^~~~~~~~~ rice.c:4364:54: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 4364 | memcpy(input_buffer, input_ptr, count*sizeof(short)); | ^ rice.c:4401:22: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 4401 | id = data_word >> 29; | ^~~~~~~~~ rice.c:4407:22: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 4407 | id = data_word >> 28; | ^~~~~~~~~ rice.c:4413:22: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 4413 | id = data_word >> 27; | ^~~~~~~~~ rice.c:4420:28: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 4420 | ext2_bit = data_word & 0x80000000; | ^~~~~~~~~ rice.c:4474:36: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 4474 | bits = data_word >> shift; | ^~~~~~~~~ rice.c:4483:36: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 4483 | *s++ = bits; | ^~~~ rice.c:4490:36: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 4490 | bits = data_word >> 16; | ^~~~~~~~~ rice.c:4497:34: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 4497 | bits |= data_word >> (32 - extra); | ^~ rice.c:4497:37: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 4497 | bits |= data_word >> (32 - extra); | ^~~~~~~~~ rice.c:4506:36: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 4506 | *s++ = bits; | ^~~~ rice.c:4542:32: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 4542 | *s++ = zero_count + big_zero_count; | ^~~~~~~~~~ rice.c:4552:36: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 4552 | bits = data_word >> shift; | ^~~~~~~~~ rice.c:4561:49: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 4561 | *s = (*s << k_bits) | bits; | ^ rice.c:4569:36: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 4569 | bits = data_word >> 16; | ^~~~~~~~~ rice.c:4576:34: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 4576 | bits |= data_word >> (32 - extra); | ^~ rice.c:4576:37: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 4576 | bits |= data_word >> (32 - extra); | ^~~~~~~~~ rice.c:4586:49: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 4586 | *s = (*s << k_bits) | bits; | ^ rice.c:4621:28: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 4621 | *s++ = zero_count + big_zero_count; | ^~~~~~~~~~ rice.c:4666:32: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 4666 | *t++ = zero_count + big_zero_count; | ^~~~~~~~~~ rice.c:4670:25: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 4670 | m = *t++; | ^ rice.c:4677:29: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 4677 | m = *t++; | ^ rice.c:4730:41: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 4730 | memset(s, 0, (end-s)*sizeof(int)); | ^ rice.c:4747:22: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 4747 | id = data_word >> 29; | ^~~~~~~~~ rice.c:4753:22: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 4753 | id = data_word >> 28; | ^~~~~~~~~ rice.c:4759:22: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 4759 | id = data_word >> 27; | ^~~~~~~~~ rice.c:4766:28: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 4766 | ext2_bit = data_word & 0x80000000; | ^~~~~~~~~ rice.c:4792:36: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 4792 | bits = data_word >> shift; | ^~~~~~~~~ rice.c:4801:36: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 4801 | *s++ = bits; | ^~~~ rice.c:4808:36: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 4808 | bits = data_word >> 16; | ^~~~~~~~~ rice.c:4815:34: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 4815 | bits |= data_word >> (32 - extra); | ^~ rice.c:4815:37: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 4815 | bits |= data_word >> (32 - extra); | ^~~~~~~~~ rice.c:4824:36: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 4824 | *s++ = bits; | ^~~~ rice.c:4941:36: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 4941 | *s++ = zero_count + big_zero_count; | ^~~~~~~~~~ rice.c:4965:36: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 4965 | *s++ = zero_count + big_zero_count; | ^~~~~~~~~~ rice.c:4977:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 4977 | *(s+1) = (*(s+1) << 1) | (data_word >> 30) & 1; | ~~~~~~~~~~~~~~~~~~^~~ rice.c:4978:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 4978 | *(s+2) = (*(s+2) << 1) | (data_word >> 29) & 1; | ~~~~~~~~~~~~~~~~~~^~~ rice.c:4979:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 4979 | *(s+3) = (*(s+3) << 1) | (data_word >> 28) & 1; | ~~~~~~~~~~~~~~~~~~^~~ rice.c:4980:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 4980 | *(s+4) = (*(s+4) << 1) | (data_word >> 27) & 1; | ~~~~~~~~~~~~~~~~~~^~~ rice.c:4981:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 4981 | *(s+5) = (*(s+5) << 1) | (data_word >> 26) & 1; | ~~~~~~~~~~~~~~~~~~^~~ rice.c:4982:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 4982 | *(s+6) = (*(s+6) << 1) | (data_word >> 25) & 1; | ~~~~~~~~~~~~~~~~~~^~~ rice.c:4983:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 4983 | *(s+7) = (*(s+7) << 1) | (data_word >> 24) & 1; | ~~~~~~~~~~~~~~~~~~^~~ rice.c:4998:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 4998 | *(s+0) = (*(s+0) << 2) | (data_word >> 30) & 3; | ~~~~~~~~~~~~~~~~~~^~~ rice.c:4999:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 4999 | *(s+1) = (*(s+1) << 2) | (data_word >> 28) & 3; | ~~~~~~~~~~~~~~~~~~^~~ rice.c:5000:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 5000 | *(s+2) = (*(s+2) << 2) | (data_word >> 26) & 3; | ~~~~~~~~~~~~~~~~~~^~~ rice.c:5001:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 5001 | *(s+3) = (*(s+3) << 2) | (data_word >> 24) & 3; | ~~~~~~~~~~~~~~~~~~^~~ rice.c:5002:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 5002 | *(s+4) = (*(s+4) << 2) | (data_word >> 22) & 3; | ~~~~~~~~~~~~~~~~~~^~~ rice.c:5003:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 5003 | *(s+5) = (*(s+5) << 2) | (data_word >> 20) & 3; | ~~~~~~~~~~~~~~~~~~^~~ rice.c:5004:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 5004 | *(s+6) = (*(s+6) << 2) | (data_word >> 18) & 3; | ~~~~~~~~~~~~~~~~~~^~~ rice.c:5005:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 5005 | *(s+7) = (*(s+7) << 2) | (data_word >> 16) & 3; | ~~~~~~~~~~~~~~~~~~^~~ rice.c:5017:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 5017 | *(s+0) = (*(s+0) << 3) | (data_word >> 29) & 7; | ~~~~~~~~~~~~~~~~~~^~~ rice.c:5018:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 5018 | *(s+1) = (*(s+1) << 3) | (data_word >> 26) & 7; | ~~~~~~~~~~~~~~~~~~^~~ rice.c:5019:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 5019 | *(s+2) = (*(s+2) << 3) | (data_word >> 23) & 7; | ~~~~~~~~~~~~~~~~~~^~~ rice.c:5020:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 5020 | *(s+3) = (*(s+3) << 3) | (data_word >> 20) & 7; | ~~~~~~~~~~~~~~~~~~^~~ rice.c:5021:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 5021 | *(s+4) = (*(s+4) << 3) | (data_word >> 17) & 7; | ~~~~~~~~~~~~~~~~~~^~~ rice.c:5031:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 5031 | *(s+0) = (*(s+0) << 3) | (data_word >> 29) & 7; | ~~~~~~~~~~~~~~~~~~^~~ rice.c:5032:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 5032 | *(s+1) = (*(s+1) << 3) | (data_word >> 26) & 7; | ~~~~~~~~~~~~~~~~~~^~~ rice.c:5033:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 5033 | *(s+2) = (*(s+2) << 3) | (data_word >> 23) & 7; | ~~~~~~~~~~~~~~~~~~^~~ rice.c:5048:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 5048 | *(s+0) = (*(s+0) << 4) | (data_word >> 28) & 0xf; | ~~~~~~~~~~~~~~~~~~^~~~~ rice.c:5049:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 5049 | *(s+1) = (*(s+1) << 4) | (data_word >> 24) & 0xf; | ~~~~~~~~~~~~~~~~~~^~~~~ rice.c:5050:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 5050 | *(s+2) = (*(s+2) << 4) | (data_word >> 20) & 0xf; | ~~~~~~~~~~~~~~~~~~^~~~~ rice.c:5051:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 5051 | *(s+3) = (*(s+3) << 4) | (data_word >> 16) & 0xf; | ~~~~~~~~~~~~~~~~~~^~~~~ rice.c:5058:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 5058 | *(s+0) = (*(s+0) << 4) | (data_word >> 28) & 0xf; | ~~~~~~~~~~~~~~~~~~^~~~~ rice.c:5059:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 5059 | *(s+1) = (*(s+1) << 4) | (data_word >> 24) & 0xf; | ~~~~~~~~~~~~~~~~~~^~~~~ rice.c:5060:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 5060 | *(s+2) = (*(s+2) << 4) | (data_word >> 20) & 0xf; | ~~~~~~~~~~~~~~~~~~^~~~~ rice.c:5061:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 5061 | *(s+3) = (*(s+3) << 4) | (data_word >> 16) & 0xf; | ~~~~~~~~~~~~~~~~~~^~~~~ rice.c:5073:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 5073 | *(s+0) = (*(s+0) << 5) | (data_word >> 27) & 0x1f; | ~~~~~~~~~~~~~~~~~~^~~~~~ rice.c:5074:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 5074 | *(s+1) = (*(s+1) << 5) | (data_word >> 22) & 0x1f; | ~~~~~~~~~~~~~~~~~~^~~~~~ rice.c:5075:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 5075 | *(s+2) = (*(s+2) << 5) | (data_word >> 17) & 0x1f; | ~~~~~~~~~~~~~~~~~~^~~~~~ rice.c:5085:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 5085 | *(s+0) = (*(s+0) << 5) | (data_word >> 27) & 0x1f; | ~~~~~~~~~~~~~~~~~~^~~~~~ rice.c:5086:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 5086 | *(s+1) = (*(s+1) << 5) | (data_word >> 22) & 0x1f; | ~~~~~~~~~~~~~~~~~~^~~~~~ rice.c:5087:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 5087 | *(s+2) = (*(s+2) << 5) | (data_word >> 17) & 0x1f; | ~~~~~~~~~~~~~~~~~~^~~~~~ rice.c:5097:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 5097 | *(s+0) = (*(s+0) << 5) | (data_word >> 27) & 0x1f; | ~~~~~~~~~~~~~~~~~~^~~~~~ rice.c:5098:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 5098 | *(s+1) = (*(s+1) << 5) | (data_word >> 22) & 0x1f; | ~~~~~~~~~~~~~~~~~~^~~~~~ rice.c:5113:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 5113 | *(s+0) = (*(s+0) << 6) | (data_word >> 26) & 0x3f; | ~~~~~~~~~~~~~~~~~~^~~~~~ rice.c:5114:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 5114 | *(s+1) = (*(s+1) << 6) | (data_word >> 20) & 0x3f; | ~~~~~~~~~~~~~~~~~~^~~~~~ rice.c:5124:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 5124 | *(s+0) = (*(s+0) << 6) | (data_word >> 26) & 0x3f; | ~~~~~~~~~~~~~~~~~~^~~~~~ rice.c:5125:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 5125 | *(s+1) = (*(s+1) << 6) | (data_word >> 20) & 0x3f; | ~~~~~~~~~~~~~~~~~~^~~~~~ rice.c:5135:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 5135 | *(s+0) = (*(s+0) << 6) | (data_word >> 26) & 0x3f; | ~~~~~~~~~~~~~~~~~~^~~~~~ rice.c:5136:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 5136 | *(s+1) = (*(s+1) << 6) | (data_word >> 20) & 0x3f; | ~~~~~~~~~~~~~~~~~~^~~~~~ rice.c:5146:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 5146 | *(s+0) = (*(s+0) << 6) | (data_word >> 26) & 0x3f; | ~~~~~~~~~~~~~~~~~~^~~~~~ rice.c:5147:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 5147 | *(s+1) = (*(s+1) << 6) | (data_word >> 20) & 0x3f; | ~~~~~~~~~~~~~~~~~~^~~~~~ rice.c:5162:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 5162 | *(s+0) = (*(s+0) << 7) | (data_word >> 25) & 0x7f; | ~~~~~~~~~~~~~~~~~~^~~~~~ rice.c:5163:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 5163 | *(s+1) = (*(s+1) << 7) | (data_word >> 18) & 0x7f; | ~~~~~~~~~~~~~~~~~~^~~~~~ rice.c:5173:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 5173 | *(s+0) = (*(s+0) << 7) | (data_word >> 25) & 0x7f; | ~~~~~~~~~~~~~~~~~~^~~~~~ rice.c:5174:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 5174 | *(s+1) = (*(s+1) << 7) | (data_word >> 18) & 0x7f; | ~~~~~~~~~~~~~~~~~~^~~~~~ rice.c:5184:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 5184 | *(s+0) = (*(s+0) << 7) | (data_word >> 25) & 0x7f; | ~~~~~~~~~~~~~~~~~~^~~~~~ rice.c:5185:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 5185 | *(s+1) = (*(s+1) << 7) | (data_word >> 18) & 0x7f; | ~~~~~~~~~~~~~~~~~~^~~~~~ rice.c:5195:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 5195 | *(s+0) = (*(s+0) << 7) | (data_word >> 25) & 0x7f; | ~~~~~~~~~~~~~~~~~~^~~~~~ rice.c:5196:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 5196 | *(s+1) = (*(s+1) << 7) | (data_word >> 18) & 0x7f; | ~~~~~~~~~~~~~~~~~~^~~~~~ rice.c:5211:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 5211 | *(s+0) = (*(s+0) << 8) | (data_word >> 24) & 0xff; | ~~~~~~~~~~~~~~~~~~^~~~~~ rice.c:5212:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 5212 | *(s+1) = (*(s+1) << 8) | (data_word >> 16) & 0xff; | ~~~~~~~~~~~~~~~~~~^~~~~~ rice.c:5219:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 5219 | *(s+0) = (*(s+0) << 8) | (data_word >> 24) & 0xff; | ~~~~~~~~~~~~~~~~~~^~~~~~ rice.c:5220:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 5220 | *(s+1) = (*(s+1) << 8) | (data_word >> 16) & 0xff; | ~~~~~~~~~~~~~~~~~~^~~~~~ rice.c:5227:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 5227 | *(s+0) = (*(s+0) << 8) | (data_word >> 24) & 0xff; | ~~~~~~~~~~~~~~~~~~^~~~~~ rice.c:5228:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 5228 | *(s+1) = (*(s+1) << 8) | (data_word >> 16) & 0xff; | ~~~~~~~~~~~~~~~~~~^~~~~~ rice.c:5235:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 5235 | *(s+0) = (*(s+0) << 8) | (data_word >> 24) & 0xff; | ~~~~~~~~~~~~~~~~~~^~~~~~ rice.c:5236:80: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 5236 | *(s+1) = (*(s+1) << 8) | (data_word >> 16) & 0xff; | ~~~~~~~~~~~~~~~~~~^~~~~~ rice.c:5353:28: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 5353 | *s++ = zero_count + big_zero_count; | ^~~~~~~~~~ rice.c:5398:32: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 5398 | *t++ = zero_count + big_zero_count; | ^~~~~~~~~~ rice.c:5404:29: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 5404 | m = *t++; | ^ rice.c:5464:41: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 5464 | memset(s, 0, (end-s)*sizeof(int)); | ^ rice.c: In function 'szip_uncompress_memory': rice.c:5518:23: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 5518 | input_byte_data = (unsigned char *) in; | ^ rice.c:5530:44: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 5530 | interleave_array = (char *) malloc(out_bytes); | ^~~~~~~~~ rice.c: In function 'szip_check_params': rice.c:5800:5: warning: declaration of 'bits_per_pixel' shadows a global declaration [-Wshadow] 5800 | int bits_per_pixel; | ^~~~~~~~~~~~~~ rice.c:126:12: note: shadowed declaration is here 126 | static int bits_per_pixel; | ^~~~~~~~~~~~~~ rice.c:5801:5: warning: declaration of 'pixels_per_block' shadows a global declaration [-Wshadow] 5801 | int pixels_per_block; | ^~~~~~~~~~~~~~~~ rice.c:131:12: note: shadowed declaration is here 131 | static int pixels_per_block; | ^~~~~~~~~~~~~~~~ rice.c:5802:5: warning: declaration of 'pixels_per_scanline' shadows a global declaration [-Wshadow] 5802 | int pixels_per_scanline; | ^~~~~~~~~~~~~~~~~~~ rice.c:132:12: note: shadowed declaration is here 132 | static int pixels_per_scanline; | ^~~~~~~~~~~~~~~~~~~ rice.c:5812:14: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 5812 | *msg = "bits per pixel must be in range 1..24,32,64"; | ^ rice.c:5818:14: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 5818 | *msg = "maximum pixels per block exceeded"; | ^ rice.c:5824:14: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 5824 | *msg = "pixels per block must be even"; | ^ rice.c:5830:14: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 5830 | *msg = "pixels per block > pixels per scanline"; | ^ rice.c:5836:14: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 5836 | *msg = "maximum pixels per scanline exceeded"; | ^ rice.c:5842:14: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 5842 | *msg = "image pixels less than pixels per scanline"; | ^ rice.c: In function 'rice_decode': rice.c:4626:20: warning: 'ext2_bit' may be used uninitialized [-Wmaybe-uninitialized] 4626 | if (ext2_bit) | ^ rice.c:4312:9: note: 'ext2_bit' was declared here 4312 | int ext2_bit; | ^~~~~~~~ gentest.c:63:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 63 | output_pixel(bits_per_pixel, pixel) | ^~~~~~~~~~~~ gentest.c: In function 'output_pixel': gentest.c:70:21: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 70 | *bp++ = pixel & 0xff; | ^~~~~ gentest.c:73:21: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 73 | *bp++ = (pixel >> 8) & 0xff; | ^ gentest.c:74:21: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 74 | *bp++ = pixel & 0xff; | ^~~~~ gentest.c:79:21: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 79 | *bp++ = (pixel >> 16) & 0xff; | ^ gentest.c:80:21: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 80 | *bp++ = (pixel >> 8) & 0xff; | ^ gentest.c:81:21: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 81 | *bp++ = pixel & 0xff; | ^~~~~ gentest.c:87:21: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 87 | *bp++ = pixel & 0xff; | ^~~~~ gentest.c:90:21: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 90 | *bp++ = pixel & 0xff; | ^~~~~ gentest.c:91:21: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 91 | *bp++ = (pixel >> 8) & 0xff; | ^ gentest.c:95:21: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 95 | *bp++ = pixel & 0xff; | ^~~~~ gentest.c:96:21: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 96 | *bp++ = (pixel >> 8) & 0xff; | ^ gentest.c:97:21: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 97 | *bp++ = (pixel >> 16) & 0xff; | ^ gentest.c: At top level: gentest.c:104:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 104 | unmap_nn(sigma, pixels, out) | ^~~~~~~~ gentest.c: In function 'unmap_nn': gentest.c:118:9: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 118 | x = *s++; | ^ gentest.c:119:14: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 119 | *out++ = x; | ^ gentest.c:121:12: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 121 | sig1 = *s++; | ^ gentest.c:124:27: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 124 | else if (sig1 > (xmax - x) << 1) | ^ gentest.c:124:19: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 124 | else if (sig1 > (xmax - x) << 1) | ^ gentest.c:125:18: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 125 | x = xmax - sig1; | ^ gentest.c:125:13: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 125 | x = xmax - sig1; | ^~~~ gentest.c:131:14: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 131 | *out++ = x; | ^ gentest.c:135:16: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 135 | sig1 = *s++; | ^ gentest.c:136:16: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 136 | sig2 = *s++; | ^ gentest.c:139:31: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 139 | else if (sig1 > (xmax - x) << 1) | ^ gentest.c:139:23: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 139 | else if (sig1 > (xmax - x) << 1) | ^ gentest.c:140:22: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 140 | x = xmax - sig1; | ^ gentest.c:140:17: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 140 | x = xmax - sig1; | ^~~~ gentest.c:146:18: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 146 | *out++ = x; | ^ gentest.c:150:31: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 150 | else if (sig2 > (xmax - x) << 1) | ^ gentest.c:150:23: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 150 | else if (sig2 > (xmax - x) << 1) | ^ gentest.c:151:22: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 151 | x = xmax - sig2; | ^ gentest.c:151:17: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 151 | x = xmax - sig2; | ^~~~ gentest.c:157:18: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 157 | *out++ = x; | ^ gentest.c: At top level: gentest.c:162:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 162 | genblock(sum, j, n) | ^~~~~~~~ gentest.c: In function 'genblock': gentest.c:197:13: warning: conversion from 'double' to 'long int' may change value [-Wfloat-conversion] 197 | x = (v * average) + 0.5; | ^ gentest.c:199:25: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 199 | if (x + (j-k-1) * xmax < sum) | ^ gentest.c:200:31: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 200 | x = sum - (j-k-1) * xmax; | ^ gentest.c:200:21: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 200 | x = sum - (j-k-1) * xmax; | ^ gentest.c:208:17: warning: conversion from 'long int' to 'unsigned int' may change value [-Wconversion] 208 | *sp++ = x; | ^ gentest.c:209:5: warning: "DEBUG" is not defined, evaluates to 0 [-Wundef] 209 | #if DEBUG | ^~~~~ gentest.c:212:16: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 212 | sum -= x; | ^ gentest.c:219:5: warning: "DEBUG" is not defined, evaluates to 0 [-Wundef] 219 | #if DEBUG | ^~~~~ gentest.c: At top level: gentest.c:225:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 225 | genimage(n, j, blocks) | ^~~~~~~~ gentest.c: In function 'genimage': gentest.c:240:12: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 240 | xmax = (1 << n) - 1; | ^ gentest.c:253:13: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 253 | i = uni() * (n+2); | ^~~ gentest.c:257:19: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 257 | sum = (sum_array[i] - sum_array[i-1]) * uni() + 1; | ^ gentest.c:259:5: warning: "DEBUG" is not defined, evaluates to 0 [-Wundef] 259 | #if DEBUG | ^~~~~ gentest.c:262:21: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 262 | if (sum > j * xmax) | ^ gentest.c:262:17: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 262 | if (sum > j * xmax) | ^ gentest.c:282:28: warning: conversion from 'double' to 'unsigned int' may change value [-Wfloat-conversion] 282 | sigma[0] = uni() * (xmax+1); | ^~~ gentest.c: At top level: gentest.c:300:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 300 | gentest(n, j, blocks) | ^~~~~~~ gentest.c: In function 'gentest': gentest.c:336:60: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 336 | rv = SZ_BufftoBuffCompress(image_out, &size, image_in, image_size, ¶ms); | ^~~~~~~~~~ gentest.c:353:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 353 | rv = memcmp(image_in, image_in2, image_size); | ^~~~~~~~~~ gentest.c: At top level: gentest.c:374:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 374 | gentest_odd(n, j, s) | ^~~~~~~~~~~ gentest.c: In function 'gentest_odd': gentest.c:399:31: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 399 | memcpy(ip, image_in, s*bytes_per_pixel); | ~^~~~~~~~~~~~~~~~ gentest.c:404:33: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 404 | memcpy(image_in, image_in2, image_size); | ^~~~~~~~~~ gentest.c:419:60: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 419 | rv = SZ_BufftoBuffCompress(image_out, &size, image_in, image_size, ¶ms); | ^~~~~~~~~~ gentest.c:436:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 436 | rv = memcmp(image_in, image_in2, image_size); | ^~~~~~~~~~ gentest.c: At top level: gentest.c:457:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 457 | gentest3264(blocks, n, j) | ^~~~~~~~~~~ gentest.c: In function 'gentest3264': gentest.c:478:23: warning: conversion from 'int' to 'char' may change value [-Wconversion] 478 | image_in[i] = count + (count >> 8) ; | ^~~~~ gentest.c:490:60: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 490 | rv = SZ_BufftoBuffCompress(image_out, &size, image_in, image_size, ¶ms); | ^~~~~~~~~~ gentest.c:507:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 507 | rv = memcmp(image_in, image_in2, image_size); | ^~~~~~~~~~ gentest.c: At top level: gentest.c:528:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 528 | main(argc, argv) | ^~~~ gentest.c: In function 'main': gentest.c:529:5: warning: unused parameter 'argc' [-Wunused-parameter] 529 | int argc; | ^~~~ gentest.c:530:8: warning: unused parameter 'argv' [-Wunused-parameter] 530 | char **argv; | ^~~~ gentest.c: In function 'genimage': gentest.c:248:8: warning: storing the address of local variable 'sigma' in 'sp' [-Wdangling-pointer=] 248 | sp = sigma; | ~~~^~~~~~~ gentest.c:234:14: note: 'sigma' declared here 234 | unsigned sigma[1024]; | ^~~~~ gentest.c:58:11: note: 'sp' declared here 58 | unsigned *sp; | ^~ gentest.c:293:16: warning: storing the address of local variable 'sigma' in 'sp' [-Wdangling-pointer=] 293 | sp = sigma; | ~~~^~~~~~~ gentest.c:234:14: note: 'sigma' declared here 234 | unsigned sigma[1024]; | ^~~~~ gentest.c:58:11: note: 'sp' declared here 58 | unsigned *sp; | ^~ mcgill.c: In function 'rstart': mcgill.c:29:16: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 29 | mcgn = (i1 == 0) ? 0 : i1 | 1; | ^ mcgill.c: In function 'iuni': mcgill.c:49:21: warning: conversion to 'long int' from 'long unsigned int' may change the sign of the result [-Wsign-conversion] 49 | return ((r1 >> 1)); | ~~~~~^~~~~~ mcgill.c: In function 'ivni': mcgill.c:65:16: warning: conversion to 'long int' from 'long unsigned int' may change the sign of the result [-Wsign-conversion] 65 | return (r1); | ^ burst_szip.c:36:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 36 | put_pixel(pixel) | ^~~~~~~~~ burst_szip.c: In function 'put_pixel': burst_szip.c:41:19: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 41 | if (pixel > max) | ^ burst_szip.c:50:30: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 50 | ch = (pixel >> 24) & 0xff; | ^ burst_szip.c:67:30: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 67 | ch = (pixel >> 24) & 0xff; | ^ burst_szip.c:73:30: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 73 | ch = pixel >> 8; | ^~~~~ burst_szip.c:82:30: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 82 | ch = pixel >> 8; | ^~~~~ burst_szip.c:86:22: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 86 | putc(pixel, fp_out); | ^~~~~ burst_szip.c: At top level: burst_szip.c:90:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 90 | map_nn(sigma, end) | ^~~~~~ burst_szip.c: In function 'map_nn': burst_szip.c:99:14: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 99 | xp = *sigma; | ^ burst_szip.c:103:13: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 103 | x = *s; | ^ burst_szip.c:108:32: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 108 | *s++ = del << 1; | ^~~ burst_szip.c:110:32: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 110 | *s++ = x; | ^ burst_szip.c:115:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 115 | *s++ = ((-del)<<1) - 1; | ^ burst_szip.c:117:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 117 | *s++ = max-x; | ^~~ burst_szip.c: At top level: burst_szip.c:125:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 125 | random_scanline(pixels_per_block, width) | ^~~~~~~~~~~~~~~ burst_szip.c: In function 'random_scanline': burst_szip.c:140:19: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 140 | if (width > sizeof(scanline)/sizeof(unsigned)) | ^ burst_szip.c:150:21: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 150 | x = uni() * 6; | ^~~ burst_szip.c:160:49: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 160 | pixel = uni() * (max+1); | ^~~ burst_szip.c:161:48: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 161 | *s++ = pixel; | ^~~~~ burst_szip.c:167:41: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 167 | pixel = uni() * (max+1); | ^~~ burst_szip.c:168:41: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 168 | delta = uni() * 32; | ^~~ burst_szip.c:183:49: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 183 | pixel = low + uni() * delta; | ^~~ burst_szip.c:184:48: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 184 | *s++ = pixel; | ^~~~~ burst_szip.c:190:41: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 190 | pixel = uni() * (max+1); | ^~~ burst_szip.c:191:41: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 191 | delta = uni() * 128 + 1; | ^~~ burst_szip.c:206:45: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 206 | x = uni() * delta; | ^~~ burst_szip.c:213:48: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 213 | *s++ = pixel; | ^~~~~ burst_szip.c:219:41: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 219 | pixel = uni() * (max+1); | ^~~ burst_szip.c:221:48: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 221 | *s++ = pixel; | ^~~~~ burst_szip.c:226:42: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 226 | blocks = ((end - s) + pixels_per_block - 1)/pixels_per_block; | ^ burst_szip.c:227:42: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 227 | blocks = uni() * blocks + 1; | ^~~ burst_szip.c:228:41: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 228 | pixel = uni() * (max+1); | ^~~ burst_szip.c:231:56: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 231 | *s++ = pixel; | ^~~~~ burst_szip.c:237:41: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 237 | pixel = uni() * (max+1); | ^~~ burst_szip.c:238:41: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 238 | delta = uni() * 8 + 1; | ^~~ burst_szip.c:253:45: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 253 | x = uni() * delta; | ^~~ burst_szip.c:260:48: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 260 | *s++ = pixel; | ^~~~~ burst_szip.c: At top level: burst_szip.c:275:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 275 | random_float_scanline(pixels_per_block, width) | ^~~~~~~~~~~~~~~~~~~~~ burst_szip.c: In function 'random_float_scanline': burst_szip.c:286:19: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 286 | if (width > sizeof(scanline)/sizeof(float)) | ^ burst_szip.c:303:31: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 303 | scanline[i] = y; | ^ burst_szip.c:307:26: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 307 | fwrite(scanline, width, sizeof(float), fp_out); | ^~~~~ burst_szip.c:276:5: warning: unused parameter 'pixels_per_block' [-Wunused-parameter] 276 | int pixels_per_block; | ^~~~~~~~~~~~~~~~ burst_szip.c: At top level: burst_szip.c:311:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 311 | random_double_scanline(pixels_per_block, width) | ^~~~~~~~~~~~~~~~~~~~~~ burst_szip.c: In function 'random_double_scanline': burst_szip.c:322:37: warning: expression does not compute the number of elements in this array; element type is 'double', not 'float' [-Wsizeof-array-div] 322 | if (width > sizeof(scanline)/sizeof(float)) | ^ burst_szip.c:322:37: note: add parentheses around the second 'sizeof' to silence this warning burst_szip.c:315:16: note: array 'scanline' declared here 315 | double scanline[8*1024]; | ^~~~~~~~ burst_szip.c:322:19: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 322 | if (width > sizeof(scanline)/sizeof(float)) | ^ burst_szip.c:349:26: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 349 | fwrite(scanline, width, sizeof(double), fp_out); | ^~~~~ burst_szip.c:312:5: warning: unused parameter 'pixels_per_block' [-Wunused-parameter] 312 | int pixels_per_block; | ^~~~~~~~~~~~~~~~ burst_szip.c: At top level: burst_szip.c:353:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 353 | usage(name) | ^~~~~ burst_szip.c:361:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 361 | main(argc, argv) | ^~~~ burst_szip.c: In function 'main': burst_szip.c:450:33: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 450 | width = uni() * (width-1) + 1; | ^~~ example.c:30:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 30 | read_image(file_name) | ^~~~~~~~~~ example.c: In function 'read_image': example.c:46:21: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 46 | n = fread(image_in+size, 1, 16*1024, fp); | ^~~~~ example.c: In function 'test_encoding': example.c:85:15: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 85 | len = size; | ^~~~ example.c:100:34: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'int' [-Wsign-compare] 100 | while (c_stream.total_in < len) | ^ example.c:102:58: warning: conversion from 'long int' to 'unsigned int' may change value [-Wconversion] 102 | c_stream.avail_in = c_stream.avail_out = buffer_size; | ^~~~~~~~~~~ example.c:103:59: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'int' [-Wsign-compare] 103 | if (c_stream.avail_in + c_stream.total_in > len) | ^ example.c:104:49: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 104 | c_stream.avail_in = len - c_stream.total_in; | ^ example.c:104:45: warning: conversion from 'long unsigned int' to 'unsigned int' may change value [-Wconversion] 104 | c_stream.avail_in = len - c_stream.total_in; | ^~~ example.c:116:38: warning: conversion from 'long int' to 'unsigned int' may change value [-Wconversion] 116 | c_stream.avail_out = buffer_size; | ^~~~~~~~~~~ example.c:144:31: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 144 | for (i = 0; i < c_stream.total_out; i++) | ^ example.c:151:24: warning: conversion to 'long int' from 'long unsigned int' may change the sign of the result [-Wsign-conversion] 151 | return c_stream.total_out; | ~~~~~~~~^~~~~~~~~~ example.c:62:7: warning: unused parameter 'in' [-Wunused-parameter] 62 | char *in; | ^~ example.c: In function 'test_decoding': example.c:198:34: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'long int' [-Wsign-compare] 198 | while (d_stream.total_in < size) | ^ example.c:200:58: warning: conversion from 'long int' to 'unsigned int' may change value [-Wconversion] 200 | d_stream.avail_in = d_stream.avail_out = buffer_size; | ^~~~~~~~~~~ example.c:201:59: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'long int' [-Wsign-compare] 201 | if (d_stream.avail_in + d_stream.total_in > size) | ^ example.c:202:50: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 202 | d_stream.avail_in = size - d_stream.total_in; | ^ example.c:202:45: warning: conversion from 'long unsigned int' to 'unsigned int' may change value [-Wconversion] 202 | d_stream.avail_in = size - d_stream.total_in; | ^~~~ example.c:215:35: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'long int' [-Wsign-compare] 215 | while (d_stream.total_out < out_size) | ^ example.c:217:38: warning: conversion from 'long int' to 'unsigned int' may change value [-Wconversion] 217 | d_stream.avail_out = buffer_size; | ^~~~~~~~~~~ example.c:236:24: warning: conversion to 'long int' from 'long unsigned int' may change the sign of the result [-Wsign-conversion] 236 | return d_stream.total_out; | ~~~~~~~~^~~~~~~~~~ example.c: At top level: example.c:251:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 251 | main(argc, argv) | ^~~~ example.c: In function 'main': example.c:275:36: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 275 | compr = (char *) calloc(comprLen, 1); | ^~~~~~~~ example.c:276:36: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 276 | uncompr = (char *) calloc(uncomprLen, 1); | ^~~~~~~~~~ example.c:307:20: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 307 | size = test_encoding(bits_per_pixel, image_in, image_size, image_out, i); | ^~~~~~~~~~~~~ example.c:308:65: warning: conversion to 'long int' from 'size_t' {aka 'long unsigned int'} may change the sign of the result [-Wsign-conversion] 308 | size = test_decoding(bits_per_pixel, image_out, size, image_in2, image_size, i); | ^~~~ example.c:308:24: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 308 | size = test_decoding(bits_per_pixel, image_out, size, image_in2, image_size, i); | ^~~~~~~~~~~~~ example.c:312:50: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 312 | rv = memcmp(image_in, image_in2, image_size); | ^~~~~~~~~~ example.c:328:72: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 328 | rv = SZ_BufftoBuffCompress(image_out, &size, image_in, image_size, ¶ms); | ^~~~~~~~~~ example.c:352:50: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 352 | rv = memcmp(image_in, image_in2, image_size); | ^~~~~~~~~~ example.c:273:9: warning: 'bits_per_pixel' may be used uninitialized [-Wmaybe-uninitialized] 273 | sprintf(file_name, "image.%d.in", bits_per_pixel); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ example.c:258:13: note: 'bits_per_pixel' was declared here 258 | int bits_per_pixel; | ^~~~~~~~~~~~~~ read_image(image.8.in): size=16384 tmp : 32.16% ( 64.0 KiB => 20.6 KiB, tmp.zst) tmp : 32.16% ( 64.0 KiB => 20.6 KiB, tmp.zst) tmp : 32.16% ( 64.0 KiB => 20.6 KiB, tmp.zst) tmp : 32.16% ( 64.0 KiB => 20.6 KiB, tmp.zst) tmp.zst : 65537 bytes Warning : compression level higher than max, reduced to 19 tmp : 28.89% ( 64.0 KiB => 18.5 KiB, tmp.zst) error: numeric value overflows 32-bit unsigned int tmp : 39.52% ( 64.0 KiB => 25.3 KiB, tmp.zst) tmp : 43.51% ( 64.0 KiB => 27.8 KiB, tmp.zst) tmp :100.02% ( 64.0 KiB => 64.0 KiB, tmp.zst) error: numeric value overflows 32-bit unsigned int Incorrect parameter: --fast=0 Compress or decompress the INPUT file(s); reads from STDIN if INPUT is `-` or not provided. Usage: zstd [OPTIONS...] [INPUT... | -] [-o OUTPUT] Options: -o OUTPUT Write output to a single file, OUTPUT. -k, --keep Preserve INPUT file(s). [Default] --rm Remove INPUT file(s) after successful (de)compression. -# Desired compression level, where `#` is a number between 1 and 19; lower numbers provide faster compression, higher numbers yield better compression ratios. [Default: 3] -d, --decompress Perform decompression. -D DICT Use DICT as the dictionary for compression or decompression. -f, --force Disable input and output checks. Allows overwriting existing files, receiving input from the console, printing output to STDOUT, and operating on links, block devices, etc. Unrecognized formats will be passed-through through as-is. -h Display short usage and exit. -H, --help Display full help and exit. -V, --version Display the program version and exit. error: numeric value overflows 32-bit unsigned int tmp : 30.82% ( 64.0 KiB => 19.7 KiB, tmp.zst) tmp : 63.44% ( 64.0 KiB => 40.6 K