MDEV-35964 fix cast warnings on mac in mysql_file.h

Cast create_flags to mode_t when passing to my_create and
my_create_with_symlink
This commit is contained in:
Dave Gosselin 2025-01-24 08:21:48 -05:00 committed by Daniel Black
parent bcb87f5ccb
commit b8b77177c2

View File

@ -1018,7 +1018,7 @@ inline_mysql_file_create(
#ifdef HAVE_PSI_FILE_INTERFACE #ifdef HAVE_PSI_FILE_INTERFACE
PSI_file_key key, const char *src_file, uint src_line, PSI_file_key key, const char *src_file, uint src_line,
#endif #endif
const char *filename, int create_flags, int access_flags, myf myFlags) const char *filename, mode_t create_flags, int access_flags, myf myFlags)
{ {
File file; File file;
#ifdef HAVE_PSI_FILE_INTERFACE #ifdef HAVE_PSI_FILE_INTERFACE
@ -1344,7 +1344,7 @@ inline_mysql_file_create_with_symlink(
#ifdef HAVE_PSI_FILE_INTERFACE #ifdef HAVE_PSI_FILE_INTERFACE
PSI_file_key key, const char *src_file, uint src_line, PSI_file_key key, const char *src_file, uint src_line,
#endif #endif
const char *linkname, const char *filename, int create_flags, const char *linkname, const char *filename, mode_t create_flags,
int access_flags, myf flags) int access_flags, myf flags)
{ {
File file; File file;