add pvs-studio analyze to ci

This commit is contained in:
hathach
2025-10-24 17:24:55 +07:00
parent 55c6d07af3
commit b08f672daf
6 changed files with 76 additions and 4 deletions

View File

@ -45,10 +45,11 @@ enum {
DISK_BLOCK_SIZE = 512
};
static
#ifdef CFG_EXAMPLE_MSC_READONLY
const
#endif
static uint8_t msc_disk[DISK_BLOCK_NUM][DISK_BLOCK_SIZE] = {
uint8_t msc_disk[DISK_BLOCK_NUM][DISK_BLOCK_SIZE] = {
//------------- Block0: Boot Sector -------------//
// byte_per_sector = DISK_BLOCK_SIZE; fat12_sector_num_16 = DISK_BLOCK_NUM;
// sector_per_cluster = 1; reserved_sectors = 1;

View File

@ -76,10 +76,11 @@ enum {
DISK_BLOCK_SIZE = 512
};
static
#ifdef CFG_EXAMPLE_MSC_READONLY
const
#endif
static uint8_t msc_disk[DISK_BLOCK_NUM][DISK_BLOCK_SIZE] =
uint8_t msc_disk[DISK_BLOCK_NUM][DISK_BLOCK_SIZE] =
{
//------------- Block0: Boot Sector -------------//
// byte_per_sector = DISK_BLOCK_SIZE; fat12_sector_num_16 = DISK_BLOCK_NUM;

View File

@ -43,10 +43,11 @@ enum
DISK_BLOCK_SIZE = 512
};
static
#ifdef CFG_EXAMPLE_MSC_READONLY
const
#endif
static uint8_t msc_disk[DISK_BLOCK_NUM][DISK_BLOCK_SIZE] =
uint8_t msc_disk[DISK_BLOCK_NUM][DISK_BLOCK_SIZE] =
{
//------------- Block0: Boot Sector -------------//
// byte_per_sector = DISK_BLOCK_SIZE; fat12_sector_num_16 = DISK_BLOCK_NUM;