mirror of
https://github.com/verilator/verilator.git
synced 2025-01-01 04:07:34 +00:00
Fix GTKWave clang 18 warning
This commit is contained in:
parent
7eb1b6c32b
commit
7b41d2046d
@ -550,8 +550,9 @@ return(rc);
|
|||||||
|
|
||||||
static uint32_t fstReaderVarint32(FILE *f)
|
static uint32_t fstReaderVarint32(FILE *f)
|
||||||
{
|
{
|
||||||
int chk_len = 5; /* TALOS-2023-1783 */
|
const int chk_len_max = 5; /* TALOS-2023-1783 */
|
||||||
unsigned char buf[chk_len];
|
int chk_len = chk_len_max;
|
||||||
|
unsigned char buf[chk_len_max];
|
||||||
unsigned char *mem = buf;
|
unsigned char *mem = buf;
|
||||||
uint32_t rc = 0;
|
uint32_t rc = 0;
|
||||||
int ch;
|
int ch;
|
||||||
@ -582,8 +583,9 @@ return(rc);
|
|||||||
|
|
||||||
static uint32_t fstReaderVarint32WithSkip(FILE *f, uint32_t *skiplen)
|
static uint32_t fstReaderVarint32WithSkip(FILE *f, uint32_t *skiplen)
|
||||||
{
|
{
|
||||||
int chk_len = 5; /* TALOS-2023-1783 */
|
const int chk_len_max = 5; /* TALOS-2023-1783 */
|
||||||
unsigned char buf[chk_len];
|
int chk_len = chk_len_max;
|
||||||
|
unsigned char buf[chk_len_max];
|
||||||
unsigned char *mem = buf;
|
unsigned char *mem = buf;
|
||||||
uint32_t rc = 0;
|
uint32_t rc = 0;
|
||||||
int ch;
|
int ch;
|
||||||
@ -615,8 +617,9 @@ return(rc);
|
|||||||
|
|
||||||
static uint64_t fstReaderVarint64(FILE *f)
|
static uint64_t fstReaderVarint64(FILE *f)
|
||||||
{
|
{
|
||||||
int chk_len = 16; /* TALOS-2023-1783 */
|
const int chk_len_max = 16; /* TALOS-2023-1783 */
|
||||||
unsigned char buf[chk_len];
|
int chk_len = chk_len_max;
|
||||||
|
unsigned char buf[chk_len_max];
|
||||||
unsigned char *mem = buf;
|
unsigned char *mem = buf;
|
||||||
uint64_t rc = 0;
|
uint64_t rc = 0;
|
||||||
int ch;
|
int ch;
|
||||||
|
Loading…
Reference in New Issue
Block a user