Skip to content

Instantly share code, notes, and snippets.

@apollo13
Created July 21, 2020 20:55
Show Gist options
  • Save apollo13/7b57e14119daabc9638ad3958c031ef3 to your computer and use it in GitHub Desktop.
Save apollo13/7b57e14119daabc9638ad3958c031ef3 to your computer and use it in GitHub Desktop.
source/fitz/draw-edgebuffer.c: In function ‘fz_gap_edgebuffer’:
source/fitz/draw-edgebuffer.c:435:30: warning: ‘iy2’ may be used uninitialized in this function [-Wmaybe-uninitialized]
435 | row = &eb->table[eb->index[iy]];
| ^
source/fitz/draw-edgebuffer.c:704:16: note: ‘iy2’ was declared here
704 | int iy0, iy1, iy2;
| ^~~
source/fitz/draw-path.c: In function ‘fz_dash_lineto’:
source/fitz/draw-path.c:755:14: warning: ‘old_by’ may be used uninitialized in this function [-Wmaybe-uninitialized]
755 | s->seg[0].y = s->beg[0].y = y;
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
source/fitz/draw-path.c:1025:16: note: ‘old_by’ was declared here
1025 | float old_bx, old_by;
| ^~~~~~
source/fitz/draw-path.c:754:14: warning: ‘old_bx’ may be used uninitialized in this function [-Wmaybe-uninitialized]
754 | s->seg[0].x = s->beg[0].x = x;
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
source/fitz/draw-path.c:1025:8: note: ‘old_bx’ was declared here
1025 | float old_bx, old_by;
| ^~~~~~
source/fitz/glyph.c: In function ‘fz_new_glyph_from_8bpp_data’:
source/fitz/glyph.c:273:32: warning: writing 4 bytes into a region of size 1 [-Wstringop-overflow=]
273 | ((int *)(glyph->data))[yy] = -1;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
source/fitz/stext-device.c: In function ‘fz_add_stext_char_imp’:
source/fitz/stext-device.c:303:6: warning: variable ‘rtl’ set but not used [-Wunused-but-set-variable]
303 | int rtl = 0;
| ^~~
source/fitz/path.c: In function ‘fz_walk_path’:
source/fitz/path.c:656:5: warning: ‘y’ may be used uninitialized in this function [-Wmaybe-uninitialized]
656 | proc->curveto(ctx, arg,
| ^~~~~~~~~~~~~~~~~~~~~~~
657 | x,
| ~~
658 | y,
| ~~
659 | coords[k],
| ~~~~~~~~~~
660 | coords[k+1],
| ~~~~~~~~~~~~
661 | coords[k+2],
| ~~~~~~~~~~~~
662 | coords[k+3]);
| ~~~~~~~~~~~~
source/fitz/path.c:656:5: warning: ‘x’ may be used uninitialized in this function [-Wmaybe-uninitialized]
source/html/css-parse.c: In function ‘parse_declaration_list’:
source/html/css-parse.c:628:24: warning: ‘tail’ may be used uninitialized in this function [-Wmaybe-uninitialized]
628 | tail = tail->next = p;
| ~~~~~~~~~~~^~~
platform/x11/pdfapp.c: In function ‘pdfapp_showpage’:
platform/x11/pdfapp.c:986:20: warning: ‘%s’ directive writing up to 63 bytes into a region of size between 0 and 256 [-Wformat-overflow=]
986 | sprintf(buf, "%s%s", app->doctitle, buf2);
| ^~ ~~~~
platform/x11/pdfapp.c:986:4: note: ‘sprintf’ output between 1 and 320 bytes into a destination of size 256
986 | sprintf(buf, "%s%s", app->doctitle, buf2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CC build/release/platform/x11/curl/curl_stream.o
platform/x11/pdfapp.c: In function ‘pdfapp_showpage’:
platform/x11/pdfapp.c:986:20: warning: ‘%s’ directive writing up to 63 bytes into a region of size between 0 and 256 [-Wformat-overflow=]
986 | sprintf(buf, "%s%s", app->doctitle, buf2);
| ^~ ~~~~
platform/x11/pdfapp.c:986:4: note: ‘sprintf’ output between 1 and 320 bytes into a destination of size 256
986 | sprintf(buf, "%s%s", app->doctitle, buf2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment