#include "rom/ets_sys.h"
#include "esp_app_trace.h"
-#define LOG_LOCAL_LEVEL ESP_LOG_ERROR
#include "esp_log.h"
const static char *TAG = "segger_rtt";
uint8_t event_id = *pbuf;
if (NumBytes > SYSVIEW_EVENTS_BUF_SZ) {
- ESP_LOGE(TAG, "Too large event %d bytes!", NumBytes);
+ ESP_LOGE(TAG, "Too large event %u bytes!", NumBytes);
return 0;
}
if (xPortGetCoreID()) { // dual core specific code
libcoap/src/debug.o: CFLAGS += -Wno-write-strings
libcoap/src/pdu.o: CFLAGS += -Wno-write-strings
+# Temporary suppress "fallthrough" warnings until they are fixed in libcoap repo
+libcoap/src/option.o: CFLAGS += -Wno-implicit-fallthrough
}
/* local interface for IPv4 */
- (*packet)->src.size = sizeof((*packet)->src.addr);
- memcpy(&(*packet)->src.addr.sa, &soc_srcipaddr, (*packet)->src.size);
+ (*packet)->src.size = sizeof((*packet)->src.addr.sa);
+ memcpy(&((*packet)->src.addr.sa), &soc_srcipaddr, (*packet)->src.size);
if (len > coap_get_max_packetlength(*packet)) {
/* FIXME: we might want to send back a response */
exp->_p++;
return node;
} //else default
+ /* falls through */
default:
t = *exp->_p; exp->_p++;
return trex_newnode(exp,t);
abort();
}
+extern "C" bool __cxx_fatal_exception_bool(void)
+{
+ __cxx_fatal_exception();
+ return false;
+}
+
extern "C" void __cxx_fatal_exception_message(const char *msg)
{
printf("%s%s\n", FATAL_EXCEPTION, msg);
abort();
}
+extern "C" void __cxx_fatal_exception_message_va(const char *msg, ...)
+{
+ __cxx_fatal_exception_message(msg);
+}
+
extern "C" void __cxx_fatal_exception_int(int i)
{
printf("%s (%d)\n", FATAL_EXCEPTION, i);
void std::__throw_out_of_range(const char*) __attribute__((alias("__cxx_fatal_exception_message")));
-void std::__throw_out_of_range_fmt(const char*, ...) __attribute__((alias("__cxx_fatal_exception_message")));
+void std::__throw_out_of_range_fmt(const char*, ...) __attribute__((alias("__cxx_fatal_exception_message_va")));
void std::__throw_runtime_error(const char*) __attribute__((alias("__cxx_fatal_exception_message")));
extern "C" void __cxa_throw(void) __attribute__((alias("__cxx_fatal_exception")));
extern "C" void __cxa_call_terminate(void) __attribute__((alias("__cxx_fatal_exception")));
-bool std::uncaught_exception() __attribute__((alias("__cxx_fatal_exception")));
+bool std::uncaught_exception() __attribute__((alias("__cxx_fatal_exception_bool")));
#endif // CONFIG_CXX_EXCEPTIONS
adc2_spinlock should be acquired first, then adc2_wifi_lock or rtc_spinlock.
*/
//prevent ADC2 being used by wifi and other tasks at the same time.
-static _lock_t adc2_wifi_lock = NULL;
+static _lock_t adc2_wifi_lock;
//prevent ADC2 being used by tasks (regardless of WIFI)
portMUX_TYPE adc2_spinlock = portMUX_INITIALIZER_UNLOCKED;
//prevent ADC1 being used by I2S dma and other tasks at the same time.
-static _lock_t adc1_i2s_lock = NULL;
+static _lock_t adc1_i2s_lock;
typedef struct {
TimerHandle_t timer;
static esp_err_t sdio_ringbuf_send(sdio_ringbuf_t* buf, esp_err_t (*copy_callback)(uint8_t*, void*), void* arg, TickType_t wait)
{
portBASE_TYPE ret = xSemaphoreTake(buf->remain_cnt, wait);
- if (ret != pdTRUE) return NULL;
+ if (ret != pdTRUE) return ESP_ERR_TIMEOUT;
portENTER_CRITICAL(&buf->write_spinlock);
uint8_t* get_ptr = sdio_ringbuf_offset_ptr(buf, ringbuf_write_ptr, buf->item_size);
break;
default:
freq_mhz = 80;
- /* no break */
+ /* falls through */
case 80:
freq = RTC_CPU_FREQ_80M;
break;
* @brief free the message after finish DH
*
*/
-typedef void * (*esp_dh5_free_t)(void *ctx);
+typedef void (*esp_dh5_free_t)(void *ctx);
/**
* @brief Build WPS IE for (Re)Association Request
COMPONENT_SRCDIRS := library port
CFLAGS += -Wno-unused-function -DHAVE_EXPAT_CONFIG_H
-
+# Temporary suppress "fallthrough" warnings until they are fixed in expat repo
+CFLAGS += -Wno-implicit-fallthrough
errorCode = XML_ERROR_NO_MEMORY;
return XML_STATUS_ERROR;
}
+ /* falls through */
default:
ps_parsing = XML_PARSING;
}
errorCode = XML_ERROR_NO_MEMORY;
return XML_STATUS_ERROR;
}
+ /* falls through */
default:
ps_parsing = XML_PARSING;
}
return XML_ERROR_NO_MEMORY;
declEntity->publicId = NULL;
}
- /* fall through */
#endif /* XML_DTD */
+ /* falls through */
case XML_ROLE_ENTITY_SYSTEM_ID:
if (dtd->keepProcessing && declEntity) {
declEntity->systemId = poolStoreString(&dtd->pool, enc,
*nextTokPtr = ptr; \
return XML_TOK_INVALID; \
} \
+ /* fall through */ \
case BT_NMSTRT: \
case BT_HEX: \
case BT_DIGIT: \
*nextTokPtr = ptr; \
return XML_TOK_INVALID; \
} \
+ /* fall through */ \
case BT_NMSTRT: \
case BT_HEX: \
ptr += MINBPC(enc); \
return XML_TOK_INVALID;
}
}
- /* fall through */
+ /* fall through */
case BT_EQUALS:
{
int open;
case BT_NMSTRT:
if (!(BYTE_TO_ASCII(enc, ptr) & ~0x7f))
break;
+ /* fall through */
default:
switch (BYTE_TO_ASCII(enc, ptr)) {
case 0x24: /* $ */
#if (CONFIG_FREERTOS_QUEUE_REGISTRY_SIZE > 0)
#define NO_OF_QUEUES_PER_CORE ((int)((CONFIG_FREERTOS_QUEUE_REGISTRY_SIZE - 3)/portNUM_PROCESSORS)) //Save space for some preallocated tasks
#define NO_OF_QUEUES_TOTAL (NO_OF_QUEUES_PER_CORE * portNUM_PROCESSORS)
-#define QUEUE_NAME_MAX_LENGTH 10
+#define QUEUE_NAME_MAX_LENGTH 30
static SemaphoreHandle_t start_sem[portNUM_PROCESSORS];
static SemaphoreHandle_t done_sem = NULL;
# randombytes.c needs to pull in platform-specific implementation
$(LSRC)/randombytes/randombytes.o: CFLAGS+=-DRANDOMBYTES_DEFAULT_IMPLEMENTATION
+
+# Temporary suppress "fallthrough" warnings until they are fixed in libsodium repo
+$(LSRC)/crypto_shorthash/siphash24/ref/shorthash_siphashx24_ref.o: CFLAGS += -Wno-implicit-fallthrough
+$(LSRC)/crypto_shorthash/siphash24/ref/shorthash_siphash24_ref.o: CFLAGS += -Wno-implicit-fallthrough
switch(threshold) {
case 1:
level = ESP_LOG_WARN;
+ break;
case 2:
level = ESP_LOG_INFO;
+ break;
case 3:
level = ESP_LOG_DEBUG;
+ break;
case 4:
level = ESP_LOG_VERBOSE;
+ break;
}
esp_log_level_set(TAG, level);
}
break;
case 3:
ESP_LOGD(TAG, "%s:%d %s", file, line, str);
+ break;
case 4:
ESP_LOGV(TAG, "%s:%d %s", file, line, str);
break;
case 2:
parser->upgrade = 1;
-
+ /* falls through */
case 1:
parser->flags |= F_SKIPBODY;
break;
case s_req_server_with_at:
found_at = 1;
- /* FALLTROUGH */
+ /* falls through */
case s_req_server:
uf = UF_HOST;
break;
switch (type) {
case X509_NAME_ATTR_NOT_USED:
strcpy(name_attr, "[N/A]");
+ break;
case X509_NAME_ATTR_DC:
strcpy(name_attr, "DC");
+ break;
case X509_NAME_ATTR_CN:
strcpy(name_attr, "CN");
+ break;
case X509_NAME_ATTR_C:
strcpy(name_attr, "C");
+ break;
case X509_NAME_ATTR_L:
strcpy(name_attr, "L");
+ break;
case X509_NAME_ATTR_ST:
strcpy(name_attr, "ST");
+ break;
case X509_NAME_ATTR_O:
strcpy(name_attr, "O");
+ break;
case X509_NAME_ATTR_OU:
strcpy(name_attr, "OU");
+ break;
default :
strcpy(name_attr, "?");
}