diff options
author | Sebastián Barschkis <sebbas@sebbas.org> | 2020-02-07 13:02:55 +0300 |
---|---|---|
committer | Sebastián Barschkis <sebbas@sebbas.org> | 2020-02-07 13:02:55 +0300 |
commit | f12b4e53aaf768d54bd85ec4713f94e77aaf72f6 (patch) | |
tree | f53ecadfca1e7c2086497df818e807466288fa2b /intern/mantaflow | |
parent | 1778efc89777f3c25654254e33dc702f10cdf210 (diff) |
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!
Diffstat (limited to 'intern/mantaflow')
-rw-r--r-- | intern/mantaflow/intern/MANTA_main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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; |