Skip to content

Fix compiler warnings in posix_fallocate_mac.h

The variable store was missing a field initializer and the first check of ret was reading an uninitialized value.

/Users/alex/cheri/kde-frameworks/kcoreaddons/src/lib/caching/posix_fallocate_mac.h:67:75: warning: missing field 'fst_bytesalloc' initializer [-Wmissing-field-initializers]
        fstore_t store = {F_ALLOCATECONTIG, F_PEOFPOSMODE, 0, offset + len};
/Users/alex/cheri/kde-frameworks/kcoreaddons/src/lib/caching/posix_fallocate_mac.h:70:13: warning: variable 'ret' is uninitialized when used here [-Wuninitialized]
        if (ret < 0) {

Merge request reports