]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[libyuv] Disable scan-build warnings.
authorAndrey Volk <andywolk@gmail.com>
Thu, 22 Apr 2021 14:50:49 +0000 (17:50 +0300)
committerAndrey Volk <andywolk@gmail.com>
Tue, 19 Oct 2021 17:10:34 +0000 (20:10 +0300)
libs/libyuv/source/scale.cc

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