From: Jakub Bogusz Date: Thu, 24 Dec 2015 13:09:51 +0000 (+0100) Subject: - enhanced C++ patch (remove switch-bool warning, which prevented build with -Werror) X-Git-Tag: auto/th/framewave-1.3.1-10~1 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fframewave.git;a=commitdiff_plain;h=25ef52d - enhanced C++ patch (remove switch-bool warning, which prevented build with -Werror) --- diff --git a/framewave-c++.patch b/framewave-c++.patch index 7645556..c2d9344 100644 --- a/framewave-c++.patch +++ b/framewave-c++.patch @@ -1422,3 +1422,34 @@ namespace DIV { template< class TS1, class TS2, class TD > +--- FRAMEWAVE_1.3.1_SRC/Framewave/domain/fwImage/src/Mirror.cpp.orig 2009-07-09 11:15:34.000000000 +0200 ++++ FRAMEWAVE_1.3.1_SRC/Framewave/domain/fwImage/src/Mirror.cpp 2015-12-24 13:41:28.316508869 +0100 +@@ -1130,9 +1130,7 @@ + TS *ptDstRow ; + bool isAligned ; + +- switch((chSrc <= 4)) +- { +- case(true): ++ if(chSrc <= 4) { + for (y=0; y(ptDstRow, ptSrcRow, numBytes); + } +- break; +- default: //AC4 ++ } else { //AC4 + __m128i mask; + Get_AC4_mask(mask); + for (y=0; y(ptDstRow, ptSrcRow, numBytes, mask); + } +- break; + } + return fwStsNoErr; + }