fix(build): add __attribute__((nonstring)) to nonsting variables

This commit is contained in:
Alexey Lapshin
2025-06-08 17:04:08 +07:00
parent b65502f3f5
commit a3dfc82246
13 changed files with 34 additions and 10 deletions

View File

@@ -7,6 +7,7 @@
#ifndef PHY_INIT_DATA_H
#define PHY_INIT_DATA_H /* don't use #pragma once here, we compile this file sometimes */
#include "esp_phy_init.h"
#include "esp_attr.h"
#include "sdkconfig.h"
#ifdef __cplusplus
@@ -51,7 +52,7 @@ typedef struct {
* @brief Country corresponds to PHY init data type structure
*/
typedef struct {
char cc[PHY_COUNTRY_CODE_LEN];
NONSTRING_ATTR char cc[PHY_COUNTRY_CODE_LEN];
uint8_t type;
} phy_country_to_bin_type_t;
#endif