Avoid a folding VLA warning in clang

This commit is contained in:
Andrea Mazzoleni 2026-06-23 12:16:38 +02:00
parent e088672ccd
commit 562d59d9c8
3 changed files with 7 additions and 4 deletions

View file

@ -10,6 +10,9 @@ SnapRAID HISTORY
* Fixed the smartctl type detection retry during probe on Windows to
properly preserve the standby check option, preventing standby disks
from spinning up if a retry is needed.
* Save the content file before aborting 'sync' due to safety thresholds
if files were touched by '--gui-touch-before', preventing timestamp
desynchronization and false diff reports on subsequent runs.
14.7 2026/06
============

View file

@ -433,9 +433,9 @@ void raid_rec2_int8(int nr, int *id, int *ip, int nd, size_t size, void **vv)
uint8_t *q;
uint8_t *qa;
const int N = 2;
const uint8_t *T[N][N];
uint8_t G[N * N];
uint8_t V[N * N];
const uint8_t *T[2][2];
uint8_t G[2 * 2];
uint8_t V[2 * 2];
size_t i;
int j, k;

View file

@ -302,7 +302,7 @@ int raid_selftest(void)
const int nv = nd + RAID_PARITY_MAX * 2 + 1;
void *v_alloc;
void **v;
void *ref[nd + RAID_PARITY_MAX];
void *ref[TEST_COUNT + RAID_PARITY_MAX];
int ir[RAID_PARITY_MAX];
int ip[RAID_PARITY_MAX];
int i, np;