VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Common/libzip/zip_stat_index.c
diff options
context:
space:
mode:
authorDavid <jdavidpeter@gmail.com>2023-05-18 23:12:01 +0200
committerGitHub <noreply@github.com>2023-05-18 23:12:01 +0200
commitecb5ea9671fb899aee98af218da09048317f4809 (patch)
tree08513b2210eee28bc74673c73d4b4bd5adcb1f64 /src/Common/libzip/zip_stat_index.c
parent1043bff9670f27bc7fc6543841dbe0b3779d89d9 (diff)
downloadVeraCrypt-ecb5ea9671fb899aee98af218da09048317f4809.tar.gz
VeraCrypt-ecb5ea9671fb899aee98af218da09048317f4809.zip
Fix compiler warnings (#1030)
Fixing the following compiler warnings: FuseService.cpp: In function ‘int VeraCrypt::fuse_service_read(const char*, char*, size_t, off_t, fuse_file_info*)’: FuseService.cpp:233:12: warning: catching polymorphic type ‘struct VeraCrypt::MissingVolumeData’ by value [-Wcatch-value=] 233 | catch (MissingVolumeData) | ^~~~~~~~~~~~~~~~~ FuseService.cpp: In static member function ‘static int VeraCrypt::FuseService::ExceptionToErrorCode()’: FuseService.cpp:362:15: warning: catching polymorphic type ‘class std::bad_alloc’ by value [-Wcatch-value=] 362 | catch (std::bad_alloc) | ^~~~~~~~~ Apart from warnings, the current code creates unnecessary copies of the exception object in debug mode. (But not in -O3)
Diffstat (limited to 'src/Common/libzip/zip_stat_index.c')
0 files changed, 0 insertions, 0 deletions