mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2026-01-01 01:41:18 +01:00
config: suppress cppcheck warnings
This commit is contained in:
parent
576e76db51
commit
99b5ff81fa
@ -40,11 +40,13 @@ extern char configmem[];
|
||||
* @brief Stores configuration data of the node.
|
||||
*/
|
||||
typedef struct {
|
||||
/* cppcheck-suppress unusedStructMember : is used in sys/shell/commands/sc_id.c */
|
||||
uint16_t id; /**< unique node identifier */
|
||||
#ifdef HAS_RADIO
|
||||
radio_address_t radio_address; /**< address for radio communication */
|
||||
uint8_t radio_channel; /**< current frequency */
|
||||
#endif
|
||||
/* cppcheck-suppress unusedStructMember : useful for debug purposes */
|
||||
char name[CONFIG_NAME_LEN]; /**< name of the node */
|
||||
} config_t;
|
||||
|
||||
@ -52,6 +54,7 @@ typedef struct {
|
||||
* @brief Element to store in flashrom.
|
||||
*/
|
||||
typedef struct {
|
||||
/* cppcheck-suppress unusedStructMember : magic_key is only read directly from ROM */
|
||||
uint16_t magic_key; /**< validity check */
|
||||
config_t config; /**< the node's configuration */
|
||||
} configmem_t;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user