[libyuv] Disable scan-build warnings.

This commit is contained in:
Andrey Volk 2021-04-22 17:50:49 +03:00
parent 758f3e7075
commit fa0e616592

View File

@ -736,6 +736,9 @@ static void ScaleAddCols2_C(int dst_width,
int dx, int dx,
const uint16_t* src_ptr, const uint16_t* src_ptr,
uint8_t* dst_ptr) { uint8_t* dst_ptr) {
#ifdef __clang_analyzer__
*dst_ptr = 0;
#else
int i; int i;
int scaletbl[2]; int scaletbl[2];
int minboxwidth = dx >> 16; int minboxwidth = dx >> 16;
@ -750,6 +753,7 @@ static void ScaleAddCols2_C(int dst_width,
SumPixels(boxwidth, src_ptr + ix) * scaletbl[boxwidth - minboxwidth] >> SumPixels(boxwidth, src_ptr + ix) * scaletbl[boxwidth - minboxwidth] >>
16; 16;
} }
#endif
} }
static void ScaleAddCols2_16_C(int dst_width, static void ScaleAddCols2_16_C(int dst_width,
@ -758,6 +762,9 @@ static void ScaleAddCols2_16_C(int dst_width,
int dx, int dx,
const uint32_t* src_ptr, const uint32_t* src_ptr,
uint16_t* dst_ptr) { uint16_t* dst_ptr) {
#ifdef __clang_analyzer__
* dst_ptr = 0;
#else
int i; int i;
int scaletbl[2]; int scaletbl[2];
int minboxwidth = dx >> 16; int minboxwidth = dx >> 16;
@ -772,6 +779,7 @@ static void ScaleAddCols2_16_C(int dst_width,
scaletbl[boxwidth - minboxwidth] >> scaletbl[boxwidth - minboxwidth] >>
16; 16;
} }
#endif
} }
static void ScaleAddCols0_C(int dst_width, static void ScaleAddCols0_C(int dst_width,