aboutsummaryrefslogtreecommitdiffstats
path: root/demos/ARM7-LPC214x-GCC-minimal
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-10-17 11:07:15 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-10-17 11:07:15 +0000
commite9d7b9de5705a3b5c0b822077fbd165c86087481 (patch)
treefc6a51fec7f88d34acfeb79df63cc8a4d9a10f54 /demos/ARM7-LPC214x-GCC-minimal
parent26ed3732876a649fb02a83e768e4392034d65653 (diff)
downloadChibiOS-e9d7b9de5705a3b5c0b822077fbd165c86087481.tar.gz
ChibiOS-e9d7b9de5705a3b5c0b822077fbd165c86087481.tar.bz2
ChibiOS-e9d7b9de5705a3b5c0b822077fbd165c86087481.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1230 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/ARM7-LPC214x-GCC-minimal')
-rw-r--r--demos/ARM7-LPC214x-GCC-minimal/Makefile4
-rw-r--r--demos/ARM7-LPC214x-GCC-minimal/main.c5
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.
*/