diff options
Diffstat (limited to 'demos/ARM7-LPC214x-G++')
| -rw-r--r-- | demos/ARM7-LPC214x-G++/Makefile | 4 | ||||
| -rw-r--r-- | demos/ARM7-LPC214x-G++/main.cpp | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/demos/ARM7-LPC214x-G++/Makefile b/demos/ARM7-LPC214x-G++/Makefile index 3b0a8bee3..3bb33abfe 100644 --- a/demos/ARM7-LPC214x-G++/Makefile +++ b/demos/ARM7-LPC214x-G++/Makefile @@ -126,10 +126,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-G++/main.cpp b/demos/ARM7-LPC214x-G++/main.cpp index b46ccd86e..f0268045d 100644 --- a/demos/ARM7-LPC214x-G++/main.cpp +++ b/demos/ARM7-LPC214x-G++/main.cpp @@ -137,6 +137,7 @@ public: */
static void TimerHandler(eventid_t id) {
+ (void)id;
if (!(palReadPort(IOPORT1) & BOTH_BUTTONS)) { // Both buttons
TesterThread tester;
tester.Wait();
@@ -154,6 +155,9 @@ int main(int argc, char **argv) { static EvTimer evt;
struct EventListener el0;
+ (void)argc;
+ (void)argv;
+
/*
* Activates the serial driver 2 using the driver default configuration.
*/
|
