mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-04 18:03:20 +03:00
yet less warnings for Wall Wextra guys
This commit is contained in:
parent
fed925149b
commit
85078f47a0
@ -907,7 +907,7 @@ void MDNSResponder::_replyToTypeEnumRequest(IPAddress multicastInterface) {
|
||||
if(servicePtr->_port > 0){
|
||||
char *service = servicePtr->_name;
|
||||
char *proto = servicePtr->_proto;
|
||||
uint16_t port = servicePtr->_port;
|
||||
//uint16_t port = servicePtr->_port;
|
||||
|
||||
#ifdef MDNS_DEBUG_TX
|
||||
Serial.printf("TX: service:%s, proto:%s\n", service, proto);
|
||||
|
@ -291,7 +291,7 @@ static void ATTR_GDBFN sendReason() {
|
||||
#endif
|
||||
//exception-to-signal mapping
|
||||
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();
|
||||
gdbPacketChar('T');
|
||||
if (gdbstub_savedRegs.reason==0xff) {
|
||||
@ -321,6 +321,7 @@ static void ATTR_GDBFN sendReason() {
|
||||
|
||||
//Handle a command as received from GDB.
|
||||
static int ATTR_GDBFN gdbHandleCommand(unsigned char *cmd, int len) {
|
||||
(void)len; // unused
|
||||
//Handle a command
|
||||
int i, j, k;
|
||||
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
|
||||
//fatal exceptions and invoke the debugger when this happens.
|
||||
static void ATTR_GDBINIT install_exceptions() {
|
||||
int i;
|
||||
unsigned int i;
|
||||
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_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)address;
|
||||
// twi_setAddress(address);
|
||||
// twi_attachSlaveTxEvent(onRequestService);
|
||||
// twi_attachSlaveRxEvent(onReceiveService);
|
||||
@ -206,6 +207,8 @@ void TwoWire::flush(void){
|
||||
|
||||
void TwoWire::onReceiveService(uint8_t* inBytes, int numBytes)
|
||||
{
|
||||
(void)inBytes;
|
||||
(void)numBytes;
|
||||
// don't bother if user hasn't registered a callback
|
||||
// if(!user_onReceive){
|
||||
// return;
|
||||
@ -242,10 +245,12 @@ void TwoWire::onRequestService(void){
|
||||
}
|
||||
|
||||
void TwoWire::onReceive( void (*function)(int) ){
|
||||
(void)function;
|
||||
//user_onReceive = function;
|
||||
}
|
||||
|
||||
void TwoWire::onRequest( void (*function)(void) ){
|
||||
(void)function;
|
||||
//user_onRequest = function;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user