Cleanup: quiet array-parameter warning from GCC11
This commit is contained in:
parent
7141eb75ef
commit
4d4608363c
|
@ -34,6 +34,7 @@
|
|||
#include <limits.h> /* for PATH_MAX */
|
||||
|
||||
#include "BLI_compiler_attrs.h"
|
||||
#include "BLI_fileops_types.h"
|
||||
#include "BLI_utildefines.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
@ -125,15 +126,20 @@ void BLI_filelist_free(struct direntry *filelist, const unsigned int nrentries);
|
|||
void BLI_filelist_entry_size_to_string(const struct stat *st,
|
||||
const uint64_t sz,
|
||||
const bool compact,
|
||||
char r_size[]);
|
||||
void BLI_filelist_entry_mode_to_string(
|
||||
const struct stat *st, const bool compact, char r_mode1[], char r_mode2[], char r_mode3[]);
|
||||
void BLI_filelist_entry_owner_to_string(const struct stat *st, const bool compact, char r_owner[]);
|
||||
char r_size[FILELIST_DIRENTRY_SIZE_LEN]);
|
||||
void BLI_filelist_entry_mode_to_string(const struct stat *st,
|
||||
const bool compact,
|
||||
char r_mode1[FILELIST_DIRENTRY_MODE_LEN],
|
||||
char r_mode2[FILELIST_DIRENTRY_MODE_LEN],
|
||||
char r_mode3[FILELIST_DIRENTRY_MODE_LEN]);
|
||||
void BLI_filelist_entry_owner_to_string(const struct stat *st,
|
||||
const bool compact,
|
||||
char r_owner[FILELIST_DIRENTRY_OWNER_LEN]);
|
||||
void BLI_filelist_entry_datetime_to_string(const struct stat *st,
|
||||
const int64_t ts,
|
||||
const bool compact,
|
||||
char r_time[],
|
||||
char r_date[],
|
||||
char r_time[FILELIST_DIRENTRY_TIME_LEN],
|
||||
char r_date[FILELIST_DIRENTRY_DATE_LEN],
|
||||
bool *r_is_today,
|
||||
bool *r_is_yesterday);
|
||||
|
||||
|
|
|
@ -293,7 +293,7 @@ bool BLI_file_alias_target(const char *filepath,
|
|||
/* This parameter can only be `const` on Linux since
|
||||
* redirections are not supported there.
|
||||
* NOLINTNEXTLINE: readability-non-const-parameter. */
|
||||
char r_targetpath[FILE_MAXDIR])
|
||||
char r_targetpath[/*FILE_MAXDIR*/])
|
||||
{
|
||||
# ifdef WIN32
|
||||
if (!BLI_path_extension_check(filepath, ".lnk")) {
|
||||
|
|
Loading…
Reference in New Issue