mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-04-21 11:10:42 +02:00
Squelch some bogus compiler warnings about possibly uninitialized values.
This commit is contained in:
parent
20e3a99bba
commit
7285499700
2 changed files with 7 additions and 6 deletions
|
|
@ -3646,9 +3646,9 @@ fbCompositeRect (const FbComposeData *data, CARD32 *scanline_buffer)
|
|||
scanFetchProc fetchSrc = NULL, fetchMask = NULL, fetchDest = NULL;
|
||||
unsigned int srcClass = SourcePictClassUnknown;
|
||||
unsigned int maskClass = SourcePictClassUnknown;
|
||||
FbBits *bits;
|
||||
FbStride stride;
|
||||
int xoff, yoff;
|
||||
FbBits *bits = NULL; /* squelch bogus compiler warning */
|
||||
FbStride stride = 0; /* squelch bogus compiler warning */
|
||||
int xoff = 0, yoff = 0; /* squelch bogus compiler warning */
|
||||
|
||||
if (data->op == PIXMAN_OPERATOR_CLEAR)
|
||||
fetchSrc = NULL;
|
||||
|
|
@ -3814,7 +3814,8 @@ fbCompositeRect (const FbComposeData *data, CARD32 *scanline_buffer)
|
|||
}
|
||||
else
|
||||
{
|
||||
CARD32 *src_mask_buffer, *mask_buffer = 0;
|
||||
CARD32 *src_mask_buffer = 0; /* squelch bogus compiler warning */
|
||||
CARD32 *mask_buffer = 0;
|
||||
CombineFuncU compose = composeFunctions.combineU[data->op];
|
||||
if (!compose)
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -747,8 +747,8 @@ _cairo_truetype_subset_init (cairo_truetype_subset_t *truetype_subset,
|
|||
{
|
||||
cairo_pdf_ft_font_t *font;
|
||||
cairo_status_t status;
|
||||
const char *data;
|
||||
unsigned long length, parent_glyph;
|
||||
const char *data = NULL; /* squelch bogus compiler warning */
|
||||
unsigned long parent_glyph, length = 0; /* squelch bogus compiler warning */
|
||||
int i;
|
||||
|
||||
status = _cairo_pdf_ft_font_create (font_subset, &font);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue