Resolve problems found by enabling -Wwrite-strings compilation flag

This commit is contained in:
Roland Dobai
2018-04-09 12:58:35 +02:00
parent 33480d1a2c
commit 744c2dcdd9
18 changed files with 30 additions and 27 deletions
@@ -141,7 +141,7 @@ bool load_partition_table(bootloader_state_t* bs)
{
const esp_partition_info_t *partitions;
const int ESP_PARTITION_TABLE_DATA_LEN = 0xC00; /* length of actual data (signature is appended to this) */
char *partition_usage;
const char *partition_usage;
esp_err_t err;
int num_partitions;
@@ -900,7 +900,7 @@ static void wdt_reset_info_dump(int cpu)
{
uint32_t inst = 0, pid = 0, stat = 0, data = 0, pc = 0,
lsstat = 0, lsaddr = 0, lsdata = 0, dstat = 0;
char *cpu_name = cpu ? "APP" : "PRO";
const char *cpu_name = cpu ? "APP" : "PRO";
if (cpu == 0) {
stat = DPORT_REG_READ(DPORT_PRO_CPU_RECORD_STATUS_REG);