From f12b4e53aaf768d54bd85ec4713f94e77aaf72f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Barschkis?= Date: Fri, 7 Feb 2020 11:02:55 +0100 Subject: Fluid: Fixed try/catch exception issue and unsed variable issue Sergey just pointed this out, fixing in it the release branch to avoid any compilation issues during the actual release. Thx! --- intern/mantaflow/intern/MANTA_main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'intern/mantaflow') diff --git a/intern/mantaflow/intern/MANTA_main.cpp b/intern/mantaflow/intern/MANTA_main.cpp index 798ad9c2854..c0c7ef5dbf2 100644 --- a/intern/mantaflow/intern/MANTA_main.cpp +++ b/intern/mantaflow/intern/MANTA_main.cpp @@ -2894,7 +2894,7 @@ int MANTA::updateGridFromVDB(const char *filename, float *grid) try { file.open(); } - catch (const openvdb::IoError) { + catch (const openvdb::IoError &) { std::cout << "MANTA::updateGridFromVDB(): IOError, invalid OpenVDB file: " << filename << std::endl; return 0; @@ -2941,6 +2941,7 @@ int MANTA::updateGridFromRaw(const char *filename, float *grid) readBytes = gzread(gzf, grid, expectedBytes); assert(expectedBytes == readBytes); + (void)readBytes; // Unused in release. gzclose(gzf); return 1; -- cgit v1.2.3