aboutsummaryrefslogtreecommitdiffstats
path: root/demos/Win32-MinGW
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/Win32-MinGW
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/Win32-MinGW')
-rw-r--r--demos/Win32-MinGW/Makefile2
-rw-r--r--demos/Win32-MinGW/chcore.c3
-rw-r--r--demos/Win32-MinGW/main.c6
3 files changed, 8 insertions, 3 deletions
diff --git a/demos/Win32-MinGW/Makefile b/demos/Win32-MinGW/Makefile
index f700ce159..3552537ad 100644
--- a/demos/Win32-MinGW/Makefile
+++ b/demos/Win32-MinGW/Makefile
@@ -99,7 +99,7 @@ LIBS = $(DLIBS) $(ULIBS)
LDFLAGS = -Wl,-Map=$(PROJECT).map,--cref,--no-warn-mismatch $(LIBDIR)
ASFLAGS = -Wa,-amhls=$(<:.s=.lst) $(ADEFS)
-CPFLAGS = $(OPT) -Wall -Wstrict-prototypes -fverbose-asm -Wa,-alms=$(<:.c=.lst) $(DEFS)
+CPFLAGS = $(OPT) -Wall -Wextra -Wstrict-prototypes -fverbose-asm -Wa,-alms=$(<:.c=.lst) $(DEFS)
# Generate dependency information
CPFLAGS += -MD -MP -MF .dep/$(@F).d
diff --git a/demos/Win32-MinGW/chcore.c b/demos/Win32-MinGW/chcore.c
index 95d8b9de8..8dcb3b9ad 100644
--- a/demos/Win32-MinGW/chcore.c
+++ b/demos/Win32-MinGW/chcore.c
@@ -89,8 +89,9 @@ void ChkIntSources(void) {
*/
__attribute__((used))
static void __dummy(Thread *otp, Thread *ntp) {
+ (void)otp; (void)ntp;
asm volatile (".globl @port_switch@8 \n\t" \
- "@port_switch@8: \n\t" \
+ "@port_switch@8: \n\t" \
"push %ebp \n\t" \
"push %esi \n\t" \
"push %edi \n\t" \
diff --git a/demos/Win32-MinGW/main.c b/demos/Win32-MinGW/main.c
index bca8af11b..6a2b5367f 100644
--- a/demos/Win32-MinGW/main.c
+++ b/demos/Win32-MinGW/main.c
@@ -42,10 +42,11 @@ msg_t TestThread(void *p);
* areas. The system is halted if something is wrong.
*/
static msg_t WatchdogThread(void *arg) {
+
+ (void)arg;
wdguard = 0xA51F2E3D;
cdguard = 0xA51F2E3D;
while (TRUE) {
-
if ((wdguard != 0xA51F2E3D) ||
(cdguard != 0xA51F2E3D)) {
printf("Halted by watchdog");
@@ -64,6 +65,7 @@ static msg_t WatchdogThread(void *arg) {
*/
static msg_t ConsoleThread(void *arg) {
+ (void)arg;
while (!chThdShouldTerminate()) {
printf((char *)chMsgWait());
fflush(stdout);
@@ -230,6 +232,7 @@ EventListener s1tel;
static void COM1Handler(eventid_t id) {
sdflags_t flags;
+ (void)id;
if (s1 && chThdTerminated(s1)) {
s1 = NULL;
cprint("Init: disconnection on SD1\n");
@@ -256,6 +259,7 @@ EventListener s2tel;
static void COM2Handler(eventid_t id) {
sdflags_t flags;
+ (void)id;
if (s2 && chThdTerminated(s2)) {
s2 = NULL;
cprint("Init: disconnection on SD2\n");