mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-25 18:40:19 -04:00
Avoid a folding VLA warning in clang
This commit is contained in:
parent
e088672ccd
commit
562d59d9c8
3 changed files with 7 additions and 4 deletions
3
HISTORY
3
HISTORY
|
|
@ -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
|
||||
============
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue