-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
misra: Fix crash in misra_9x when there is unknown constant used as a…
…rray size (#5229)
- Loading branch information
Showing
5 changed files
with
60 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
|
||
struct _boardcnf_ch { | ||
// cppcheck-suppress misra-config | ||
uint8_t ddr_density[CS_CNT]; | ||
uint64_t ca_swap; | ||
}; | ||
|
||
struct _boardcnf { | ||
|
||
uint16_t dqdm_dly_r; | ||
// cppcheck-suppress misra-config | ||
struct _boardcnf_ch ch[DRAM_CH_CNT]; | ||
}; | ||
|
||
static const struct _boardcnf boardcnfs[1] = { | ||
{ | ||
0x0a0, | ||
{ | ||
{ {0x02, 0x02}, 0x00345201 }, | ||
{ {0x02, 0x02}, 0x00302154 } | ||
} | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters