Fix some compilation warnings generated by xtensa-espressif-gcc
This commit is contained in:
parent
ebc5910015
commit
dd13732343
|
|
@ -50,6 +50,7 @@ execute_process(COMMAND git describe --tags --dirty
|
||||||
|
|
||||||
target_compile_definitions(app
|
target_compile_definitions(app
|
||||||
PRIVATE
|
PRIVATE
|
||||||
|
_GNU_SOURCE
|
||||||
FONT_UBUNTU_REGULAR
|
FONT_UBUNTU_REGULAR
|
||||||
CODEC2_MODE_EN_DEFAULT=0
|
CODEC2_MODE_EN_DEFAULT=0
|
||||||
FREEDV_MODE_EN_DEFAULT=0
|
FREEDV_MODE_EN_DEFAULT=0
|
||||||
|
|
|
||||||
|
|
@ -145,7 +145,7 @@ void gps_task()
|
||||||
// When the first sentence arrives, clear all the old data
|
// When the first sentence arrives, clear all the old data
|
||||||
if (frame.msg_nr == 1)
|
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;
|
gps_data.satellites_in_view = frame.total_sats;
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,7 @@
|
||||||
#include <voicePrompts.h>
|
#include <voicePrompts.h>
|
||||||
#include <audio_codec.h>
|
#include <audio_codec.h>
|
||||||
#include <audio_path.h>
|
#include <audio_path.h>
|
||||||
|
#include <strings.h> // For strncasecmp
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <state.h>
|
#include <state.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
|
||||||
|
|
@ -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
|
// First bank "All channels" is not read from flash
|
||||||
if(index == 0)
|
if(index == 0)
|
||||||
{
|
{
|
||||||
snprintf(buf, max_len, currentLanguage->allChannels);
|
strncpy(buf, currentLanguage->allChannels, max_len);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue