Skip to content

Commit 7054f37

Browse files
committed
Move preserve_dst_format into HWY block
Relocate the preserve_dst_format declaration so it is only computed inside the OIIO_USE_HWY conditional and after IBAprep. This avoids an unused-variable when HWY support is disabled and ensures the value is determined after dst/src preparation; there is no functional change to behavior. Signed-off-by: Vlad (Kuzmin) Erium <libalias@gmail.com>
1 parent 0db1ab4 commit 7054f37

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/libOpenImageIO/imagebufalgo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3832,10 +3832,10 @@ ImageBufAlgo::fillholes_pushpull(ImageBuf& dst, const ImageBuf& src, ROI roi,
38323832
// N.B. Don't log time, it will be caught by the constituent parts
38333833
const int req = (IBAprep_REQUIRE_SAME_NCHANNELS | IBAprep_REQUIRE_ALPHA
38343834
| IBAprep_NO_SUPPORT_VOLUME);
3835-
bool preserve_dst_format = dst.initialized() && &dst != &src;
38363835
if (!IBAprep(roi, &dst, &src, req))
38373836
return false;
38383837
#if OIIO_USE_HWY
3838+
bool preserve_dst_format = dst.initialized() && &dst != &src;
38393839
if (OIIO::pvt::enable_hwy && fillholes_pushpull_hwy_supported(src, roi))
38403840
return fillholes_pushpull_hwy(dst, src, nthreads, preserve_dst_format);
38413841
#endif

0 commit comments

Comments
 (0)