mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-16 08:04:36 -04:00
vector: strip excess precision on text_gap + antialias_fudge
(ticket #293, props Andre Maute) test suite: output: suppress some clang run-time exceptions MemorySanitizer: use-of-uninitialized-value (ticket #292, props Andre Maute
This commit is contained in:
parent
3e96336970
commit
0b653d0d6a
3 changed files with 48 additions and 37 deletions
|
@ -120,7 +120,8 @@ static void test_colour_get_rgb(const testCtx *const p_ctx) {
|
|||
testStart("test_colour_get_rgb");
|
||||
|
||||
for (i = 0; i < data_size; i++) {
|
||||
unsigned char red, green, blue, alpha, rgb_alpha;
|
||||
/* Suppress clang-16 run-time exception MemorySanitizer: use-of-uninitialized-value (fixed in clang-17) */
|
||||
unsigned char red = 0, green = 0, blue = 0, alpha = 0, rgb_alpha = 0;
|
||||
int cyan, magenta, yellow, black;
|
||||
int have_alpha;
|
||||
char rgb[9];
|
||||
|
@ -356,7 +357,7 @@ static void test_out_putsf(const testCtx *const p_ctx) {
|
|||
int i;
|
||||
|
||||
FILE *fp;
|
||||
char buf[512];
|
||||
char buf[512] = {0}; /* Suppress clang-16/17 run-time exception MemorySanitizer: use-of-uninitialized-value */
|
||||
|
||||
testStart("test_out_putsf");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue