diff mbox

[Branch,~glmark2-dev/glmark2/trunk] Rev 44: Silence compiler warnings.

Message ID 20110721123633.17019.41595.launchpad@loganberry.canonical.com
State Accepted
Headers show

Commit Message

Alexandros Frantzis July 21, 2011, 12:36 p.m. UTC
------------------------------------------------------------
revno: 44
committer: Alexandros Frantzis <alf82@freemail.gr>
timestamp: Mon 2010-07-12 17:03:14 +0300
message:
  Silence compiler warnings.
modified:
  src/main.cpp
  wscript


--
lp:glmark2
https://code.launchpad.net/~glmark2-dev/glmark2/trunk

You are subscribed to branch lp:glmark2.
To unsubscribe from this branch go to https://code.launchpad.net/~glmark2-dev/glmark2/trunk/+edit-subscription
diff mbox

Patch

=== modified file 'src/main.cpp'
--- src/main.cpp	2010-07-12 13:37:04 +0000
+++ src/main.cpp	2010-07-12 14:03:14 +0000
@@ -7,8 +7,13 @@ 
 #include "screen-sdl-glesv2.h"
 #endif
 
+#define UNUSED_PARAM(x) (void)(x)
+
 int main(int argc, char *argv[])
 {
+    UNUSED_PARAM(argc);
+    UNUSED_PARAM(argv);
+
     SDL_Event event;
     int running = 1;
     unsigned current_scene = 0;

=== modified file 'wscript'
--- wscript	2010-07-12 13:37:04 +0000
+++ wscript	2010-07-12 14:03:14 +0000
@@ -62,7 +62,7 @@ 
 		conf.check_cfg(package = pkg, uselib_store = uselib, args = '--cflags --libs',
 				mandatory = mandatory)
 
-	conf.env.append_unique('CXXFLAGS', '-Wall -Wextra -pedantic'.split(' '))
+	conf.env.append_unique('CXXFLAGS', '-Wall -Wextra -fms-extensions'.split(' '))
 
 	# Prepend -O# and -g flags so that they can be overriden by the CFLAGS environment variable
 	if Options.options.opt: