Closed Bug 1476645 Opened 7 years ago Closed 7 years ago

[Static Analysis] infer errors in gfx/*

Categories

(Core :: Graphics, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla63
Tracking Status
firefox63 --- fixed

People

(Reporter: rbartlensky, Assigned: rbartlensky)

References

Details

Attachments

(1 file)

gfx/thebes/gfxFontUtils.cpp:93: error: DEAD_STORE The value written to &index (type int) is never used. 91. if (i + 4 != 32) index += snprintf(&outStr[index], BUFSIZE - index, " "); 92. } 93. > index += snprintf(&outStr[index], BUFSIZE - index, "]"); 94. LOG(aWhichLog, ("%s", outStr)); 95. } gfx/2d/FilterProcessingSIMD-inl.h:119: error: DEAD_STORE The value written to &bgrabgrabgrabgra1 (type void) is never used. 117. int32_t targetIndex = y * alphaStride + x; 118. 119. > u8x16_t bgrabgrabgrabgra1 = simd::FromZero8<u8x16_t>(); 120. u8x16_t bgrabgrabgrabgra2 = simd::FromZero8<u8x16_t>(); 121. u8x16_t bgrabgrabgrabgra3 = simd::FromZero8<u8x16_t>(); gfx/src/nsDeviceContext.cpp:274: error: DEAD_STORE The value written to &dpi (type float) is never used. 272. nsDeviceContext::SetDPI(double* aScale) 273. { 274. > float dpi = -1.0f; 275. 276. // Use the printing DC to determine DPI values, if we have one. gfx/src/nsDeviceContext.cpp:549: error: DEAD_STORE The value written to &rv (type int) is never used. 547. "Mismatched BeginDocument/EndDocument calls"); 548. 549. > nsresult rv = NS_OK; 550. 551. mIsCurrentlyPrintingDoc = false; gfx/2d/FilterProcessingSIMD-inl.h:804: error: DEAD_STORE The value written to &bgrabgrabgrabgra1 (type void) is never used. 802. int32_t targetIndex = y * channelStride + x; 803. 804. > u8x16_t bgrabgrabgrabgra1 = simd::FromZero8<u8x16_t>(); 805. u8x16_t bgrabgrabgrabgra2 = simd::FromZero8<u8x16_t>(); 806. u8x16_t bgrabgrabgrabgra3 = simd::FromZero8<u8x16_t>();
Attachment #8993036 - Flags: review?(lsalzman) → review+
Keywords: checkin-needed
Pushed by rgurzau@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/75cbc42803d7 Fix DEAD_STORE errors in gfx/*. r=lsalzman
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: