Fix some compilation warnings generated by xtensa-espressif-gcc

pull/193/head
Silvano Seva 2023-07-26 19:36:07 +02:00
rodzic ebc5910015
commit dd13732343
4 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -50,6 +50,7 @@ execute_process(COMMAND git describe --tags --dirty
target_compile_definitions(app
PRIVATE
_GNU_SOURCE
FONT_UBUNTU_REGULAR
CODEC2_MODE_EN_DEFAULT=0
FREEDV_MODE_EN_DEFAULT=0

Wyświetl plik

@ -145,7 +145,7 @@ void gps_task()
// When the first sentence arrives, clear all the old data
if (frame.msg_nr == 1)
{
bzero(&gps_data.satellites[0], 12 * sizeof(gpssat_t));
memset(&gps_data.satellites[0], 0x00, 12 * sizeof(gpssat_t));
}
gps_data.satellites_in_view = frame.total_sats;

Wyświetl plik

@ -26,6 +26,7 @@
#include <voicePrompts.h>
#include <audio_codec.h>
#include <audio_path.h>
#include <strings.h> // For strncasecmp
#include <ctype.h>
#include <state.h>
#include <stdio.h>

Wyświetl plik

@ -463,7 +463,7 @@ int _ui_getBankName(char *buf, uint8_t max_len, uint8_t index)
// First bank "All channels" is not read from flash
if(index == 0)
{
snprintf(buf, max_len, currentLanguage->allChannels);
strncpy(buf, currentLanguage->allChannels, max_len);
}
else
{