mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-27 18:02:17 +03:00
yet less warnings for Wall Wextra guys
This commit is contained in:
committed by
Ivan Grokhotkov
parent
fed925149b
commit
85078f47a0
@ -907,7 +907,7 @@ void MDNSResponder::_replyToTypeEnumRequest(IPAddress multicastInterface) {
|
|||||||
if(servicePtr->_port > 0){
|
if(servicePtr->_port > 0){
|
||||||
char *service = servicePtr->_name;
|
char *service = servicePtr->_name;
|
||||||
char *proto = servicePtr->_proto;
|
char *proto = servicePtr->_proto;
|
||||||
uint16_t port = servicePtr->_port;
|
//uint16_t port = servicePtr->_port;
|
||||||
|
|
||||||
#ifdef MDNS_DEBUG_TX
|
#ifdef MDNS_DEBUG_TX
|
||||||
Serial.printf("TX: service:%s, proto:%s\n", service, proto);
|
Serial.printf("TX: service:%s, proto:%s\n", service, proto);
|
||||||
|
@ -291,7 +291,7 @@ static void ATTR_GDBFN sendReason() {
|
|||||||
#endif
|
#endif
|
||||||
//exception-to-signal mapping
|
//exception-to-signal mapping
|
||||||
char exceptionSignal[]={4,31,11,11,2,6,8,0,6,7,0,0,7,7,7,7};
|
char exceptionSignal[]={4,31,11,11,2,6,8,0,6,7,0,0,7,7,7,7};
|
||||||
int i=0;
|
unsigned int i=0;
|
||||||
gdbPacketStart();
|
gdbPacketStart();
|
||||||
gdbPacketChar('T');
|
gdbPacketChar('T');
|
||||||
if (gdbstub_savedRegs.reason==0xff) {
|
if (gdbstub_savedRegs.reason==0xff) {
|
||||||
@ -321,6 +321,7 @@ static void ATTR_GDBFN sendReason() {
|
|||||||
|
|
||||||
//Handle a command as received from GDB.
|
//Handle a command as received from GDB.
|
||||||
static int ATTR_GDBFN gdbHandleCommand(unsigned char *cmd, int len) {
|
static int ATTR_GDBFN gdbHandleCommand(unsigned char *cmd, int len) {
|
||||||
|
(void)len; // unused
|
||||||
//Handle a command
|
//Handle a command
|
||||||
int i, j, k;
|
int i, j, k;
|
||||||
unsigned char *data=cmd+1;
|
unsigned char *data=cmd+1;
|
||||||
@ -657,7 +658,7 @@ static void ATTR_GDBFN gdb_semihost_putchar1(char c) {
|
|||||||
//The OS-less SDK uses the Xtensa HAL to handle exceptions. We can use those functions to catch any
|
//The OS-less SDK uses the Xtensa HAL to handle exceptions. We can use those functions to catch any
|
||||||
//fatal exceptions and invoke the debugger when this happens.
|
//fatal exceptions and invoke the debugger when this happens.
|
||||||
static void ATTR_GDBINIT install_exceptions() {
|
static void ATTR_GDBINIT install_exceptions() {
|
||||||
int i;
|
unsigned int i;
|
||||||
int exno[]={EXCCAUSE_ILLEGAL, EXCCAUSE_SYSCALL, EXCCAUSE_INSTR_ERROR, EXCCAUSE_LOAD_STORE_ERROR,
|
int exno[]={EXCCAUSE_ILLEGAL, EXCCAUSE_SYSCALL, EXCCAUSE_INSTR_ERROR, EXCCAUSE_LOAD_STORE_ERROR,
|
||||||
EXCCAUSE_DIVIDE_BY_ZERO, EXCCAUSE_UNALIGNED, EXCCAUSE_INSTR_DATA_ERROR, EXCCAUSE_LOAD_STORE_DATA_ERROR,
|
EXCCAUSE_DIVIDE_BY_ZERO, EXCCAUSE_UNALIGNED, EXCCAUSE_INSTR_DATA_ERROR, EXCCAUSE_LOAD_STORE_DATA_ERROR,
|
||||||
EXCCAUSE_INSTR_ADDR_ERROR, EXCCAUSE_LOAD_STORE_ADDR_ERROR, EXCCAUSE_INSTR_PROHIBITED,
|
EXCCAUSE_INSTR_ADDR_ERROR, EXCCAUSE_LOAD_STORE_ADDR_ERROR, EXCCAUSE_INSTR_PROHIBITED,
|
||||||
|
@ -71,6 +71,7 @@ void TwoWire::begin(void){
|
|||||||
}
|
}
|
||||||
|
|
||||||
void TwoWire::begin(uint8_t address){
|
void TwoWire::begin(uint8_t address){
|
||||||
|
(void)address;
|
||||||
// twi_setAddress(address);
|
// twi_setAddress(address);
|
||||||
// twi_attachSlaveTxEvent(onRequestService);
|
// twi_attachSlaveTxEvent(onRequestService);
|
||||||
// twi_attachSlaveRxEvent(onReceiveService);
|
// twi_attachSlaveRxEvent(onReceiveService);
|
||||||
@ -206,6 +207,8 @@ void TwoWire::flush(void){
|
|||||||
|
|
||||||
void TwoWire::onReceiveService(uint8_t* inBytes, int numBytes)
|
void TwoWire::onReceiveService(uint8_t* inBytes, int numBytes)
|
||||||
{
|
{
|
||||||
|
(void)inBytes;
|
||||||
|
(void)numBytes;
|
||||||
// don't bother if user hasn't registered a callback
|
// don't bother if user hasn't registered a callback
|
||||||
// if(!user_onReceive){
|
// if(!user_onReceive){
|
||||||
// return;
|
// return;
|
||||||
@ -242,10 +245,12 @@ void TwoWire::onRequestService(void){
|
|||||||
}
|
}
|
||||||
|
|
||||||
void TwoWire::onReceive( void (*function)(int) ){
|
void TwoWire::onReceive( void (*function)(int) ){
|
||||||
|
(void)function;
|
||||||
//user_onReceive = function;
|
//user_onReceive = function;
|
||||||
}
|
}
|
||||||
|
|
||||||
void TwoWire::onRequest( void (*function)(void) ){
|
void TwoWire::onRequest( void (*function)(void) ){
|
||||||
|
(void)function;
|
||||||
//user_onRequest = function;
|
//user_onRequest = function;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user