Skip to content

Commit

Permalink
yet less warnings for Wall Wextra guys
Browse files Browse the repository at this point in the history
  • Loading branch information
d-a-v authored and igrr committed May 18, 2017
1 parent fed9251 commit 85078f4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libraries/ESP8266mDNS/ESP8266mDNS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
5 changes: 3 additions & 2 deletions libraries/GDBStub/src/internal/gdbstub.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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,
Expand Down
5 changes: 5 additions & 0 deletions libraries/Wire/Wire.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 85078f4

Please sign in to comment.