diff options
Diffstat (limited to 'demos/ARM7-LPC214x-GCC-minimal')
-rw-r--r-- | demos/ARM7-LPC214x-GCC-minimal/Makefile | 4 | ||||
-rw-r--r-- | demos/ARM7-LPC214x-GCC-minimal/main.c | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/demos/ARM7-LPC214x-GCC-minimal/Makefile b/demos/ARM7-LPC214x-GCC-minimal/Makefile index 5315948af..21e9a0eea 100644 --- a/demos/ARM7-LPC214x-GCC-minimal/Makefile +++ b/demos/ARM7-LPC214x-GCC-minimal/Makefile @@ -123,10 +123,10 @@ AOPT = TOPT = -mthumb -DTHUMB
# Define C warning options here
-CWARN = -Wall -Wstrict-prototypes
+CWARN = -Wall -Wextra -Wstrict-prototypes
# Define C++ warning options here
-CPPWARN = -Wall
+CPPWARN = -Wall -Wextra
#
# Compiler settings
diff --git a/demos/ARM7-LPC214x-GCC-minimal/main.c b/demos/ARM7-LPC214x-GCC-minimal/main.c index d303237c4..7ce5ffe95 100644 --- a/demos/ARM7-LPC214x-GCC-minimal/main.c +++ b/demos/ARM7-LPC214x-GCC-minimal/main.c @@ -28,6 +28,7 @@ static WORKING_AREA(waThread1, 128);
static msg_t Thread1(void *arg) {
+ (void)arg;
while (TRUE) {
palClearPort(IOPORT1, PAL_PORT_BIT(PA_LED2));
chThdSleepMilliseconds(200);
@@ -47,6 +48,7 @@ static msg_t Thread1(void *arg) { static WORKING_AREA(waThread2, 128);
static msg_t Thread2(void *arg) {
+ (void)arg;
while (TRUE) {
palClearPad(IOPORT1, PA_LEDUSB);
chThdSleepMilliseconds(200);
@@ -62,6 +64,9 @@ static msg_t Thread2(void *arg) { */
int main(int argc, char **argv) {
+ (void)argc;
+ (void)argv;
+
/*
* Creates the blinker threads.
*/
|