Skip to content

Commit

Permalink
Added -Wextra -Werror and cleaned up the resulting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
maniacbug committed Jun 12, 2011
1 parent 3b216f9 commit a39c724
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions RF24Network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@ bool RF24Network::enqueue(void)
IF_SERIAL_DEBUG(printf_P(PSTR("ok\n\r")));
}
else
{
IF_SERIAL_DEBUG(printf_P(PSTR("failed\n\r")));
}

return result;
}
Expand Down
2 changes: 1 addition & 1 deletion examples/sensornet/Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ AVRDUDE = $(AVR_TOOLS_PATH)/avrdude ;
DEFINES = F_CPU=$(F_CPU)L ARDUINO=$(ARDUINO_VERSION) ;
CTUNING = -ffunction-sections -fdata-sections ;
CXXTUNING = -fno-exceptions ;
CFLAGS = -Os -Wall -Werror -mmcu=$(MCU) $(CTUNING) ;
CFLAGS = -Os -Werror -Wall -Wextra -mmcu=$(MCU) $(CTUNING) ;
CXXFLAGS = $(CFLAGS) $(CXXTUNING) ;
LDFLAGS = -Os -lm -Wl,--gc-sections -mmcu=atmega328p ;

Expand Down
2 changes: 1 addition & 1 deletion examples/sensornet/nodeconfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ void nodeconfig_listen(void)

// And we are done right now (no easy way to soft reset)
printf_P(PSTR("\n\rManually reset address to: %c\n\rPress RESET to continue!"),c);
while(1);
while(1) ;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/sensornet/printf.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#include "WProgram.h"

int serial_putc( char c, FILE *t )
int serial_putc( char c, FILE * )
{
Serial.write( c );

Expand Down

0 comments on commit a39c724

Please sign in to comment.