MDEV-35657: Add work-arounds for clang 11
This commit is contained in:
parent
e5c4c0842d
commit
f2ffcd949b
@ -187,6 +187,7 @@ xb_fil_cur_open(
|
|||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
err = fstat(cursor->file.m_file, &cursor->statinfo);
|
err = fstat(cursor->file.m_file, &cursor->statinfo);
|
||||||
|
MSAN_STAT_WORKAROUND(&cursor->statinfo);
|
||||||
#endif
|
#endif
|
||||||
if (max_file_size < (ulonglong)cursor->statinfo.st_size) {
|
if (max_file_size < (ulonglong)cursor->statinfo.st_size) {
|
||||||
cursor->statinfo.st_size = (ulonglong)max_file_size;
|
cursor->statinfo.st_size = (ulonglong)max_file_size;
|
||||||
|
@ -3648,6 +3648,7 @@ next_file:
|
|||||||
return(-1);
|
return(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MSAN_STAT_WORKAROUND(&statinfo);
|
||||||
info->size = statinfo.st_size;
|
info->size = statinfo.st_size;
|
||||||
|
|
||||||
if (S_ISDIR(statinfo.st_mode)) {
|
if (S_ISDIR(statinfo.st_mode)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user